|
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),
|
|
}
|
|
}
|