mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
342497a869
Uses the errgroup package and pattern for supervising services like servers etc.
26 lines
603 B
Go
26 lines
603 B
Go
package schema
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// TLSConfig is a representation of the TLS configuration.
|
|
type TLSConfig struct {
|
|
MinimumVersion string `koanf:"minimum_version"`
|
|
SkipVerify bool `koanf:"skip_verify"`
|
|
ServerName string `koanf:"server_name"`
|
|
}
|
|
|
|
// 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"`
|
|
}
|