Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPRouter ¶
type HTTPRouter interface { http.Handler Init() HTTPRouter UseMiddlewares(middlewares ...Middleware) MountRoutes(handlers ...RouteHandler) }
func NewHTTPRouter ¶
func NewHTTPRouter[Router HTTPRouter](options ...Option) HTTPRouter
type Middlewares ¶
type Middlewares []Middleware
type Option ¶
type Option func(router HTTPRouter)
func WithMiddlewares ¶
func WithMiddlewares(middlewares ...Middleware) Option
func WithMountRaw ¶
func WithMountRaw[Router HTTPRouter](customRoutes func(r Router)) Option
func WithRouteHandlers ¶
func WithRouteHandlers(handlers ...RouteHandler) Option
type PathsExclude ¶
type PathsExclude []string
type RouteHandler ¶
type RouteHandler func() (method http_method.HTTPMethod, pattern string, handler http.HandlerFunc)
type RouteHandlers ¶
type RouteHandlers []RouteHandler
Click to show internal directories.
Click to hide internal directories.