data

package
v1.1.45 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 12 Imported by: 0

README

Data

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSetData = wire.NewSet(NewData, NewGreeterRepo)

ProviderSetData is data providers.

Functions

func NewGreeterRepo

func NewGreeterRepo(data *Data) biz.GreeterRepo

NewGreeterRepo .

Types

type Data

type Data struct {
	// contains filtered or unexported fields
}

Data .

func NewData

func NewData(c *democonf.Bootstrap) (*Data, func(), error)

NewData .

func (*Data) GetBizDB

func (d *Data) GetBizDB(ctx context.Context) *gorm.DB

GetBizDB 获取业务库连接

func (*Data) GetCacher

func (d *Data) GetCacher() cache.ICacher

GetCacher 获取缓存

func (*Data) GetCasbin

func (d *Data) GetCasbin() *casbin.SyncedEnforcer

GetCasbin 获取casbin

func (*Data) GetMainDB

func (d *Data) GetMainDB(ctx context.Context) *gorm.DB

GetMainDB 获取主库连接

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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