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 McpRun() *server.SSEServer
- 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 Reload() error
- func Routers() *gin.Engine
- func SetupHandlers()
- func Timer()
- type GoogleOauth
- type Index
- type Oauth
- type System
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) Author [ByteZhou-2018](https://github.com/ByteZhou-2018)
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 RegisterTables ¶
func RegisterTables()
Types ¶
type GoogleOauth ¶
type Oauth ¶
type Oauth struct {
Google GoogleOauth `mapstructure:"google" json:"google" yaml:"google"`
}
type System ¶
type System struct {
UseMultipoint bool `mapstructure:"use-multipoint" json:"useMultipoint" yaml:"use-multipoint"`
Env string `mapstructure:"env" json:"env" yaml:"env"`
Addr int `mapstructure:"addr" json:"addr" yaml:"addr"`
DbType string `mapstructure:"db-type" json:"dbType" yaml:"db-type"`
Oauth Oauth `mapstructure:"oauth" json:"oauth" yaml:"oauth"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.