Documentation ¶
Index ¶
- type Client
- type ClientOptions
- func (ClientOptions) WithConf(conf config.Config) Option
- func (ClientOptions) WithDbConfig(dbConfigs []DbConfig) Option
- func (ClientOptions) WithGormConfig(gormConfig *gorm.Config) Option
- func (ClientOptions) WithLogger(logger log.Logger) Option
- func (ClientOptions) WithProxy(proxys ...func() interface{}) Option
- func (ClientOptions) WithStateTicker(stateTicker time.Duration) Option
- type ConnPool
- type DbConfig
- type MonitorProxy
- func (mp *MonitorProxy) Close() error
- func (mp *MonitorProxy) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (mp *MonitorProxy) NextProxy(db interface{})
- func (mp *MonitorProxy) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)
- func (mp *MonitorProxy) ProxyName() string
- func (mp *MonitorProxy) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (mp *MonitorProxy) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
- type MonitorProxyOption
- type MonitorProxyOptions
- type Option
- type SQLClose
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.0.5
type Client struct {
// contains filtered or unexported fields
}
type ClientOptions ¶ added in v0.0.5
type ClientOptions struct{}
func (ClientOptions) WithConf ¶ added in v0.0.5
func (ClientOptions) WithConf(conf config.Config) Option
func (ClientOptions) WithDbConfig ¶ added in v0.0.5
func (ClientOptions) WithDbConfig(dbConfigs []DbConfig) Option
func (ClientOptions) WithGormConfig ¶ added in v0.1.6
func (ClientOptions) WithGormConfig(gormConfig *gorm.Config) Option
func (ClientOptions) WithLogger ¶ added in v0.0.5
func (ClientOptions) WithLogger(logger log.Logger) Option
func (ClientOptions) WithProxy ¶ added in v0.0.5
func (ClientOptions) WithProxy(proxys ...func() interface{}) Option
func (ClientOptions) WithStateTicker ¶ added in v0.0.5
func (ClientOptions) WithStateTicker(stateTicker time.Duration) Option
type MonitorProxy ¶ added in v0.0.9
type MonitorProxy struct {
// contains filtered or unexported fields
}
func NewMonitorProxy ¶
func NewMonitorProxy(options ...MonitorProxyOption) *MonitorProxy
func (*MonitorProxy) Close ¶ added in v0.0.9
func (mp *MonitorProxy) Close() error
func (*MonitorProxy) ExecContext ¶ added in v0.1.6
func (*MonitorProxy) NextProxy ¶ added in v0.0.9
func (mp *MonitorProxy) NextProxy(db interface{})
Implement Proxy interface.
func (*MonitorProxy) PrepareContext ¶ added in v0.1.6
func (*MonitorProxy) ProxyName ¶ added in v0.0.9
func (mp *MonitorProxy) ProxyName() string
Implement Proxy interface.
func (*MonitorProxy) QueryContext ¶ added in v0.1.6
func (*MonitorProxy) QueryRowContext ¶ added in v0.1.6
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(logger log.Logger) MonitorProxyOption
func (MonitorProxyOptions) WithTracer ¶
func (MonitorProxyOptions) WithTracer(tracer opentracing2.Tracer) MonitorProxyOption
Click to show internal directories.
Click to hide internal directories.