raft_controller

package
v0.0.0-...-d7efa00 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RaftError = map[string]int{
		"bad-request": 400,
		"add-voter":   422,
		"not-leader":  422,
		"bad-node":    500,
	}
)

Functions

This section is empty.

Types

type Node

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

func New

func New(r *raft.Raft) *Node

func (*Node) JoinRequest

func (*Node) PayloadHandler

func (n *Node) PayloadHandler(body []byte) raft_model.ServerResponse

func (*Node) RemoveRequest

func (*Node) Stats

func (n *Node) Stats() raft_model.ServerResponse

Jump to

Keyboard shortcuts

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