Documentation ¶
Index ¶
- func Set(econf *ETCDConfigs) (err error)
- type ETCDClient
- func (ec *ETCDClient) AddEndpoints(ctx context.Context, service string, address string) (err error)
- func (ec *ETCDClient) Close() (err error)
- func (ec *ETCDClient) GetServices(ctx context.Context, servicePrefix string) (services []*Service, err error)
- func (ec *ETCDClient) GetValueByKey(ctx context.Context, key string) (val []string, err error)
- func (ec *ETCDClient) RemoveEndpoints(ctx context.Context, service string, address string) (err error)
- func (ec *ETCDClient) Resolver() *etcdnaming.GRPCResolver
- func (ec *ETCDClient) SaveKeyValue(ctx context.Context, key string, val string) (err error)
- type ETCDConfigs
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Set ¶
func Set(econf *ETCDConfigs) (err error)
Types ¶
type ETCDClient ¶
type ETCDClient struct {
// contains filtered or unexported fields
}
func Get ¶
func Get() *ETCDClient
func (*ETCDClient) AddEndpoints ¶
func (*ETCDClient) Close ¶
func (ec *ETCDClient) Close() (err error)
func (*ETCDClient) GetServices ¶
func (*ETCDClient) GetValueByKey ¶
func (*ETCDClient) RemoveEndpoints ¶
func (*ETCDClient) Resolver ¶
func (ec *ETCDClient) Resolver() *etcdnaming.GRPCResolver
func (*ETCDClient) SaveKeyValue ¶
type ETCDConfigs ¶
Click to show internal directories.
Click to hide internal directories.