Documentation ¶
Index ¶
- type EtcdClient
- func (cli *EtcdClient) EtcdDelete(ctx context.Context, key string) error
- func (cli *EtcdClient) EtcdGet(ctx context.Context, key string) (map[string]string, error)
- func (cli *EtcdClient) EtcdPut(ctx context.Context, key, value string) error
- func (cli *EtcdClient) EtcdPutWithTTL(ctx context.Context, key, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdClient ¶
type EtcdClient struct {
// contains filtered or unexported fields
}
func NewEtcdClient ¶
func NewEtcdClient() *EtcdClient
func (*EtcdClient) EtcdDelete ¶
func (cli *EtcdClient) EtcdDelete(ctx context.Context, key string) error
func (*EtcdClient) EtcdPut ¶
func (cli *EtcdClient) EtcdPut(ctx context.Context, key, value string) error
func (*EtcdClient) EtcdPutWithTTL ¶
func (cli *EtcdClient) EtcdPutWithTTL(ctx context.Context, key, value string) error
Click to show internal directories.
Click to hide internal directories.