etcd

package
v4.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocker added in v4.0.6

func NewLocker(s *concurrency.Session, pfx string) sync.Locker

NewLocker creates a sync.Locker backed by an etcd mutex.

func NewSource

func NewSource(ctx context.Context, cli *clientv3.Client, prefix string, sessionTTL int, withKeys bool, opts ...configx.Option) (config.Store, error)

Types

type TLSURLOpener added in v4.0.1

type TLSURLOpener struct{}

func (*TLSURLOpener) OpenURL added in v4.0.1

func (o *TLSURLOpener) OpenURL(ctx context.Context, u *url.URL) (config.Store, error)

type URLOpener added in v4.0.1

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

func (*URLOpener) OpenURL added in v4.0.1

func (o *URLOpener) OpenURL(ctx context.Context, u *url.URL) (config.Store, error)

Jump to

Keyboard shortcuts

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