Versions in this module Expand all Collapse all v0 v0.1.0 Aug 26, 2023 Changes in this version + const DPanicLevel + const DebugLevel + const ErrorLevel + const ErrorMode + const FatalLevel + const InfoLevel + const InfoMode + const PanicLevel + const SilentMode + const WarnLevel + const WarnMode + func GetConfig(configFileName string) (*viper.Viper, config.Config) + func GetDb(dbConfig config.Database) *gorm.DB + func GetLogWriter(logFileName string) *lumberjack.Logger + func GinRecovery(logger *zap.Logger, stack bool) gin.HandlerFunc + func HasRouter() bool + func InitConfig() *global.Application + func InitDb() *global.Application + func InitLog() *global.Application + func InitRedis() *global.Application + func LoggerMiddleWare(logger *zap.Logger) gin.HandlerFunc + func RealeaseDB() + func Regist(opts ...RouteOption) + func SetupRouter() *gin.Engine + func UnmarshalConfig(v *viper.Viper) + type Application struct + func Default() *Application + func NewApplication(engine *gin.Engine, bootOpts []BootOption, startOpts []StartFunc, ...) *Application + func NewApplicationWithOpts(opts ...BootOption) *Application + func (app *Application) BootOpt(bootOpts ...BootOption) *Application + func (app *Application) BootUp() + func (app *Application) Router(opts ...RouteOption) *Application + func (app *Application) StartFunc(startOpts ...StartFunc) *Application + func (app *Application) Use(middleware ...gin.HandlerFunc) *Application + type BootOption func() *global.Application + type RouteOption func(*gin.Engine) + type StartFunc func()