server

package
v0.0.0-...-29666e4 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 7 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 New

func New(raft *raft.Raft, db *badger.DB) *Server

func (*Server) DelHandler

func (s *Server) DelHandler(w http.ResponseWriter, r *http.Request)

func (*Server) GetHandler

func (s *Server) GetHandler(w http.ResponseWriter, r *http.Request)

func (Server) RaftJoin

func (s Server) RaftJoin(w http.ResponseWriter, r *http.Request)

func (Server) RaftLeave

func (s Server) RaftLeave(w http.ResponseWriter, r *http.Request)

func (Server) RaftStatus

func (s Server) RaftStatus(w http.ResponseWriter, r *http.Request)

func (*Server) SetHandler

func (s *Server) SetHandler(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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