Documentation
¶
Index ¶
- func NewMonitorProxy(options ...MonitorProxyOption) *monitorProxy
- type DbConfig
- type MonitorProxyOption
- type MonitorProxyOptions
- type MysqlClient
- type MysqlClientOptions
- func (MysqlClientOptions) WithConf(conf config.Config) Option
- func (MysqlClientOptions) WithDB(db *sql.DB) Option
- func (MysqlClientOptions) WithDbConfig(dbConfigs []DbConfig) Option
- func (MysqlClientOptions) WithLogger(logger log.Logger) Option
- func (MysqlClientOptions) WithProxy(proxy ...func() interface{}) Option
- func (MysqlClientOptions) WithStateTicker(stateTicker time.Duration) Option
- type Option
- type SqlCommon
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMonitorProxy ¶
func NewMonitorProxy(options ...MonitorProxyOption) *monitorProxy
Types ¶
type MonitorProxyOption ¶
type MonitorProxyOption func(c *monitorProxy)
type MonitorProxyOptions ¶
type MonitorProxyOptions struct{}
func (MonitorProxyOptions) WithConf ¶
func (MonitorProxyOptions) WithConf(conf config.Config) MonitorProxyOption
func (MonitorProxyOptions) WithLogger ¶
func (MonitorProxyOptions) WithLogger(log log.Logger) MonitorProxyOption
func (MonitorProxyOptions) WithTracer ¶
func (MonitorProxyOptions) WithTracer(tracer opentracing2.Tracer) MonitorProxyOption
type MysqlClient ¶
type MysqlClient struct {
// contains filtered or unexported fields
}
func NewMysqlClient ¶
func NewMysqlClient(options ...Option) *MysqlClient
func (*MysqlClient) Close ¶
func (this *MysqlClient) Close()
func (*MysqlClient) Ping ¶
func (this *MysqlClient) Ping() []error
func (*MysqlClient) Stats ¶
func (this *MysqlClient) Stats()
type MysqlClientOptions ¶
type MysqlClientOptions struct{}
func (MysqlClientOptions) WithDbConfig ¶
func (MysqlClientOptions) WithDbConfig(dbConfigs []DbConfig) Option
func (MysqlClientOptions) WithLogger ¶
func (MysqlClientOptions) WithLogger(logger log.Logger) Option
func (MysqlClientOptions) WithProxy ¶
func (MysqlClientOptions) WithProxy(proxy ...func() interface{}) Option
func (MysqlClientOptions) WithStateTicker ¶
func (MysqlClientOptions) WithStateTicker(stateTicker time.Duration) Option
type Option ¶
type Option func(c *MysqlClient)
Click to show internal directories.
Click to hide internal directories.