Documentation
¶
Index ¶
Constants ¶
View Source
const (
AppName = config.HttpName
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Http ¶
type Http struct { Enabled bool `json:"enabled" yaml:"enabled"` Host string `json:"host" yaml:"host" env:"HOST"` Port int `json:"port" yaml:"port" env:"PORT"` GinMode string `json:"ginMode" yaml:"ginMode"` // 针对Gin 框架的模式 ReadHeaderTimeout int `json:"readHeaderTimeout" yaml:"readHeaderTimeout" env:"READ_HEADER_TIMEOUT"` // 读取请求头超时时间 ReadTimeout int `json:"readTimeout" yaml:"readTimeout" env:"READ_TIMEOUT"` // 读取整个HTTP 的超时时间 WriteTimeout int `json:"writeTimeout" yaml:"writeTimeout" env:"WRITE_TIMEOUT"` // 响应的超时时间 IdleTimeout int `json:"idleTimeout" yaml:"idleTimeout" env:"IDLE_TIMEOUT"` // 开启Keepalive后,复用TCP 链接的超时时间 MaxHeaderSize string `json:"maxHeaderSize" yaml:"maxHeaderSize" env:"MAX_HEADER_SIZE"` // HEADER 最大大小 Otlp bool `json:"otlp" yaml:"otlp"` // 是否开启Trace ioc.ObjectImpl // contains filtered or unexported fields }
func (*Http) PrettyAddr ¶
Click to show internal directories.
Click to hide internal directories.