initialize

package
v0.0.0-...-003a2e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2023 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CLanguage

func CLanguage(client pb.ExecutorClient, cLanguageConfig config.CLanguage)

func DBList

func DBList()

func GoJudge

func GoJudge()

func GoLanguage

func GoLanguage(client pb.ExecutorClient, goLanguageConfig config.GoLanguage)

func Gorm

func Gorm() *gorm.DB

Gorm 初始化数据库并产生数据库全局变量 Author SliverHorn

func GormMysql

func GormMysql() *gorm.DB

GormMysql 初始化Mysql数据库 Author [piexlmax](https://github.com/piexlmax) Author [SliverHorn](https://github.com/SliverHorn)

func GormMysqlByConfig

func GormMysqlByConfig(m config.Mysql) *gorm.DB

GormMysqlByConfig 初始化Mysql数据库用过传入配置

func GormPgSql

func GormPgSql() *gorm.DB

GormPgSql 初始化 Postgresql 数据库 Author [piexlmax](https://github.com/piexlmax) Author [SliverHorn](https://github.com/SliverHorn)

func GormPgSqlByConfig

func GormPgSqlByConfig(p config.Pgsql) *gorm.DB

GormPgSqlByConfig 初始化 Postgresql 数据库 通过参数

func InstallPlugin

func InstallPlugin(Router *gin.Engine)

func JavaLanguage

func JavaLanguage(client pb.ExecutorClient, goLanguageConfig config.JavaLanguage)

func NewOss

func NewOss() oss.OSS

func PluginInit

func PluginInit(group *gin.RouterGroup, Plugin ...plugin.Plugin)

func Redis

func Redis()

func RegisterTables

func RegisterTables(db *gorm.DB)

RegisterTables 注册数据库表专用 Author SliverHorn

func Routers

func Routers() *gin.Engine

func Target

func Target()

func Timer

func Timer()

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL