etcd

package
v0.0.0-...-23bf2d9 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FillAddressesPort

func FillAddressesPort(addresses []string) (out []string)

Types

type Client

type Client struct {
	*clientv3.Client
}

func New

func New(config clientv3.Config) (Client, error)

func (Client) Watch

func (c Client) Watch(ctx context.Context, key string, handler func([]*clientv3.Event, error),
	opts ...clientv3.OpOption,
)

type MaybeClient

type MaybeClient func() (Client, error)

func NewMaybeClient

func NewMaybeClient(config clientv3.Config) MaybeClient

func (MaybeClient) Client

func (mc MaybeClient) Client() Client

func (MaybeClient) Error

func (mc MaybeClient) Error() error

Jump to

Keyboard shortcuts

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