Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CORSConfig ¶
type Config ¶
type Config struct {
Port int
Host string
Prefork bool
BodyLimit int
Timeout time.Duration
MaxConns int
MaxBytes int
MetricsPath string
HealthPath string
ShutdownTimeout time.Duration
RecoverStack bool
APIPrefix string
Routes []RouteConfig
}
func DefaultConfig ¶
func DefaultConfig() Config
type ContentSecurityConf ¶
type CryptionConf ¶
type ErrorResponse ¶
type RouteConfig ¶
type SecurityConfig ¶
type SecurityConfig struct {
ContentSecurity *ContentSecurityConf
Cryption *CryptionConf
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg Config, telemetry TelemetryConfig, security SecurityConfig, corsCfg *CORSConfig) *Server
Click to show internal directories.
Click to hide internal directories.