etcd

package
v0.0.0-...-6ed9475 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRedirect

func GetRedirect(c Connection, k string) (string, error)

func PutRedirect

func PutRedirect(c Connection, k string, v string) error

Types

type Config

type Config struct {
	Address        []string `toml:"address"`
	DialTimeout    string   `toml:"dial_timeout"`
	RequestTimeout string   `toml:"request_timeout"`
}

type Connection

type Connection struct {
	Context context.Context
	Client  clientv3.Client
}

func NewEtcdClient

func NewEtcdClient(c Config) (*Connection, error)

Jump to

Keyboard shortcuts

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