server

package
v0.0.0-...-1337258 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandleFunc

type HandleFunc func(request *consts.KvRequest) (*consts.KvResponse, error)

func LogMw

func LogMw(handleFn HandleFunc) HandleFunc

func ParamsValidateMw

func ParamsValidateMw(handleFn HandleFunc) HandleFunc

type MiddlewareFunc

type MiddlewareFunc func(handleFn HandleFunc) HandleFunc

type Server

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

func NewServer

func NewServer() (*Server, error)

func (*Server) HandleGet

func (srv *Server) HandleGet(req *consts.KvRequest) (*consts.KvResponse, error)

func (*Server) HandleSet

func (srv *Server) HandleSet(req *consts.KvRequest) (*consts.KvResponse, error)

func (*Server) Server

func (srv *Server) Server(resp http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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