zetcd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcurrencyDo

func ConcurrencyDo(f func() error, option ...Option) error

func EtcdSyncDo

func EtcdSyncDo(f func() error, option ...Option0) error

func NewEtcdClient

func NewEtcdClient(config v3.Config) (*v3.Client, error)

Types

type Option

type Option func(*concurrencyDoConfig)

********************************auto generate****************************** Option is a concurrencyDoConfig configurator to be supplied to NewconcurrencyDoConfig() function.

func WithCtx

func WithCtx(ctx context.Context) Option

WithCtx sets the Ctx

func WithTitle

func WithTitle(title string) Option

WithTitle sets the Title

type Option0

type Option0 func(*elockConfig)

func WithAttempts

func WithAttempts(attempts uint) Option0

func WithDelay

func WithDelay(delay time.Duration) Option0

func WithEndpoint

func WithEndpoint(endpoint string) Option0

func WithMaxDelay

func WithMaxDelay(maxdelay time.Duration) Option0

func WithNodes

func WithNodes(nodes []string) Option0

func WithTTL

func WithTTL(ttl int) Option0

Jump to

Keyboard shortcuts

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