Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestContext ¶
RequestContext returns the value associated with this context for key, or nil
func RequestId ¶ added in v1.4.15
RequestId returns the value associated with this context for key, or nil
func WithContext ¶
WithContext returns a copy of parent in which the value associated with key is val.
Types ¶
type Config ¶
type Config struct { EnableAccess bool `yaml:"enable_access" json:"enable_access" default:"true"` AccessLogbase string `yaml:"access_logbase" json:"access_logbase" default:"log"` EnablePprof bool `yaml:"enable_pprof" json:"enable_pprof" default:"true"` EnableMetrics bool `yaml:"enable_metrics" json:"enable_metrics" default:"true"` MetricsEndpoint string `yaml:"metrics_endpoint" json:"metrics_endpoint" default:"/metrics"` EnableTraffic bool `yaml:"enable_traffic" json:"enable_traffic" default:"true"` EnableCheck bool `yaml:"enable_check" json:"enable_check" default:"true"` CheckEndpoint string `yaml:"check_endpoint" json:"check_endpoint" default:"/health"` Timeout time.Duration `yaml:"timeout" json:"timeout" default:"60s"` }
Click to show internal directories.
Click to hide internal directories.