raft

package
v0.0.0-...-4c5efe1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCluster

func NewCluster(log logr.Logger) cluster.Cluster

Types

type Cluster

type Cluster struct {
	cluster.KV
	// contains filtered or unexported fields
}

func (*Cluster) Fatal

func (c *Cluster) Fatal(err error)

func (*Cluster) ID

func (c *Cluster) ID() string

func (*Cluster) Logger

func (c *Cluster) Logger() logr.Logger

func (*Cluster) Reset

func (c *Cluster) Reset()

func (*Cluster) SetCallbacks

func (c *Cluster) SetCallbacks(callbacks cluster.Callbacks) error

func (*Cluster) Start

func (c *Cluster) Start(raftcfg *config.Config) error

func (*Cluster) Stepdown

func (c *Cluster) Stepdown()

func (*Cluster) Stop

func (c *Cluster) Stop()

type Op

type Op uint8
const (
	SET Op = iota
	DELETE
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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