Documentation ¶
Index ¶
- Variables
- func PresentError(logger logr.Logger, w http.ResponseWriter, err error)
- type Handler
- type Response
- type Routable
- type Route
- type RouterBuilder
- func (b *RouterBuilder) Build() *chi.Mux
- func (b *RouterBuilder) LoadRoutes(routable Routable)
- func (b *RouterBuilder) SetMethodNotAllowedHandler(handler Handler)
- func (b *RouterBuilder) SetNotFoundHandler(handler Handler)
- func (b *RouterBuilder) UseAuthMiddleware(middleware ...func(http.Handler) http.Handler)
- func (b *RouterBuilder) UseMiddleware(middleware ...func(http.Handler) http.Handler)
Constants ¶
This section is empty.
Variables ¶
View Source
var URLParam = chi.URLParam
Functions ¶
func PresentError ¶
func PresentError(logger logr.Logger, w http.ResponseWriter, err error)
Types ¶
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func NewResponse ¶
func (*Response) WithHeader ¶
type RouterBuilder ¶
type RouterBuilder struct {
// contains filtered or unexported fields
}
func NewRouterBuilder ¶
func NewRouterBuilder() *RouterBuilder
func (*RouterBuilder) Build ¶
func (b *RouterBuilder) Build() *chi.Mux
func (*RouterBuilder) LoadRoutes ¶
func (b *RouterBuilder) LoadRoutes(routable Routable)
func (*RouterBuilder) SetMethodNotAllowedHandler ¶ added in v0.7.0
func (b *RouterBuilder) SetMethodNotAllowedHandler(handler Handler)
func (*RouterBuilder) SetNotFoundHandler ¶ added in v0.7.0
func (b *RouterBuilder) SetNotFoundHandler(handler Handler)
func (*RouterBuilder) UseAuthMiddleware ¶
func (b *RouterBuilder) UseAuthMiddleware(middleware ...func(http.Handler) http.Handler)
func (*RouterBuilder) UseMiddleware ¶
func (b *RouterBuilder) UseMiddleware(middleware ...func(http.Handler) http.Handler)
Click to show internal directories.
Click to hide internal directories.