Versions in this module Expand all Collapse all v1 v1.6.1 Apr 27, 2026 Changes in this version + const CorsAllowCredentials + const CorsAllowedHeaders + const CorsAllowedMethods + const CorsAllowedOrigins + const CorsDebug + const CorsEnabled + const CorsMaxAge + const DebugEnabled + const HTTPAuthType + const HTTPConfAddress + const HTTPConfPort + const HTTPConfPublicURL + const HTTPConfReadTimeout + const HTTPConfShutdownTimeout + const HTTPConfWriteTimeout + func InitCORSConfig(conf config.Section) + func InitDebugConfig(conf config.Section) + func InitHTTPConfig(conf config.Section, defaultPort int) + func LocalAddr(ctx context.Context) net.Addr + func RemoteAddr(ctx context.Context) net.Addr + func RunDebugServer(ctx context.Context, debugServerConf config.Section, ...) + func WrapCorsIfEnabled(ctx context.Context, conf config.Section, chain http.Handler) http.Handler + type GoHTTPServer interface + Close func() error + Serve func(l net.Listener) error + ServeTLS func(l net.Listener, certFile, keyFile string) error + Shutdown func(ctx context.Context) error + type HTTPServer interface + Addr func() net.Addr + ServeHTTP func(ctx context.Context) + func NewHTTPServer(ctx context.Context, name string, r *mux.Router, onClose chan error, ...) (is HTTPServer, err error) + type ServerOptions struct + MaximumRequestTimeout time.Duration