etcd

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 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(endpoints []string, opts ...OptionFunc) (*Etcd, error)

NewClient

type Option

type Option struct {
	// contains filtered or unexported fields
}

type OptionFunc added in v1.0.2

type OptionFunc func(*Option)

func WithDialTimeout

func WithDialTimeout(duration time.Duration) OptionFunc

Jump to

Keyboard shortcuts

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