v3

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cs ConfigSpec) (*clientv3.Client, error)

func NewTLSConfig

func NewTLSConfig(scfg *SecureCfg) (*tls.Config, error)

Types

type ConfigSpec

type ConfigSpec struct {
	Endpoints        []string
	DialTimeout      time.Duration
	DialOptions      []grpc.DialOption
	KeepAliveTime    time.Duration
	KeepAliveTimeout time.Duration
	Secure           *SecureCfg
}

type SecureCfg

type SecureCfg struct {
	Cert   string
	Key    string
	Cacert string

	InsecureTransport  bool
	InsecureSkipVerify bool
}

Jump to

Keyboard shortcuts

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