# 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/ovc3zea
Go 語言實現 ssh - scp
前言 -----最近遇到一個臨時需求,需要將客戶環境中一個服務每天的日誌進行一系列複雜處理,並生成數據報表。由於數據處理邏輯複雜,且需要存入數據庫,在客戶環境使用 shell 腳本無法處理,因此就需要將日誌先拷貝到本地,再進行處理;同時爲了避免每天人工拷貝日誌,需要實現自動化,整條鏈路自動執行,無需人工干預。平時使用 Go 語言較多,由此就引出了 Go 語言 ssh 連接遠程客戶服務器,並利用 ⌘ Read more