fdb

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

View Source
const (
	RequiredAPIVersion int = 710
	ClusterFile            = "cluster_file"
)

Variables

This section is empty.

Functions

func NewCoordinator

func NewCoordinator() core.CoordinatorService

NewCoordinator returns a new etcd coordinator instance.

Types

type Coordinator

type Coordinator struct {
	*core.BaseCoordinator
	fdb.Database
}

func (*Coordinator) GetClusterFile added in v1.1.1

func (coord *Coordinator) GetClusterFile() (string, error)

GetClusterFile returns the cluster file configuration.

func (*Coordinator) ServiceName

func (coord *Coordinator) ServiceName() string

ServiceName returns the plug-in service name.

func (*Coordinator) Start

func (coord *Coordinator) Start() error

Start starts this etcd coordinator.

func (*Coordinator) Stop

func (coord *Coordinator) Stop() error

Stop stops this etcd coordinator.

func (*Coordinator) Transact

func (coord *Coordinator) Transact() (coordinator.Transaction, error)

Jump to

Keyboard shortcuts

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