Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configure ¶
func NewConfigure ¶
func NewConfigure( dsn string, maxIdleConns, maxOpenConns, connMaxIdleTime, connMaxLifetime int, registers []ResolverConfigure) Configure
NewConfigure 初始化 Configure
type DBModel ¶ added in v1.0.6
func NewDBModel ¶ added in v1.0.6
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.