Documentation
¶
Index ¶
- func URLParam(r *http.Request, key string) string
- type Mux
- type Options
- type RouteGroup
- type Router
- type Server
- func (s *Server) AttachDebug()
- func (s *Server) Group(path string) *RouteGroup
- func (s *Server) Listen()
- func (s *Server) RegisterService(service ServiceHandler)
- func (s *Server) ServeStatic(route string, staticFiles embed.FS, dir string)
- func (s *Server) Use(middlewares ...func(http.Handler) http.Handler)
- type ServiceHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type RouteGroup ¶
type RouteGroup struct {
// contains filtered or unexported fields
}
func (*RouteGroup) RegisterService ¶
func (rg *RouteGroup) RegisterService(service ServiceHandler)
func (*RouteGroup) Use ¶
func (rg *RouteGroup) Use(mw ...func(http.Handler) http.Handler) *RouteGroup
type Server ¶
func (*Server) Group ¶
func (s *Server) Group(path string) *RouteGroup
func (*Server) RegisterService ¶
func (s *Server) RegisterService(service ServiceHandler)
func (*Server) ServeStatic ¶
Source Files
¶
- server.go
Click to show internal directories.
Click to hide internal directories.