tsetcd

package
v0.0.0-...-edad9eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

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

func (*EtcdClient) Put

func (ec *EtcdClient) Put(k, v string) error

Put send value to etcd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL