Documentation ¶
Index ¶
- type Discovery
- type Registry
- func (r *Registry) Close() error
- func (r *Registry) Compact(ctx context.Context, rev int64, opts ...clientv3.CompactOption) (*clientv3.CompactResponse, error)
- func (r *Registry) Delete(ctx context.Context, key string, opts ...clientv3.OpOption) (*clientv3.DeleteResponse, error)
- func (r *Registry) Do(ctx context.Context, op clientv3.Op) (clientv3.OpResponse, error)
- func (r *Registry) Get(ctx context.Context, key string, opts ...clientv3.OpOption) (*clientv3.GetResponse, error)
- func (r *Registry) KeepAlive() error
- func (r *Registry) Put(ctx context.Context, key, val string, opts ...clientv3.OpOption) (*clientv3.PutResponse, error)
- func (r *Registry) RequestProgress(ctx context.Context) error
- func (r *Registry) Start() error
- func (r *Registry) Stop()
- func (r *Registry) Txn(ctx context.Context) clientv3.Txn
- func (r *Registry) Watch(ctx context.Context, key string, opts ...clientv3.OpOption) clientv3.WatchChan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discovery ¶
type Discovery struct {
// contains filtered or unexported fields
}
Discovery inwrap for clientv3 of etcd
func NewDiscovery ¶
func NewDiscovery(c *conf.DiscoveryConf) (*Discovery, error)
NewDiscovery create an clientv3 of etcd
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry inwrap for clientv3 of etcd
func NewRegistry ¶
func NewRegistry(c *conf.RegistryConf) (*Registry, error)
NewRegistry create an clientv3 of etcd
func (*Registry) Compact ¶
func (r *Registry) Compact(ctx context.Context, rev int64, opts ...clientv3.CompactOption) (*clientv3.CompactResponse, error)
Compact inwrap for clientv3.Compact of etcd
func (*Registry) Delete ¶
func (r *Registry) Delete(ctx context.Context, key string, opts ...clientv3.OpOption) (*clientv3.DeleteResponse, error)
Delete inwrap for clientv3.Delete of etcd
func (*Registry) Get ¶
func (r *Registry) Get(ctx context.Context, key string, opts ...clientv3.OpOption) (*clientv3.GetResponse, error)
Get inwrap for clientv3.Get of etcd
func (*Registry) Put ¶
func (r *Registry) Put(ctx context.Context, key, val string, opts ...clientv3.OpOption) (*clientv3.PutResponse, error)
Put inwrap for clientv3.Put of etcd
func (*Registry) RequestProgress ¶
RequestProgress inwrap for clientv3.RequestProgress of etcd
Click to show internal directories.
Click to hide internal directories.