Documentation ¶ Index ¶ Constants type Etcd func NewEtcd(endpoints, prefix string) *Etcd func (s *Etcd) IsStop() bool func (s *Etcd) RegistService(key, value string) error func (s *Etcd) Start(h servmesh_provider.ServMeshHander) error func (s *Etcd) Stop() Constants ¶ View Source const ( ETCD_TIMEOUT = 5 * time.Second //etcd连接超时 ETCD_GRANT_TTL = 6 //etcd jtimer to live InValidLeaseId = -1 ) Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Etcd ¶ type Etcd struct { // contains filtered or unexported fields } func NewEtcd ¶ func NewEtcd(endpoints, prefix string) *Etcd func (*Etcd) IsStop ¶ func (s *Etcd) IsStop() bool func (*Etcd) RegistService ¶ func (s *Etcd) RegistService(key, value string) error 注册kv func (*Etcd) Start ¶ func (s *Etcd) Start(h servmesh_provider.ServMeshHander) error 初始化并启动etcd本地服务 func (*Etcd) Stop ¶ func (s *Etcd) Stop() Source Files ¶ View all Source files etcd.go log.go Click to show internal directories. Click to hide internal directories.