Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeregisterReq ¶
type DeregisterReq struct { Token string `json:"token"` // Token 令牌 Namespace string `json:"namespace"` // 命名空间 ServiceName string `json:"service_name"` // 服务名称 IP string `json:"ip"` // 实例IP }
DeregisterReq 服务注销
type FetchResp ¶
type FetchResp struct { Retcode int `json:"retcode"` Errmsg string `json:"errmsg"` Data []*InstanceNode `json:"data"` }
type InstanceNode ¶
type RegisterReq ¶
type RegisterReq struct { Token string `json:"token"` // Token 令牌 Namespace string `json:"namespace"` // 命名空间 ServiceName string `json:"service_name"` // 服务名称 Node *InstanceNode `json:"node"` // 实例节点 }
RegisterReq 服务注册
Click to show internal directories.
Click to hide internal directories.