data

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 25 Imported by: 0

README

Data

Documentation

Index

Constants

View Source
const (
	MaxLifeTime = 7200
)

Variables

View Source
var ProviderSet = wire.NewSet(NewData, NewSkuRepo)

ProviderSet is data providers.

Functions

func NewDB

func NewDB(dsn string) (db *gorm.DB, cf func(), err error)

func NewRedis

func NewRedis(c *conf.Data) *redis.Client

func NewSkuRepo

func NewSkuRepo(data *Data, logger log.Logger) biz.SkuRepo

Types

type Data

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

Data .

func NewData

func NewData(c *conf.Data, logger log.Logger) (*Data, func(), error)

NewData .

Jump to

Keyboard shortcuts

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