etcd

package
v0.0.0-...-d22e7c3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: GPL-3.0 Imports: 4 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
}

Etcd backend for feature flag

func New

func New(endpoints []string, timeout time.Duration) (*Etcd, error)

New etcd feature-flag backend

func (*Etcd) Get

func (etcd *Etcd) Get(ctx context.Context, key string) (string, error)

Get key from etcd

func (*Etcd) Set

func (etcd *Etcd) Set(ctx context.Context, key, value string) error

Set key to etcd

Jump to

Keyboard shortcuts

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