Documentation ¶
Index ¶
- func DBList()
- func Gorm() *gorm.DB
- func GormMysql() *gorm.DB
- func GormMysqlByConfig(m config.Mysql) *gorm.DB
- func GormPgSql() *gorm.DB
- func GormPgSqlByConfig(p config.Pgsql) *gorm.DB
- func InstallPlugin(PublicGroup *gin.RouterGroup, PrivateGroup *gin.RouterGroup)
- func PluginInit(group *gin.RouterGroup, Plugin ...plugin.Plugin)
- func Redis()
- func RegisterTables(db *gorm.DB)
- func Routers() *gin.Engine
- func Timer()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GormMysql ¶
GormMysql 初始化Mysql数据库 Author [piexlmax](https://github.com/piexlmax) Author [SliverHorn](https://github.com/SliverHorn)
func GormMysqlByConfig ¶
GormMysqlByConfig 初始化Mysql数据库用过传入配置
func GormPgSql ¶
GormPgSql 初始化 Postgresql 数据库 Author [piexlmax](https://github.com/piexlmax) Author [SliverHorn](https://github.com/SliverHorn)
func GormPgSqlByConfig ¶
GormPgSqlByConfig 初始化 Postgresql 数据库 通过参数
func InstallPlugin ¶
func InstallPlugin(PublicGroup *gin.RouterGroup, PrivateGroup *gin.RouterGroup)
func PluginInit ¶
func PluginInit(group *gin.RouterGroup, Plugin ...plugin.Plugin)
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.