Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogLevelConf ¶
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的空闲连接 }
Click to show internal directories.
Click to hide internal directories.