Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfiguration ¶
func LoadConfiguration()
Types ¶
type AppConfig ¶
type AppConfig struct {
ListenAddr string `mapstructure:"listen_addr" json:"listen_addr"`
}
type AwsConfig ¶
type AwsConfig struct { Region string `mapstructure:"region" json:"region"` Profile string `mapstructure:"profile" json:"profile"` S3AccessKeyId string `mapstructure:"s3_access_key_id" json:"s3_access_key_id"` S3AccessSecretKey string `mapstructure:"s3_access_secret_key" json:"s3_access_secret_key"` }
type Configuration ¶
type Configuration struct { Debug bool `json:"debug"` Env string `json:"env"` Aws AwsConfig `json:"aws"` Db DbConf `json:"db"` Redis RedisConf `json:"redis"` App AppConfig `json:"app"` Websocket WebsocketConfig `json:"websocket"` Security SecurityConfig `json:"security"` }
var Config Configuration
func (*Configuration) IsTestingEnv ¶
func (c *Configuration) IsTestingEnv() bool
type DbConf ¶
type DbConf struct { Host string `mapstructure:"mysql_host" json:"host"` Port int `mapstructure:"mysql_port" json:"port"` Username string `mapstructure:"mysql_username" json:"username"` Password string `mapstructure:"mysql_password" json:"password"` Database string `mapstructure:"mysql_database" json:"database"` }
type IconsConfig ¶
type SecurityConfig ¶
type WebsocketConfig ¶
Click to show internal directories.
Click to hide internal directories.