etcd

package
v0.8.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdLibs

type EtcdLibs struct {
	Client      *clientv3.Client
	DialTimeout time.Duration
}

EtcdLibs ...

func Init

func Init(config *config.Configs) (*EtcdLibs, error)

Init ...

func (*EtcdLibs) Del

func (lib *EtcdLibs) Del(params *entity.Parameters) (*clientv3.DeleteResponse, error)

Del ...

func (*EtcdLibs) Get

func (lib *EtcdLibs) Get(path string) (*clientv3.GetResponse, error)

Get ...

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 ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL