Documentation ¶
Index ¶
- Variables
- func NewCurrencyRepo(data *Data) biz.CurrencyRateRepo
- func NewIcoCouponRepo(data *Data) biz.IcoCouponRepo
- func NewIcoRepo(data *Data) biz.ICORepo
- func NewLockRepo(data *Data) biz.LockRepo
- func NewTransactionRepo(data *Data) biz.TransactionRepo
- func NewWalletRepo(data *Data) biz.UserWalletRepo
- type Data
- func (d *Data) GetClient(ctx context.Context) *ent.Client
- func (d *Data) GetSQL(ctx context.Context) *entsql.Driver
- func (d *Data) NewTxContext(ctx context.Context, tx *ent.Tx) context.Context
- func (d *Data) TxCompleted(ctx context.Context) context.Context
- func (d *Data) TxFromContext(ctx context.Context) (tx *ent.Tx, ok bool)
- func (r *Data) WithTx(ctx context.Context, fn func(ctx context.Context) error) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DataClient *ent.Client
View Source
var ProviderSet = wire.NewSet(NewData, NewIcoRepo, NewWalletRepo, NewTransactionRepo, NewCurrencyRepo, NewIcoCouponRepo, NewLockRepo)
ProviderSet is data providers.
Functions ¶
func NewCurrencyRepo ¶
func NewCurrencyRepo(data *Data) biz.CurrencyRateRepo
func NewIcoCouponRepo ¶
func NewIcoCouponRepo(data *Data) biz.IcoCouponRepo
func NewIcoRepo ¶
func NewLockRepo ¶
func NewTransactionRepo ¶
func NewTransactionRepo(data *Data) biz.TransactionRepo
func NewWalletRepo ¶
func NewWalletRepo(data *Data) biz.UserWalletRepo
Types ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
func (*Data) NewTxContext ¶
func (*Data) TxFromContext ¶
Click to show internal directories.
Click to hide internal directories.