Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Environment *environment
Functions ¶
func InitSystem ¶
func LoadConfig ¶
Types ¶
type Gin ¶
type Gin struct { Port int64 `toml:"port"` // 端口号 Pprof bool `toml:"pprof"` PprofSecret string `toml:"pprofSecret"` BasePath string `toml:"basePath"` // 请求根路径 Session string `toml:"session"` SessionId string `toml:"sessionId"` SessionFile string `toml:"sessionFile"` SessionSecret string `toml:"sessionSecret"` }
type Mysql ¶
type Mysql struct { Username string `toml:"username"` // 用户名 Password string `toml:"password"` // 密码 Addr string `toml:"addr"` // 地址 Database string `toml:"database"` // 数据库名 ShowSql bool `toml:"showSql"` // 打印sql MaxIdleConn int `toml:"maxIdleConn"` // 最大闲置链接数 MaxOpenConn int `toml:"maxOpenConn"` // 最大活跃连接数 Timeout int64 `toml:"timeout"` // 请求超时时间(单位毫秒) }
type RoutinePool ¶
type RoutinePool struct { Queue chan func(params ...any) error Total int RoutineNumber int Running int Result chan error FinishCallback func() }
func (*RoutinePool) Add ¶
func (domain *RoutinePool) Add(func(params ...any))
func (*RoutinePool) NewPool ¶
func (domain *RoutinePool) NewPool(routineNumber int, total int)
Click to show internal directories.
Click to hide internal directories.