data

package
v0.0.0-...-acbaf2f Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT, MIT Imports: 8 Imported by: 0

README

Data

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

func NewGreeterRepo

func NewGreeterRepo(data *Data, logger log.Logger) biz.GreeterRepo

NewGreeterRepo .

func NewOrderRepo

func NewOrderRepo(data *Data, logger log.Logger) biz.OrderQueueRepo

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 .

type SeckillOrder

type SeckillOrder struct {
	UserId  int64
	OrderId int64
	GoodsId int64
}

Jump to

Keyboard shortcuts

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