Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RouterConfig ¶
type RouterConfig struct {
// Timeout is the maximum duration for reading the entire request, including the body.
Timeout time.Duration
// CorsAllowedOrigins is a list of origins a cross-domain request can be executed from.
CorsAllowedOrigins []string
// EnablePprof enables the standard library pprof debugging endpoints.
EnablePprof bool
}
RouterConfig holds configuration for the HTTP router.
func DefaultRouterConfig ¶
func DefaultRouterConfig() RouterConfig
DefaultRouterConfig returns a default configuration for the router.
Click to show internal directories.
Click to hide internal directories.