etcd

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigForEtcdTest

func ConfigForEtcdTest(endpoint string) *config.Config

func CreateEtcdServer

func CreateEtcdServer(addr, dir string, lg *zap.Logger) (*embed.Etcd, error)

CreateEtcdServer creates an etcd server and is only used for testing.

func GetKVs

func GetKVs(ctx context.Context, etcdCli *clientv3.Client, key string, opts []clientv3.OpOption, timeout, retryIntvl time.Duration, retryCnt uint64) ([]*mvccpb.KeyValue, error)

func InitEtcdClient

func InitEtcdClient(logger *zap.Logger, cfg *config.Config, certMgr *cert.CertManager) (*clientv3.Client, error)

InitEtcdClient initializes an etcd client that connects to PD ETCD server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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