system

package
v0.0.0-...-b111a5f Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(filename string) *config.Engine

LoadConfig 从文件中初始化程序配置

Types

type Application

type Application struct {
	Cf      *model.AppConf
	RedisDB *redis.Client
	MySQLdb *sql.DB
	// MongoDB *mongo.Client
	Sc *securecookie.SecureCookie
	// QnZone  *storage.Zone
	Logger *logging.Logger
	Rand   *rand.Rand // 负责处理随机数
	GormDB *gorm.DB
}

Application 应用数据库以及外部服务

func (*Application) CanServeAdmin

func (app *Application) CanServeAdmin() bool

func (*Application) Close

func (app *Application) Close()

Close 清理程序连接

func (*Application) Init

func (app *Application) Init(c *config.Engine, currentFilePath string)

Init , 连接数据库

Jump to

Keyboard shortcuts

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