2020-04-30 02:03:05 +00:00
|
|
|
package schema
|
|
|
|
|
|
|
|
// ServerConfiguration represents the configuration of the http server.
|
|
|
|
type ServerConfiguration struct {
|
2020-05-21 02:20:55 +00:00
|
|
|
Path string `mapstructure:"path"`
|
|
|
|
ReadBufferSize int `mapstructure:"read_buffer_size"`
|
|
|
|
WriteBufferSize int `mapstructure:"write_buffer_size"`
|
2021-06-01 04:09:50 +00:00
|
|
|
EnablePprof bool `mapstructure:"enable_endpoint_pprof"`
|
|
|
|
EnableExpvars bool `mapstructure:"enable_endpoint_expvars"`
|
2020-04-30 02:03:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// DefaultServerConfiguration represents the default values of the ServerConfiguration.
|
|
|
|
var DefaultServerConfiguration = ServerConfiguration{
|
|
|
|
ReadBufferSize: 4096,
|
|
|
|
WriteBufferSize: 4096,
|
|
|
|
}
|