Documentation ¶
Index ¶
- Variables
- func DBList()
- func Gorm() *gorm.DB
- func GormMssql() *gorm.DB
- func GormMssqlByConfig(m config.Mssql) *gorm.DB
- func GormMysql() *gorm.DB
- func GormMysqlByConfig(m config.Mysql) *gorm.DB
- func GormOracle() *gorm.DB
- func GormOracleByConfig(m config.Oracle) *gorm.DB
- func GormPgSql() *gorm.DB
- func GormPgSqlByConfig(p config.Pgsql) *gorm.DB
- func GormSqlite() *gorm.DB
- func GormSqliteByConfig(s config.Sqlite) *gorm.DB
- func InstallPlugin(PrivateGroup *gin.RouterGroup, PublicRouter *gin.RouterGroup, ...)
- func OtherInit()
- func PluginInit(group *gin.RouterGroup, Plugin ...plugin.Plugin)
- func PluginInitV2(group *gin.Engine, plugins ...plugin.Plugin)
- func Redis()
- func RedisList()
- func RegisterTables()
- func Routers() *gin.Engine
- func Timer()
- type Index
Constants ¶
This section is empty.
Variables ¶
View Source
var Mongo = new(mongo)
Functions ¶
func GormMssqlByConfig ¶
GormMssqlByConfig 初始化Mysql数据库用过传入配置
func GormMysql ¶
GormMysql 初始化Mysql数据库 Author [piexlmax](https://github.com/piexlmax) Author [SliverHorn](https://github.com/SliverHorn)
func GormMysqlByConfig ¶
GormMysqlByConfig 初始化Mysql数据库用过传入配置
func GormOracle ¶
GormOracle 初始化oracle数据库 如果需要Oracle库 放开import里的注释 把下方 mysql.Config 改为 oracle.Config ; mysql.New 改为 oracle.New
func GormOracleByConfig ¶
GormOracleByConfig 初始化Oracle数据库用过传入配置
func GormPgSql ¶
GormPgSql 初始化 Postgresql 数据库 Author [piexlmax](https://github.com/piexlmax) Author [SliverHorn](https://github.com/SliverHorn)
func GormPgSqlByConfig ¶
GormPgSqlByConfig 初始化 Postgresql 数据库 通过参数
func GormSqliteByConfig ¶
GormSqliteByConfig 初始化Sqlite数据库用过传入配置
func InstallPlugin ¶
func InstallPlugin(PrivateGroup *gin.RouterGroup, PublicRouter *gin.RouterGroup, engine *gin.Engine)
func PluginInit ¶
func PluginInit(group *gin.RouterGroup, Plugin ...plugin.Plugin)
func PluginInitV2 ¶
func RegisterTables ¶
func RegisterTables()
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.