Documentation
¶
Index ¶
- func Dialer(tr func(context.Context) http.RoundTripper, basePath string) transport.Dialer
- func NewHandlerFunc(basePath string) transport.NewHandler
- type Handler
- func (h *Handler) Join(w http.ResponseWriter, r *http.Request) (int, error)
- func (h *Handler) Message(w http.ResponseWriter, r *http.Request) (int, error)
- func (h *Handler) PromoteMember(w http.ResponseWriter, r *http.Request) (int, error)
- func (h *Handler) Snapshot(w http.ResponseWriter, r *http.Request) (int, error)
- func (h *Handler) WrapHttpHandlerFunc(fn handlerFunc) http.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) PromoteMember ¶ added in v1.0.1
func (*Handler) WrapHttpHandlerFunc ¶ added in v1.0.2
func (h *Handler) WrapHttpHandlerFunc(fn handlerFunc) http.HandlerFunc
WrapHttpHandlerFunc 将handler打包成http的handler func格式
Click to show internal directories.
Click to hide internal directories.