etcdm

package
v0.0.0-...-bebf002 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdConf

type EtcdConf struct {
	EndPoints []string
	TLSInfo   TLSInfo
}

func (*EtcdConf) NewConfig

func (s *EtcdConf) NewConfig() (conf clientv3.Config, err error)

func (*EtcdConf) NewConnect

func (s *EtcdConf) NewConnect(ctx context.Context) (etcdClient, error)

type TLSInfo

type TLSInfo struct {
	CertFile      string
	KeyFile       string
	TrustedCAFile string
}

TLSInfo etcd中证书的相关配置

Jump to

Keyboard shortcuts

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