data

package
v0.0.0-...-d49c957 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is data providers.

Functions

func NewDB

func NewDB(conf *conf.Data, logger log.Logger) *gorm.DB

NewDB

func NewDictRepo

func NewDictRepo(data *Data, logger log.Logger) biz.DictRepo

func NewTransaction

func NewTransaction(d *Data) biz.Transaction

NewTransaction .

Types

type Data

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

Data .

func NewData

func NewData(db *gorm.DB, logger log.Logger) (*Data, func(), error)

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