etcd

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MulanPSL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEtcdClient

func GetEtcdClient() *clientv3.Client

====================== 业务板块 ======================

func GetEtcdClientKV

func GetEtcdClientKV() clientv3.KV

func GetEtcdClientLease

func GetEtcdClientLease() clientv3.Lease

Types

type Instance

type Instance struct {
	Endpoints   []string `yaml:"endpoints"`
	DialTimeout int      `yaml:"dial_timeout"`
}

func (*Instance) GetName

func (t *Instance) GetName() string

func (*Instance) Run

func (t *Instance) Run() (err error)

Jump to

Keyboard shortcuts

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