etcdv3

package
v0.0.0-...-5c9bec8 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(config *Config) (*clientv3.Client, error)

NewClient

Types

type Config

type Config struct {
	Endpoints            []string
	Username             string
	Password             string
	DialTimeout          time.Duration
	DialKeepAliveTime    time.Duration
	DialKeepAliveTimeout time.Duration
	AutoSyncInterval     time.Duration
	TlsEnable            bool
	CertFile             string
	KeyFile              string
	CAFile               string
	// contains filtered or unexported fields
}

func RawConfig

func RawConfig(key string) *Config

func StdConfig

func StdConfig() *Config

func (*Config) Build

func (c *Config) Build() (*clientv3.Client, error)

Build

func (*Config) WithDialOptions

func (c *Config) WithDialOptions(opts ...grpc.DialOption)

WithDialOptions

Jump to

Keyboard shortcuts

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