etcd

package
v0.0.0-...-3e22abe Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEtcdClient

func NewEtcdClient(opts ...Option) (*clientV3.Client, error)

Types

type AuthCreds

type AuthCreds struct {
	Username string
	Password string
}

type Option

type Option func(*Options)

func WithAddress

func WithAddress(address []string) Option

func WithAuth

func WithAuth(username, password string) Option

Auth allows you to specify username/password.

func WithTLSConfig

func WithTLSConfig(config *tls.Config) Option

func WithTimeout

func WithTimeout(seconds int32) Option

WithTimeout dial timeout with seconds

type Options

type Options struct {
	TLSConfig   *tls.Config
	Address     []string
	DialTimeout time.Duration
	AuthCreds   *AuthCreds
}

Jump to

Keyboard shortcuts

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