etcd

package
v0.0.0-...-0c08822 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Elect

func Elect(ctx context.Context, client *clientv3.Client, pfx, val string, processor func(context.Context)) error

func New

func New(addrs []string, opts ...Option) (*clientv3.Client, error)

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithAuth

func WithAuth(username, password string) Option

func WithSSL

func WithSSL(keyFile, certFile, trustedCAFile string) Option

Jump to

Keyboard shortcuts

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