Versions in this module Expand all Collapse all v1 v1.9.18 Jun 18, 2024 v1.9.15 Jun 17, 2024 Changes in this version + const HealthCheckEndpointDefault + const HealthCheckEndpointFieldName + const MetricsEndpointDefault + const MetricsEndpointFieldName + const PprofEndpointDefault + const PprofEndpointFieldName + const UseProfileDefault + const UseProfileFieldName + var Component = &app.Component + func New(logger logger.Logger) chi.Router + type ChiWrapper struct + func NewChiWrapper(router chi.Router) *ChiWrapper + func (wrapper *ChiWrapper) Connect(pattern string, h http.HandlerFunc) + func (wrapper *ChiWrapper) Delete(pattern string, h http.HandlerFunc) + func (wrapper *ChiWrapper) Get(pattern string, h http.HandlerFunc) + func (wrapper *ChiWrapper) Group(fn func(r Router)) + func (wrapper *ChiWrapper) Handle(pattern string, h http.Handler) + func (wrapper *ChiWrapper) HandleFunc(pattern string, h http.HandlerFunc) + func (wrapper *ChiWrapper) Head(pattern string, h http.HandlerFunc) + func (wrapper *ChiWrapper) Method(method, pattern string, h http.Handler) + func (wrapper *ChiWrapper) MethodFunc(method, pattern string, h http.HandlerFunc) + func (wrapper *ChiWrapper) MethodNotAllowed(h http.HandlerFunc) + func (wrapper *ChiWrapper) Mount(pattern string, h http.Handler) + func (wrapper *ChiWrapper) NotFound(h http.HandlerFunc) + func (wrapper *ChiWrapper) Options(pattern string, h http.HandlerFunc) + func (wrapper *ChiWrapper) Patch(pattern string, h http.HandlerFunc) + func (wrapper *ChiWrapper) Post(pattern string, h http.HandlerFunc) + func (wrapper *ChiWrapper) Put(pattern string, h http.HandlerFunc) + func (wrapper *ChiWrapper) Route(pattern string, fn func(r Router)) + func (wrapper *ChiWrapper) ServeHTTP(writer http.ResponseWriter, request *http.Request) + func (wrapper *ChiWrapper) Trace(pattern string, h http.HandlerFunc) + func (wrapper *ChiWrapper) Use(middlewares ...Middleware) + type Config struct + HealthCheckEndpoint string + MetricsEndpoint string + PprofEndpoint string + UseProfile bool + func Configuration(config *Config, configurator configurator.Configurator) *Config + func NewConfig() *Config + type Middleware interface + Middleware func(next http.Handler) http.Handler + type MiddlewareFunc func(next http.Handler) http.Handler + func (m MiddlewareFunc) Middleware(next http.Handler) http.Handler + type ReConfiguration struct + func NewReConfiguration(logger logger.Logger, config *Config) *ReConfiguration + func NewReConfigurationWithConfigurator(logger logger.Logger, config *Config, configurator configurator.Configurator) *ReConfiguration + func (reConfiguration *ReConfiguration) Connect(pattern string, h http.HandlerFunc) + func (reConfiguration *ReConfiguration) Delete(pattern string, h http.HandlerFunc) + func (reConfiguration *ReConfiguration) Get(pattern string, h http.HandlerFunc) + func (reConfiguration *ReConfiguration) Group(fn func(r Router)) + func (reConfiguration *ReConfiguration) Handle(pattern string, h http.Handler) + func (reConfiguration *ReConfiguration) HandleFunc(pattern string, h http.HandlerFunc) + func (reConfiguration *ReConfiguration) Head(pattern string, h http.HandlerFunc) + func (reConfiguration *ReConfiguration) Method(method, pattern string, h http.Handler) + func (reConfiguration *ReConfiguration) MethodFunc(method, pattern string, h http.HandlerFunc) + func (reConfiguration *ReConfiguration) MethodNotAllowed(h http.HandlerFunc) + func (reConfiguration *ReConfiguration) Mount(pattern string, h http.Handler) + func (reConfiguration *ReConfiguration) NotFound(h http.HandlerFunc) + func (reConfiguration *ReConfiguration) Options(pattern string, h http.HandlerFunc) + func (reConfiguration *ReConfiguration) Patch(pattern string, h http.HandlerFunc) + func (reConfiguration *ReConfiguration) Post(pattern string, h http.HandlerFunc) + func (reConfiguration *ReConfiguration) Put(pattern string, h http.HandlerFunc) + func (reConfiguration *ReConfiguration) ReConfiguration(configurator configurator.Configurator) error + func (reConfiguration *ReConfiguration) Route(pattern string, fn func(r Router)) + func (reConfiguration *ReConfiguration) Router() Router + func (reConfiguration *ReConfiguration) ServeHTTP(writer http.ResponseWriter, request *http.Request) + func (reConfiguration *ReConfiguration) Trace(pattern string, h http.HandlerFunc) + func (reConfiguration *ReConfiguration) Use(middlewares ...Middleware) + type Router interface + Connect func(pattern string, h http.HandlerFunc) + Delete func(pattern string, h http.HandlerFunc) + Get func(pattern string, h http.HandlerFunc) + Group func(fn func(r Router)) + Handle func(pattern string, h http.Handler) + HandleFunc func(pattern string, h http.HandlerFunc) + Head func(pattern string, h http.HandlerFunc) + Method func(method, pattern string, h http.Handler) + MethodFunc func(method, pattern string, h http.HandlerFunc) + MethodNotAllowed func(h http.HandlerFunc) + Mount func(pattern string, h http.Handler) + NotFound func(h http.HandlerFunc) + Options func(pattern string, h http.HandlerFunc) + Patch func(pattern string, h http.HandlerFunc) + Post func(pattern string, h http.HandlerFunc) + Put func(pattern string, h http.HandlerFunc) + Route func(pattern string, fn func(r Router)) + Trace func(pattern string, h http.HandlerFunc) + Use func(middlewares ...Middleware)