Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(options ...HandlerOption) (*Handler, error)
type HandlerOption ¶
type HandlerOption func(*Handler)
func RedirectRootTo ¶
func RedirectRootTo(url string) HandlerOption
func RegisterEndpoint ¶
func RegisterEndpoint(pattern string, handler http.Handler) HandlerOption
func RegisterMiddleware ¶
func RegisterMiddleware(middleware func(http.Handler) http.Handler) HandlerOption
Click to show internal directories.
Click to hide internal directories.