Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func InitConfig ¶
func InitConfig(env string)
func InitLogger ¶
func InitLogger()
func Initialize ¶
func Initialize(env string)
func LoggerMiddleware ¶
func LoggerMiddleware(logger *zap.Logger) gin.HandlerFunc
LoggerMiddleware for request
func RecoveryMiddleware ¶
func RecoveryMiddleware(logger *zap.Logger, stack bool) gin.HandlerFunc
Types ¶
type Config ¶
type Config struct {
Db MysqlConfig `yaml:"db"`
Log LogConfig `yaml:"log"`
}
Click to show internal directories.
Click to hide internal directories.