Versions in this module Expand all Collapse all v1 v1.0.0 Jan 5, 2022 Changes in this version + type Endpoints struct + Limiting int64 + LimitingSwitch bool + Online bool + type Node struct + Address string + Id string + Name string + Online bool + Path string + Version string + type Options struct + Endpoints map[string]Endpoints + EtcdConf clientv3.Config + Metadata map[string]string + Node *Node + RegisterTtl int64 + type Register struct + func NewRegister(opt ...RegisterOptions) (*Register, error) + func (s *Register) Close() error + func (s *Register) ListenKeepAliveChan() (isClose bool) + type RegisterOptions func(*Options) + func SetAddress(address string) RegisterOptions + func SetEtcdConf(conf clientv3.Config) RegisterOptions + func SetMetadata(metadata map[string]string) RegisterOptions + func SetName(name string) RegisterOptions + func SetOnline(online bool) RegisterOptions + func SetRegisterTtl(registerTtl int64) RegisterOptions + func SetSrv(srv interface{}) RegisterOptions + func SetVersion(version string) RegisterOptions