data

package
v0.0.0-...-7230577 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 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(c *setting.Config) *gorm.DB

func NewRedis

func NewRedis(c *setting.Config) *redis.Client

func NewTrxRepo

func NewTrxRepo(data *Data, logger *zap.Logger) biz.TrxRepo

NewTrxRepo .

Types

type Data

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

Data .

func NewData

func NewData(db *gorm.DB, rdb *redis.Client) (*Data, error)

NewData .

func (*Data) DB

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

Jump to

Keyboard shortcuts

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