Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig(cfg interface{}) error
LoadConfig loads configuration from provided file and serializes it into RpConfig struct
Types ¶
type ServerConfig ¶
type ServerConfig struct { Hostname string `env:"HOSTNAME" envDefault:"localhost"` Port int `env:"RP_SERVER_PORT" envDefault:"8080"` }
ServerConfig represents Main service configuration
Click to show internal directories.
Click to hide internal directories.