Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JsonHandler ¶
JsonHandler provides a Fiber Handler for rendering JSON responses (1) Unmarshal the incoming request body, in the event of failure respond with 400. (2) Find the response body for the route, including any variants. (3) Unmarshal the raw response body, in the event of failure respond with 500. (4) Respond to the client with the found response.
Types ¶
type RequestLog ¶
func NewRequestLog ¶
func NewRequestLog(logger logging.Logger) RequestLog
type Server ¶
type Server struct { Options Options // contains filtered or unexported fields }
func (*Server) Listen ¶
Listen is a wrapper around the Fiber App's listen where the host is derived from the server options.
func (*Server) PrintConfig ¶
func (s *Server) PrintConfig()
PrintConfig outputs the defined routes in table form and the final host that the server is listening on.
Click to show internal directories.
Click to hide internal directories.