Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configure ¶
func NewConfigure ¶
func NewConfigure( dsn string, maxIdleConns, maxOpenConns, connMaxIdleTime, connMaxLifetime int, registers []ResolverConfigure) Configure
NewConfigure 初始化 Configure
type DBResolverConfig ¶
type DBResolverConfig struct {
// contains filtered or unexported fields
}
func (*DBResolverConfig) Init ¶
func (e *DBResolverConfig) Init( register *dbresolver.DBResolver, open func(string) gorm.Dialector) *dbresolver.DBResolver
type ResolverConfigure ¶
type ResolverConfigure interface {
Init(*dbresolver.DBResolver, func(string) gorm.Dialector) *dbresolver.DBResolver
}
func NewResolverConfigure ¶
func NewResolverConfigure(sources, replicas []string, policy string, tables []string) ResolverConfigure
NewResolverConfigure 初始化 ResolverConfigure
Click to show internal directories.
Click to hide internal directories.