Documentation ¶
Overview ¶
Package listenaddress provides a configuration struct for resolving a listen address from YAML.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { // ListenAddressType is the port type for the port ListenAddressType Resolver `yaml:"type" validate:"nonzero"` // Value is the config specified listen address if using config port type. Value *string `yaml:"value"` // EnvVarListenPort specifies the environment variable name for the listen address port. EnvVarListenPort *string `yaml:"envVarListenPort"` // EnvVarListenHost specifies the environment variable name for the listen address hostname. EnvVarListenHost *string `yaml:"envVarListenHost"` }
Configuration is the configuration for resolving a listen address.
func (Configuration) Resolve ¶
func (c Configuration) Resolve() (string, error)
Resolve returns the resolved listen address given the configuration.
Click to show internal directories.
Click to hide internal directories.