# 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/5qogjvq
Golang 事件系統 Event Bus
最近在學習開源項目Grafana的代碼,發現作者實現了一個事件總線的機制,在項目裏面大量應用,效果也非常好,代碼也比較簡單,介紹給大家看看。 源碼文件地址:grafana/bus.go at main · grafana/grafana · GitHub註冊和調用--------在這個項目裏面隨處可見這種寫法:func ValidateOrgAlert(c models.ReqContext) ⌘ Read more