William Petit
60487c11d6
All checks were successful
Cadoles/bouncer/pipeline/pr-develop This commit looks good
16 lines
355 B
Go
16 lines
355 B
Go
package config
|
|
|
|
type HTTPConfig struct {
|
|
Host InterpolatedString `yaml:"host"`
|
|
Port InterpolatedInt `yaml:"port"`
|
|
UseRealIP InterpolatedBool `yaml:"useRealIP"`
|
|
}
|
|
|
|
func NewHTTPConfig(host string, port int) HTTPConfig {
|
|
return HTTPConfig{
|
|
Host: InterpolatedString(host),
|
|
Port: InterpolatedInt(port),
|
|
UseRealIP: true,
|
|
}
|
|
}
|