Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type ClientConfig struct {
Paths []PathList `json:"paths"`
Server SyncServer `json:"server"`
}
ClientConfig 客户端配置文件
type CmdMessage ¶
type CmdMessage struct {
Server
Dir string `json:"dir"`
Cmd string `json:"cmd"`
Slave []CmdSlave `json:"slave"`
}
CmdMessage
type FileData ¶
type FileData struct {
Name string `json:"name"`
Path string `json:"path"`
Seek int64 `json:"seek"`
Size int64 `json:"size"`
Data []byte `json:"data"`
}
FileData
type FileSyncMessage ¶
type FileSyncMessage struct {
LocationPath string `json:"locationPath"`
RemotePath string `json:"remotePath"`
RelPath string `json:"relPath"`
File FileData `json:"file"`
Slave []Server `json:"slave"`
}
FileSyncMessage 同步文件信息
type MessageResult ¶
type MessageResult struct {
Success bool `json:"success"`
Err string `json:"err"`
Code int `json:"code"`
Msg string `json:"msg"`
Data []byte `json:"data"`
}
MessageResult
type PathList ¶
type PathList struct {
LocationPath string `json:"locationPath"`
RemotePath string `json:"remotePath"`
Filter []string `json:"filter"`
}
PathList
type SyncServer ¶
SyncServer
Click to show internal directories.
Click to hide internal directories.