etcd

package
v0.0.0-...-9b1b795 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClientNil = errors.New("etcd client is nil")
)

Functions

func NewEtcdConfig

func NewEtcdConfig(ctx context.Context, cli *clientv3.Client, opts ...Option) (*etcdConfig, error)

func NewOptions

func NewOptions(opts ...Option) *options

Types

type Option

type Option func(*options)

func WithPaths

func WithPaths(path ...string) Option

func WithRoot

func WithRoot(prefix string) Option

Jump to

Keyboard shortcuts

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