Documentation
¶
Index ¶
Constants ¶
View Source
const EDev = "dev"
View Source
const EProd = "prod"
View Source
const ETest = "test"
Variables ¶
View Source
var ( Version = "1.0.0" AppName = "unknown" AppId string SeqId int64 = 0 Source string )
View Source
var ( WorkDir string Conf string Env = EDev )
Functions ¶
func ConfFileName ¶
func ConfFileName() string
func ConfigureFileNameInEnv ¶
Types ¶
type Config ¶
type Config struct { GinMode string `json:"mode" yaml:"mode" xml:"mode"` Server string `json:"server" yaml:"server" xml:"server"` PubIP string `json:"public_ip" yaml:"public_ip" xml:"public_ip"` EnabledRedis bool `json:"enabled_redis" yaml:"enabled_redis" xml:"enabled_redis"` EnabledDb bool `json:"enabled_db" yaml:"enabled_db" xml:"enabled_db"` EnabledMQ bool `json:"enabled_mq" yaml:"enabled_mq" xml:"enabled_mq"` LogConfig logger.Config `json:"log" yaml:"log" xml:"log"` }
Click to show internal directories.
Click to hide internal directories.