memdb

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

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 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)

type Document

type Document struct {
	Key   string
	Value []byte
}

Jump to

Keyboard shortcuts

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