Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct { ServerNetLoc string // 服务端地址 IP:PORT Client client.XClient // RPC 客户端 ServerList []string // 存活服务端集群列表 PutData dataInfo // 要传输的数据 Reply int // RPC Server 响应结果 Mutex *sync.Mutex // 安全操作锁 IsDebug bool // 是否开启debug模式,debug模式打印传输内容和报错信息 // contains filtered or unexported fields }
Agent agent客户端结构
Click to show internal directories.
Click to hide internal directories.