etcd

package
v0.0.0-...-50176c9 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float

func Float(value float64, err error) float64

func Int

func Int(value int, err error) int

func String

func String(value string, err error) string

Types

type Etcd

type Etcd struct {
	Client  client.Client
	KeysAPI client.KeysAPI
	Config  client.Config
}

func New

func New(cfg client.Config) (e *Etcd, err error)

func (Etcd) Get

func (e Etcd) Get(key string) (string, error)

func (Etcd) GetFloat

func (e Etcd) GetFloat(key string) (float64, error)

func (Etcd) GetInt

func (e Etcd) GetInt(key string) (int, error)

func (Etcd) SetOrUpdate

func (e Etcd) SetOrUpdate(key, value string) error

Jump to

Keyboard shortcuts

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