2021-01-04 10:28:55 +00:00
|
|
|
package schema
|
|
|
|
|
2022-08-08 21:50:12 +00:00
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2021-01-04 10:28:55 +00:00
|
|
|
// TLSConfig is a representation of the TLS configuration.
|
|
|
|
type TLSConfig struct {
|
2021-08-03 09:55:21 +00:00
|
|
|
MinimumVersion string `koanf:"minimum_version"`
|
|
|
|
SkipVerify bool `koanf:"skip_verify"`
|
|
|
|
ServerName string `koanf:"server_name"`
|
2021-01-04 10:28:55 +00:00
|
|
|
}
|
2022-08-08 21:50:12 +00:00
|
|
|
|
|
|
|
// ServerTimeouts represents server timeout configurations.
|
|
|
|
type ServerTimeouts struct {
|
|
|
|
Read time.Duration `koanf:"read"`
|
|
|
|
Write time.Duration `koanf:"write"`
|
|
|
|
Idle time.Duration `koanf:"idle"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// ServerBuffers represents server buffer configurations.
|
|
|
|
type ServerBuffers struct {
|
|
|
|
Read int `koanf:"read"`
|
|
|
|
Write int `koanf:"write"`
|
|
|
|
}
|