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:"publicIp" yaml:"publicIp" xml:"publicIp"` EnabledRedis bool `json:"enabledRedis" yaml:"enabledRedis" xml:"enabledRedis"` EnabledDb bool `json:"enabledDb" yaml:"enabledDb" xml:"enabledDb"` EnabledMQ bool `json:"enabledMQ" yaml:"enabledMQ" xml:"enabledMQ"` LogConfig logger.Config `json:"log" yaml:"log" xml:"log"` }
Click to show internal directories.
Click to hide internal directories.