probe

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClusterNotInitialized = errors.New("CLUSTERDOWN The cluster is not initialized")
	ErrRestoringBackUp       = errors.New("LOADING kvrocks is restoring the db from backup")
)

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	// contains filtered or unexported fields
}

func NewCluster

func NewCluster(ns, cluster string, storage *storage.Storage, failOver *failover.FailOver) *Cluster

type Probe

type Probe struct {
	// contains filtered or unexported fields
}

func New

func New(storage *storage.Storage, failOver *failover.FailOver) *Probe

New return Probe contain all methods to manager loop

func (*Probe) AddCluster

func (p *Probe) AddCluster(ns, cluster string)

AddCluster add cluster loop and start

func (*Probe) Load

func (p *Probe) Load(ctx context.Context) error

func (*Probe) RemoveCluster

func (p *Probe) RemoveCluster(ns, cluster string)

RemoveCluster delete cluster loop and stop

func (*Probe) Shutdown

func (p *Probe) Shutdown()

Shutdown all cluster loop when leader-follower switch

Jump to

Keyboard shortcuts

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