Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationConfig ¶ added in v0.0.3
type Config ¶
type Config struct {
Database DatabaseConfig
Server ServerConfig
Authentication AuthenticationConfig
}
func LoadConfig ¶
type DatabaseConfig ¶
type ServerConfig ¶
type ServerConfig struct {
Name string `mapstructure:"name"`
Version string `mapstructure:"version"`
RPCPort string `mapstructure:"rpc_port"`
RESTPort string `mapstructure:"rest_port"`
Debug bool `mapstructure:"debug"`
Environment string `mapstructure:"env"`
ReadTimeout time.Duration `mapstructure:"read_time_out"`
WriteTimeout time.Duration `mapstructure:"write_time_out"`
}
Click to show internal directories.
Click to hide internal directories.