Documentation ¶
Index ¶
- func CloseGormGroup(group *config.GormDBGroup)
- func IniTables(model *model.TableGroup, gormDB *config.GormDBGroup)
- func InitGorm(configGroup *config.DataBaseConfigGroup) *config.GormDBGroup
- func InitHttpServer(cfg *config.ServerConfig, client *redis.Client) *http.Server
- func InitI18nInfo(cfg *config.I18nConfig) *i18n.I18nLocale
- func InitJwtUtils(cfg *config.JwtConfig)
- func InitMail(config *config.MailConfig)
- func InitRedis(config *config.RedisConfig) *redis.Client
- func InitRouter(engine *gin.Engine, cfg *config.ServerConfig)
- func InitZap(cfg *config.ZapConfig) *zap.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseGormGroup ¶
func CloseGormGroup(group *config.GormDBGroup)
func IniTables ¶
func IniTables(model *model.TableGroup, gormDB *config.GormDBGroup)
IniTables @Date 2023-01-13 15:52:16 @Param list model.TableList @Param db *gorm.DB @Description: 初始化数据库表
func InitGorm ¶
func InitGorm(configGroup *config.DataBaseConfigGroup) *config.GormDBGroup
InitGorm @Date: 2023-01-08 22:52:21 @Description: 初始化GORM连接数据库 @Param: configGroup config.DataBaseConfigGroup @Return: error
func InitHttpServer ¶
func InitHttpServer(cfg *config.ServerConfig, client *redis.Client) *http.Server
func InitI18nInfo ¶
func InitI18nInfo(cfg *config.I18nConfig) *i18n.I18nLocale
InitI18nInfo @Date 2023-01-12 17:22:11 @Description: 初始化应用国际化信息
func InitJwtUtils ¶
InitJwtUtils @Date 2023-02-07 17:24:49 @Param cfg *config.JwtConfig @Description: 初始化JWT配置
func InitMail ¶
func InitMail(config *config.MailConfig)
InitMail @Date 2023-02-08 15:56:56 @Param config *config.MailConfig @Method @Description: 初始化邮件服务器
func InitRedis ¶
func InitRedis(config *config.RedisConfig) *redis.Client
InitRedis @Date: 2023-01-09 11:07:45 @Description: 初始化Redis客户端连接 @Param: config *config.RedisConfig @Return: *redis.Client
func InitRouter ¶
func InitRouter(engine *gin.Engine, cfg *config.ServerConfig)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.