Versions in this module Expand all Collapse all v0 v0.0.1 Nov 25, 2022 Changes in this version + func EqualFileSystems(fs, otherFS http.FileSystem, currentPath string) bool + func HeadersMiddleware(headers stdhttp.Header, ignoredPrefixes ...string) func(next stdhttp.Handler) stdhttp.Handler + func LoggingMiddleware(next stdhttp.Handler) stdhttp.Handler + func LoggingMiddlewareWithOptions(options Options) func(stdhttp.Handler) stdhttp.Handler + func NewAPIMux(l *log.Entry) *chi.Mux + func NewMux(l *log.Entry) *chi.Mux + func Run(conf Config) + func SetLoggerMiddleware(l *log.Entry) func(stdhttp.Handler) stdhttp.Handler + func StripTrailingSlashMiddleware(ignoredPrefixes ...string) func(next stdhttp.Handler) stdhttp.Handler + func XFFMiddleware(config XFFMiddlewareConfig) func(next stdhttp.Handler) stdhttp.Handler + type Config struct + Handler stdhttp.Handler + IdleTimeout time.Duration + ListenAddr string + OnStarting func() + OnStopped func() + OnStopping func() + ReadTimeout time.Duration + ShutdownGracePeriod time.Duration + TCPKeepAlive time.Duration + TLS *config.TLS + WriteTimeout time.Duration + type Options struct + ExtraHeaders []string + type SimpleHTTPClientInterface interface + Get func(url string) (*stdhttp.Response, error) + PostForm func(url string, data url.Values) (*stdhttp.Response, error) + type XFFMiddlewareConfig struct + BehindAWSLoadBalancer bool + BehindCloudflare bool