clustermanager

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterManager

type ClusterManager interface {
	Status(ctx echo.Context) error
	AddNode(ctx echo.Context) error
	DeleteNode(ctx echo.Context) error
	BootRaftClusterManager(cluster *raft.Raft, httpServer *echo.Echo) error
}

type NodeInput

type NodeInput struct {
	NodeAddr string `json:"node_addr" form:"node_addr" query:"node_addr" validate:"required"`
}

type RaftClusterManager

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

func (*RaftClusterManager) AddNode

func (m *RaftClusterManager) AddNode(ctx echo.Context) error

func (*RaftClusterManager) BootRaftClusterManager

func (m *RaftClusterManager) BootRaftClusterManager(cluster *raft.Raft, httpServer *echo.Echo) error

func (*RaftClusterManager) DeleteNode

func (m *RaftClusterManager) DeleteNode(ctx echo.Context) error

func (*RaftClusterManager) Status

func (m *RaftClusterManager) Status(ctx echo.Context) error

Jump to

Keyboard shortcuts

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