Documentation
¶
Index ¶
- type Server
- func (self Server) Execute(fasthttpCtx *fasthttp.RequestCtx) (int, []byte)
- func (self *Server) Handle(httpMethod string, path string, handle *handler.Handle)
- func (self *Server) HandleNotFound(handle *handler.Handle)
- func (self *Server) Handler(httpMethod string, path string) *handler.Runner
- func (self Server) Listen()
- type ServerConfig
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
}
Server listens for incoming requests and routes them to the registered endpoint handlers.
func (Server) Execute ¶
func (self Server) Execute(fasthttpCtx *fasthttp.RequestCtx) (int, []byte)
Execute one request. Useful for testing.
func (*Server) Handle ¶
Handle the given route to the provided endpoint handler. This starts a builder pattern where the endpoint may be modified from the root endpoint configuration.
func (*Server) HandleNotFound ¶
Click to show internal directories.
Click to hide internal directories.