Documentation ¶
Index ¶
- type Server
- func (self *Server) Endpoint(httpMethod string, path string) *endpoint.Endpoint
- func (self Server) Execute(fasthttpCtx *fasthttp.RequestCtx) (int, []byte)
- func (self *Server) Handle(endpointConfig *endpoint.Config, routeDefinition route.Route)
- func (self *Server) HandleNotFound(endpointConfig *endpoint.Config, handler endpoint.Handler)
- 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.