# 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/zgi3gha
使用 Go 實現一個簡單的事件總線模式**
事件驅動架構是計算機科學中一種高度可擴展的範例。它允許我們可以多方系統異步處理事件。事件總線是發佈 / 訂閱模式的實現,其中發佈者發佈數據,並且感興趣的訂閱者可以監聽這些數據並基於這些數據作出處理。這使發佈者與訂閱者松耦合。發佈者將數據事件發佈到事件總線,總線負責將它們發送給訂閱者。傳統的實現事件總線的方法會涉及到使用回調。訂閱者通常實現接口,然後事件總線通過接口傳播數據。使用 go 的併發模型, ⌘ Read more