Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCoordinator ¶
func NewCoordinator() core.CoordinatorService
NewCoordinator returns a new etcd coordinator instance.
Types ¶
type BinaryFieldIndexer ¶ added in v1.3.4
type BinaryFieldIndexer struct { }
BinaryFieldIndexer is a custom field indexer for binary keys.
func (*BinaryFieldIndexer) FromArgs ¶ added in v1.3.4
func (indexer *BinaryFieldIndexer) FromArgs(args ...any) ([]byte, error)
FromArgs extracts the binary key from the arguments.
func (*BinaryFieldIndexer) FromObject ¶ added in v1.3.4
func (indexer *BinaryFieldIndexer) FromObject(obj any) (bool, []byte, error)
FromObject extracts the binary key from the object.
func (*BinaryFieldIndexer) PrefixFromArgs ¶ added in v1.3.4
func (indexer *BinaryFieldIndexer) PrefixFromArgs(args ...any) ([]byte, error)
PrefixFromArgs returns the prefix of the key.
type Coordinator ¶ added in v0.9.0
type Coordinator struct { *core.BaseCoordinator *memdb.MemDB }
func (*Coordinator) ServiceName ¶ added in v0.9.0
func (coord *Coordinator) ServiceName() string
ServiceName returns the plug-in service name.
func (*Coordinator) Start ¶ added in v0.9.0
func (coord *Coordinator) Start() error
Start starts this etcd coordinator.
func (*Coordinator) Stop ¶ added in v0.9.0
func (coord *Coordinator) Stop() error
Stop stops this etcd coordinator.
func (*Coordinator) Transact ¶ added in v0.9.0
func (coord *Coordinator) Transact() (coordinator.Transaction, error)
Click to show internal directories.
Click to hide internal directories.