etcd

package module
v1.6.18 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEtcdSync added in v1.4.9

func NewEtcdSync(client *clientv3.Client, opts ...sync.Option) sync.Sync

func NewSync

func NewSync(opts ...sync.Option) sync.Sync

Types

type EtcdSync added in v1.6.18

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

func (*EtcdSync) GetConn added in v1.6.18

func (e *EtcdSync) GetConn() *clientv3.Client

func (*EtcdSync) Init added in v1.6.18

func (e *EtcdSync) Init(opts ...sync.Option) error

func (*EtcdSync) Leader added in v1.6.18

func (e *EtcdSync) Leader(ctx context.Context, name string, opts ...sync.LeaderOption) (sync.Leader, error)

func (*EtcdSync) ListMembers added in v1.6.18

func (e *EtcdSync) ListMembers(ctx context.Context, opts ...sync.ListMembersOption) ([]*sync.Member, error)

func (*EtcdSync) Lock added in v1.6.18

func (e *EtcdSync) Lock(ctx context.Context, id string, opts ...sync.LockOption) error

func (*EtcdSync) Options added in v1.6.18

func (e *EtcdSync) Options() sync.Options

func (*EtcdSync) String added in v1.6.18

func (e *EtcdSync) String() string

func (*EtcdSync) Unlock added in v1.6.18

func (e *EtcdSync) Unlock(ctx context.Context, id string) error

func (*EtcdSync) WatchElect added in v1.6.18

func (e *EtcdSync) WatchElect(ctx context.Context, opts ...sync.WatchElectOption) (sync.ElectWatcher, error)

type Value added in v1.0.2

type Value struct {
	Namespace string `json:"namespace"`
	Id        string `json:"id"`
}

Jump to

Keyboard shortcuts

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