data

package
v0.0.0-...-bf742bb Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 16 Imported by: 0

README

Data

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is data providers.

Functions

func NewBlackIpRepo

func NewBlackIpRepo(data *Data) biz.BlackIpRepo

func NewBlackUserRepo

func NewBlackUserRepo(data *Data) biz.BlackUserRepo

func NewCache

func NewCache(conf *conf.Data) *cache.Client

func NewCouponRepo

func NewCouponRepo(data *Data) biz.CouponRepo

func NewDatabase

func NewDatabase(conf *conf.Data) *gorm.DB

func NewLotteryTimesRepo

func NewLotteryTimesRepo(data *Data) biz.LotteryTimesRepo

func NewPrizeRepo

func NewPrizeRepo(data *Data) biz.PrizeRepo

func NewResultRepo

func NewResultRepo(data *Data) biz.ResultRepo

func NewTransaction

func NewTransaction(d *Data) biz.Transaction

Types

type Data

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

Data .

func NewData

func NewData(db *gorm.DB, cache *cache.Client) *Data

NewData .

func (*Data) DB

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

func (*Data) InTx

func (d *Data) InTx(ctx context.Context, fn func(ctx context.Context) error) error

Jump to

Keyboard shortcuts

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