data

package
v0.0.0-...-1c37eff Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: MIT Imports: 9 Imported by: 0

README

Data

go generate ./ent

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is data providers.

Functions

func NewCardRepo

func NewCardRepo(data *Data, logger log.Logger) biz.CardRepo

func NewTransaction

func NewTransaction(d *Data) biz.Transaction

func NewUserRepo

func NewUserRepo(data *Data, logger log.Logger) biz.UserRepo

NewUserRepo .

Types

type Data

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

Data .

func NewData

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

NewData .

func (*Data) Card

func (d *Data) Card(ctx context.Context) *ent.CardClient

func (*Data) ExecTx

func (d *Data) ExecTx(ctx context.Context, f func(ctx context.Context) error) error

func (*Data) User

func (d *Data) User(ctx context.Context) *ent.UserClient

Directories

Path Synopsis
ent

Jump to

Keyboard shortcuts

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