# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 1
# self = https://watcher.sour.is/conv/k5xxlbq
singleflight 設計與實現**
概述--singleflight 提供了一套函數重複調用時的抑制機制,經常用來限制併發訪問下的重複請求。例如一個比較常見的場景是使用 singleflight 來限制同一個緩存 key 的重複請求,避免發生 緩存擊穿 時,避免請求全部落到數據庫,減少性能影響和宕機風險。singleflight 示意圖示例--參考 擴展閱讀 列表的文章。內部實現----我們來探究一下 golang.org/x/sy ⌘ Read more