Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdClient ¶
type EtcdClient struct { //worker id which hash been generated by config ID string //woker infomation WorkerInfo string Conf clientv3.Config IntervalUpdateConf time.Duration RequestTimeOut time.Duration Done bool }
EtcdClient is client structure
func (*EtcdClient) Get ¶
func (ec *EtcdClient) Get(k string) ([]byte, error)
Get get value from etcd
func (*EtcdClient) GetRange ¶
func (ec *EtcdClient) GetRange(key string) (map[string][]byte, error)
GetRange get value from etcd
func (*EtcdClient) IntervalUpdateConfig ¶
func (ec *EtcdClient) IntervalUpdateConfig(k, v string)
IntervalUpdateConfig send all configurations to registry
Click to show internal directories.
Click to hide internal directories.