Documentation
¶
Index ¶
Constants ¶
View Source
const ( PathAlive = "/alive" PathReady = "/ready" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { Debug bool `json:"debug"` Port int `json:"port"` Gzip int `json:"gzip"` RequestID bool `json:"request_id"` BasicAuth struct { Username string `json:"username"` Password string `json:"password"` } `json:"basic_auth"` Static struct { Dirs map[string]string `json:"dirs"` Files map[string]string `json:"files"` } `json:"static"` CORS struct { AllowOrigins []string `json:"allow_origins"` AllowMethods []string `json:"allow_methods"` AllowHeaders []string `json:"allow_headers"` AllowCredentials bool `json:"allow_credentials"` ExposeHeaders []string `json:"expose_headers"` MaxAge zconf_time.Duration `json:"max_age"` } `json:"cors"` BodyLimit string `json:"body_limit"` Rewrites map[string]string `json:"rewrites"` }
type ReadyCheck ¶
Click to show internal directories.
Click to hide internal directories.