Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MonMysqlPlugin ¶
type MonMysqlPlugin struct {
DBName string
}
func (MonMysqlPlugin) Initialize ¶
func (p MonMysqlPlugin) Initialize(db *gorm.DB) error
func (MonMysqlPlugin) Name ¶
func (p MonMysqlPlugin) Name() string
type MysqlDB ¶
func InitMysqlDB ¶
func InitMysqlDB(setting MysqlSetting) *MysqlDB
type MysqlSetting ¶
type MysqlSetting struct { Name string `mapstructure:"name"` Type string `mapstructure:"type"` Write DbConfig `mapstructure:"write"` Read DbConfig `mapstructure:"read"` Database string `mapstructure:"database"` MaxPoolSize int `mapstructure:"max_pool_size"` MaxIdle int `mapstructure:"max_idle"` IdleTimeout time.Duration `mapstructure:"idle_timeout"` ConnectTimeout time.Duration `mapstructure:"connect_timeout"` DoWithTimeout time.Duration `mapstructure:"do_with_timeout"` }
Click to show internal directories.
Click to hide internal directories.