rafthttp

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dialer

func Dialer(tr func(context.Context) http.RoundTripper, basePath string) transport.Dialer

Dialer return's grpc dialer.

func NewHandlerFunc

func NewHandlerFunc(basePath string) transport.NewHandler

NewHandlerFunc retur'ns func that create an http transport Handler.

Types

type Handler added in v1.0.1

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

func (*Handler) Join added in v1.0.1

func (h *Handler) Join(w http.ResponseWriter, r *http.Request) (int, error)

func (*Handler) Message added in v1.0.1

func (h *Handler) Message(w http.ResponseWriter, r *http.Request) (int, error)

func (*Handler) PromoteMember added in v1.0.1

func (h *Handler) PromoteMember(w http.ResponseWriter, r *http.Request) (int, error)

func (*Handler) Snapshot added in v1.0.1

func (h *Handler) Snapshot(w http.ResponseWriter, r *http.Request) (int, error)

func (*Handler) WrapHttpHandlerFunc added in v1.0.2

func (h *Handler) WrapHttpHandlerFunc(fn handlerFunc) http.HandlerFunc

WrapHttpHandlerFunc 将handler打包成http的handler func格式

Jump to

Keyboard shortcuts

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