boot

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Gorm = new(_gorm)

Functions

func NewWriter

func NewWriter(w logger.Writer) *writer

Types

type Resolver

type Resolver struct{}

func (*Resolver) GetReplicas

func (d *Resolver) GetReplicas() (directories []gorm.Dialector)

GetReplicas 获取从库库的 gorm.Dialector 切片对象 Author [SliverHorn](https://github.com/SliverHorn)

func (*Resolver) GetResolver

func (d *Resolver) GetResolver() gorm.Plugin

GetResolver 通过主库与从库的链接组装 gorm.Plugin Author [SliverHorn](https://github.com/SliverHorn)

func (*Resolver) GetSources

func (d *Resolver) GetSources() (directories []gorm.Dialector)

GetSources 获取主库的 gorm.Dialector 切片对象 Author [SliverHorn](https://github.com/SliverHorn)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL