package
Version:
v1.0.4
Opens a new window with list of versions in this module.
Published: Jan 11, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Write Configx `json:"write" yaml:"write"`
ReadOnly []Configx `json:"read_only" yaml:"read_only"`
MaxIdleConn int `json:"max_idle_conn" yaml:"max_idle_conn"`
MaxOpenConn int `json:"max_open_conn" yaml:"max_open_conn"`
}
Config mysql的配置字段
type Configx struct {
Addr string `json:"addr" yaml:"addr"`
Port int `json:"port" yaml:"port"`
DBName string `json:"db_name" yaml:"db_name"`
Username string `json:"username" yaml:"username"`
Password string `json:"password" yaml:"password"`
Param string `json:"param" yaml:"param"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.