model

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevelConf

type LogLevelConf struct {
	GoResetDebug bool
	LogLevel     string
}

type ManagerConf

type ManagerConf struct {
	Mysql          MysqlConf
	LogLevel       LogLevelConf
	Port           int
	GrpcPort       int
	GrpcServerName string
	SeverName      string
}

ManagerConf 是配置管理器的结构体,包含MySQL和日志级别配置

type MysqlConf

type MysqlConf struct {
	Host              string
	Port              int
	Username          string
	Password          string
	Database          string
	MaxIdleConn       int           // 最大空闲连接数
	MaxOpenConn       int           // 最大打开连接数
	IdleTimeout       time.Duration // 空闲连接超时时间(秒)
	MaxLifetime       time.Duration // 连接的最大生命周期,0表示无限制
	HealthCheckPeriod time.Duration // 连接健康检查周期(秒)
	MaxIdleClosed     bool          // 是否关闭最大生命周期超过MaxLifetime的空闲连接
}

Jump to

Keyboard shortcuts

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