etcd

package
v0.0.0-...-ee57bd3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBasePath = "/zoo"
	DefaultTTL      = 15
	DefaultTimeout  = time.Second * 5
	DefaultMaxRetry = 10
)

Variables

This section is empty.

Functions

func NewRegistry

func NewRegistry(opts ...Option) registry.Registry

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

func Addrs

func Addrs(addrs ...string) Option

func Auth

func Auth(username, password string) Option

func BasePath

func BasePath(basePath string) Option

func Context

func Context(ctx context.Context) Option

func MaxRetry

func MaxRetry(maxRetry int) Option

func RegisterTTL

func RegisterTTL(ttl int64) Option

func Timeout

func Timeout(t time.Duration) Option

Jump to

Keyboard shortcuts

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