Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Endpoints []string `json:"endpoints"` // ETCD节点列表 LeaseTtl int64 `json:"lease_ttl"` // 续租时间 DialTimeout int64 `json:"dial_timeout"` // 超时时间 NodeAddr string `json:"node_addr"` // 缓存服务节点地址,列如:192.168.1.11 NodeName string `json:"node_name"` // 缓存服务节点名称,例如:node1 Protocol string `json:"protocol"` //协议.目前只支持http Port string `json:"port"` //端口.默认:2020 }
注册 注册
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ListenLeaseRespChan ¶
func (e *Server) ListenLeaseRespChan()
func (*Server) RegisterNode ¶
Click to show internal directories.
Click to hide internal directories.