Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogRollingConfig ¶
func GetLogRollingConfig(filePath string) lumberjack.Logger
func GetZapcoreEncoderConfig ¶
func GetZapcoreEncoderConfig() zapcore.EncoderConfig
func SetBuildConfig ¶
Types ¶
type AppConfig ¶
type AppConfig struct {
AppEnv string
AppLogPath string
ServerHost string
ServerPort string
DbHost string
DbPort string
DbName string
DbUserName string
DbPassword string
RedisHost string
RedisPassword string
RedisPort string
RedisDb int
}
func GetAppConfig ¶
func GetAppConfig() *AppConfig
type BuildConfig ¶
func GetBuildConfig ¶
func GetBuildConfig() BuildConfig
type ServerConfig ¶
func GetServerConfig ¶
func GetServerConfig() *ServerConfig
Click to show internal directories.
Click to hide internal directories.