Documentation ¶
Index ¶
- Variables
- func NewCampaignRepo(data *Data) biz.CampaignRepo
- func NewUserRepo(data *Data) biz.UserRepo
- func NewUserVoucherRepo(data *Data) biz.UserVoucherRepo
- func NewVoucherCampaignRepo(data *Data) biz.VoucherCampaignRepo
- func NewVoucherRepo(data *Data) biz.VoucherRepo
- type Data
- func (d *Data) GetClient(ctx context.Context) *ent.Client
- 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 ProviderSet = wire.NewSet(NewData, NewUserRepo, NewCampaignRepo, NewVoucherRepo, NewVoucherCampaignRepo, NewUserVoucherRepo)
ProviderSet is data providers.
Functions ¶
func NewUserVoucherRepo ¶
func NewUserVoucherRepo(data *Data) biz.UserVoucherRepo
NewUserVoucherRepo .
func NewVoucherCampaignRepo ¶
func NewVoucherCampaignRepo(data *Data) biz.VoucherCampaignRepo
NewVoucherCampaignRepo .
Types ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
Data .
func (*Data) NewTxContext ¶
func (*Data) TxFromContext ¶
Click to show internal directories.
Click to hide internal directories.