William Petit
e66938f1d3
All checks were successful
Cadoles/bouncer/pipeline/head This commit looks good
14 lines
267 B
Go
14 lines
267 B
Go
package config
|
|
|
|
type HTTPConfig struct {
|
|
Host InterpolatedString `yaml:"host"`
|
|
Port InterpolatedInt `yaml:"port"`
|
|
}
|
|
|
|
func NewHTTPConfig(host string, port int) HTTPConfig {
|
|
return HTTPConfig{
|
|
Host: InterpolatedString(host),
|
|
Port: InterpolatedInt(port),
|
|
}
|
|
}
|