Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Port int `json:"port" yaml:"port"` Host string `json:"host" yaml:"host"` Redirect redirect_config.RedirectConfig `json:"redirect" yaml:"redirect"` TLS *tls_config.TLSConfig `json:"tls" yaml:"tls"` // contains filtered or unexported fields }
func NewConfig ¶
func NewConfig(opts ...ConfigOption) *Config
func (*Config) APIAddress ¶
func (*Config) ValidateConfigFields ¶
type ConfigOption ¶
type ConfigOption func(*Config)
func WithAPIHost ¶
func WithAPIHost(host string) ConfigOption
func WithAPIPort ¶
func WithAPIPort(port int) ConfigOption
func WithRedirectConfig ¶
func WithRedirectConfig(redirectConfig redirect_config.RedirectConfig) ConfigOption
func WithTLSConfig ¶
func WithTLSConfig(tlsConfig *tls_config.TLSConfig) ConfigOption
Click to show internal directories.
Click to hide internal directories.