Documentation
¶
Index ¶
- type EtcdLibs
- func (lib *EtcdLibs) Del(params *entity.Parameters) (*clientv3.DeleteResponse, error)
- func (lib *EtcdLibs) Get(path string) (*clientv3.GetResponse, error)
- func (lib *EtcdLibs) GetByPath(path string) (*clientv3.GetResponse, error)
- func (lib *EtcdLibs) GetParameters() *entity.Parameters
- func (lib *EtcdLibs) Put(params *entity.Parameters) (*clientv3.PutResponse, error)
- type EtcdLibsInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdLibs ¶
EtcdLibs ...
func (*EtcdLibs) Del ¶
func (lib *EtcdLibs) Del(params *entity.Parameters) (*clientv3.DeleteResponse, error)
Del ...
func (*EtcdLibs) GetByPath ¶
func (lib *EtcdLibs) GetByPath(path string) (*clientv3.GetResponse, error)
GetByPath ...
func (*EtcdLibs) GetParameters ¶
func (lib *EtcdLibs) GetParameters() *entity.Parameters
GetParameters ...
func (*EtcdLibs) Put ¶
func (lib *EtcdLibs) Put(params *entity.Parameters) (*clientv3.PutResponse, error)
Put ...
type EtcdLibsInterface ¶
type EtcdLibsInterface interface {
Put(client *clientv3.Client, params *entity.Parameters) (*clientv3.PutResponse, error)
Get(client *clientv3.Client, params *entity.Parameters) (*clientv3.GetResponse, error)
Del(client *clientv3.Client, params *entity.Parameters) (*clientv3.DeleteResponse, error)
Init(config *config.Configs) (*clientv3.Client, error)
GetParameters() *entity.Parameters
GetByPath(path string) (*clientv3.GetResponse, error)
}
EtcdLibsInterface ...
Click to show internal directories.
Click to hide internal directories.