raft

package
v0.0.0-...-e8f0c1c Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewRaftServer

func NewRaftServer(dataDir string, nodeHost string, members map[uint64]string, join bool, storageCreateFunc sm.CreateOnDiskStateMachineFunc, cfg *config.Config) (*Server, error)

func (*Server) Get

func (s *Server) Get(req *dto.GetRequest) (*dto.GetResponse, error)

func (*Server) Put

func (s *Server) Put(req *dto.PutRequest) error

Jump to

Keyboard shortcuts

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