etcd

package
v0.0.0-...-0f65a33 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: BSD-2-Clause Imports: 10 Imported by: 6

Documentation

Index

Constants

View Source
const (
	ETCD_ADDR = "ETCD_ADDR"
)

Variables

This section is empty.

Functions

func GetClient

func GetClient(endPoints []string) (*etcd.Client, error)

func GetValue

func GetValue(key string) (value string, err error)

根据key获取value

func NewClient

func NewClient() (*etcd.Client, error)

func Put

func Put(key, value string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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