Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Provide(LoadEnvironment, LoadConfig)
Functions ¶
This section is empty.
Types ¶
type Configuration ¶ added in v0.14.0
type Configuration struct { Name string `toml:"name"` Address string `toml:"address"` Port int `toml:"port"` Logging *Logging `toml:"logging"` TLS *TLSConfiguration `toml:"tls"` }
func LoadConfig ¶ added in v0.14.0
func LoadConfig() (Configuration, error)
type Environment ¶
type Environment struct {
HostName string `env:"HOSTNAME"`
}
func LoadEnvironment ¶
func LoadEnvironment() (Environment, error)
type TLSConfiguration ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.