# 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/ltwd7za
golang 源碼分析:boltdb(5)**
在分析完核心數據結構後,我們結合使用 boltdb 的核心過程瞭解下上述數據結構建立的過程,總結下來核心過程如下: bolt.Opendb.Updatedb.Begintx.CreateBuckettx.Bucketb.Getb.Puttx.Commit在 db.go 中我們可以瞭解到 Update 函數其實也是調用了 Begin 來開啓一個事務的。事務執行成功就提交,失敗則回 ⌘ Read more