Documentation ¶
Index ¶
- type EtcdClientRetryProxy
- func (ecrp *EtcdClientRetryProxy) Create(ctx context.Context, key, value string) (*client.Response, error)
- func (ecrp *EtcdClientRetryProxy) CreateInOrder(ctx context.Context, dir, value string, opts *client.CreateInOrderOptions) (*client.Response, error)
- func (ecrp *EtcdClientRetryProxy) Delete(ctx context.Context, key string, opts *client.DeleteOptions) (*client.Response, error)
- func (ecrp *EtcdClientRetryProxy) Get(ctx context.Context, key string, opts *client.GetOptions) (*client.Response, error)
- func (ecrp *EtcdClientRetryProxy) NewWatcherProxy(key string, opts *client.WatcherOptions) *watcherProxy
- func (ecrp *EtcdClientRetryProxy) Retry(fn func() (*client.Response, error)) (*client.Response, error)
- func (ecrp *EtcdClientRetryProxy) Set(ctx context.Context, key, value string, opts *client.SetOptions) (*client.Response, error)
- func (ecrp *EtcdClientRetryProxy) Shutdown()
- func (ecrp *EtcdClientRetryProxy) Update(ctx context.Context, key, value string) (*client.Response, error)
- func (ecrp *EtcdClientRetryProxy) Watcher(key string, opts *client.WatcherOptions) client.Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdClientRetryProxy ¶
type EtcdClientRetryProxy struct { ErrorChan chan error // contains filtered or unexported fields }
func NewEtcdClientRetryProxy ¶
func NewEtcdClientRetryProxy(c client.Client, ec chan error, min uint, max uint) *EtcdClientRetryProxy
if you don't want to be notified when the retry proxy needs to retry, pass ec=nil
func (*EtcdClientRetryProxy) CreateInOrder ¶
func (ecrp *EtcdClientRetryProxy) CreateInOrder(ctx context.Context, dir, value string, opts *client.CreateInOrderOptions) (*client.Response, error)
func (*EtcdClientRetryProxy) Delete ¶
func (ecrp *EtcdClientRetryProxy) Delete(ctx context.Context, key string, opts *client.DeleteOptions) (*client.Response, error)
func (*EtcdClientRetryProxy) Get ¶
func (ecrp *EtcdClientRetryProxy) Get(ctx context.Context, key string, opts *client.GetOptions) (*client.Response, error)
Satisfy the client.KeysAPI interface
func (*EtcdClientRetryProxy) NewWatcherProxy ¶
func (ecrp *EtcdClientRetryProxy) NewWatcherProxy(key string, opts *client.WatcherOptions) *watcherProxy
func (*EtcdClientRetryProxy) Set ¶
func (ecrp *EtcdClientRetryProxy) Set(ctx context.Context, key, value string, opts *client.SetOptions) (*client.Response, error)
func (*EtcdClientRetryProxy) Shutdown ¶
func (ecrp *EtcdClientRetryProxy) Shutdown()
func (*EtcdClientRetryProxy) Watcher ¶
func (ecrp *EtcdClientRetryProxy) Watcher(key string, opts *client.WatcherOptions) client.Watcher
Click to show internal directories.
Click to hide internal directories.