1
0
镜像自地址 https://github.com/tuna/tunasync.git 已同步 2025-12-07 06:56:47 +00:00

feature(worker): implemented Worker object, worker side code is almost done

这个提交包含在:
bigeagle
2016-04-28 18:34:22 +08:00
父节点 daa0b3c204
当前提交 ce3471e30d
共有 13 个文件被更改,包括 462 次插入124 次删除

查看文件

@@ -4,7 +4,7 @@ import "time"
// A StatusUpdateMsg represents a msg when
// a worker has done syncing
type StatusUpdateMsg struct {
type MirrorStatus struct {
Name string `json:"name"`
Worker string `json:"worker"`
IsMaster bool `json:"is_master"`
@@ -19,7 +19,9 @@ type StatusUpdateMsg struct {
// a worker, and sent from the manager to clients.
type WorkerInfoMsg struct {
ID string `json:"id"`
LastOnline time.Time `json:"last_online"`
URL string `json:"url"` // worker url
Token string `json:"token"` // session token
LastOnline time.Time `json:"last_online"` // last seen
}
type CmdVerb uint8