Documentation
¶
Index ¶
- type Middleware
- type Server
- func (s *Server) AddMiddleware(middlewares ...Middleware)
- func (s *Server) DELETE(path string, handle fasthttp.RequestHandler)
- func (s *Server) GET(path string, handle fasthttp.RequestHandler)
- func (s *Server) HEAD(path string, handle fasthttp.RequestHandler)
- func (s *Server) Handle(method, path string, handle fasthttp.RequestHandler)
- func (s *Server) OPTIONS(path string, handle fasthttp.RequestHandler)
- func (s *Server) PATCH(path string, handle fasthttp.RequestHandler)
- func (s *Server) POST(path string, handle fasthttp.RequestHandler)
- func (s *Server) PUT(path string, handle fasthttp.RequestHandler)
- func (s *Server) Serve(port string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware func(h fasthttp.RequestHandler) fasthttp.RequestHandler
func NewLogMiddleware ¶
func NewLogMiddleware(ctx context.Context, serviceName string) Middleware
type Server ¶
type Server struct { Logger *log.Logger Router *router.Router Middlewares []Middleware }
func (*Server) AddMiddleware ¶
func (s *Server) AddMiddleware(middlewares ...Middleware)
Click to show internal directories.
Click to hide internal directories.