etcd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoints   string
	DialTimeout time.Duration
}

type Etcd

type Etcd struct {
	*clientv3.Client
	// contains filtered or unexported fields
}

Etcd

func NewClient

func NewClient(opts ...Option) (*Etcd, error)

NewClient

type Option

type Option func(*Etcd)

func WithDialTimeout

func WithDialTimeout(duration time.Duration) Option

func WithEndpoints

func WithEndpoints(endpoints []string) Option

Jump to

Keyboard shortcuts

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