Documentation ¶
Index ¶
- func NewEtcdSync(client *clientv3.Client, opts ...sync.Option) sync.Sync
- func NewSync(opts ...sync.Option) sync.Sync
- type EtcdSync
- func (e *EtcdSync) GetConn() *clientv3.Client
- func (e *EtcdSync) Init(opts ...sync.Option) error
- func (e *EtcdSync) Leader(ctx context.Context, name string, opts ...sync.LeaderOption) (sync.Leader, error)
- func (e *EtcdSync) ListMembers(ctx context.Context, opts ...sync.ListMembersOption) ([]*sync.Member, error)
- func (e *EtcdSync) Lock(ctx context.Context, id string, opts ...sync.LockOption) error
- func (e *EtcdSync) Options() sync.Options
- func (e *EtcdSync) String() string
- func (e *EtcdSync) Unlock(ctx context.Context, id string) error
- func (e *EtcdSync) WatchElect(ctx context.Context, opts ...sync.WatchElectOption) (sync.ElectWatcher, error)
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEtcdSync ¶ added in v1.4.9
Types ¶
type EtcdSync ¶ added in v1.6.18
type EtcdSync struct {
// contains filtered or unexported fields
}
func (*EtcdSync) ListMembers ¶ added in v1.6.18
func (*EtcdSync) WatchElect ¶ added in v1.6.18
func (e *EtcdSync) WatchElect(ctx context.Context, opts ...sync.WatchElectOption) (sync.ElectWatcher, error)
Click to show internal directories.
Click to hide internal directories.