etcd

package
v0.0.0-...-8b0f75f Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Etcd

type Etcd struct {
	// contains filtered or unexported fields
}

func New

func New(exchanger *config.Exchanger) *Etcd

New make new etcd client

@param etcdConfig
@return *Etcd

func (*Etcd) Put

func (etcd *Etcd) Put(key interface{}, value interface{}) error

Put put data into exchanger

@param key data identity
@param value data

func (*Etcd) Remove

func (etcd *Etcd) Remove(key interface{}) error

Remove remove data from etcd

@receiver exchanger etcd exchanger
@param o data

Jump to

Keyboard shortcuts

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