Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WalletCacheStore ¶
type WalletService ¶
type WalletService struct {
// contains filtered or unexported fields
}
func NewWalletService ¶
func NewWalletService(txFactory WalletStoreTxFactory, cache WalletCacheStore) *WalletService
func (*WalletService) CreditMoney ¶
func (s *WalletService) CreditMoney(ctx context.Context, entry domain.CreditEntry) error
func (*WalletService) DebitMoney ¶
func (s *WalletService) DebitMoney(ctx context.Context, entry domain.DebitEntry) error
func (*WalletService) GetBalance ¶
func (s *WalletService) GetBalance(ctx context.Context, walletID int) (*domain.WalletBalance, error)
type WalletStoreTx ¶
type WalletStoreTxFactory ¶
type WalletStoreTxFactory interface {
NewTx(ctx context.Context) (WalletStoreTx, error)
}
Click to show internal directories.
Click to hide internal directories.