2021-01-04 17:28:55 +07:00
|
|
|
package schema
|
|
|
|
|
2022-08-09 04:50:12 +07:00
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2021-01-04 17:28:55 +07:00
|
|
|
// TLSConfig is a representation of the TLS configuration.
|
|
|
|
type TLSConfig struct {
|
2021-08-03 16:55:21 +07:00
|
|
|
MinimumVersion string `koanf:"minimum_version"`
|
|
|
|
SkipVerify bool `koanf:"skip_verify"`
|
|
|
|
ServerName string `koanf:"server_name"`
|
2021-01-04 17:28:55 +07:00
|
|
|
}
|
2022-08-09 04:50:12 +07: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"`
|
|
|
|
}
|