Documentation ¶
Index ¶
- type WalletRepo
- type WalletRepoImpl
- func (r *WalletRepoImpl) CreateAccount(ctx context.Context, accountID, initBalance int64, currency string) error
- func (r *WalletRepoImpl) GetAccounts(ctx context.Context, accountIDs []int64) ([]*model.Wallet, error)
- func (r *WalletRepoImpl) SubmitTransaction(ctx context.Context, sourceAccountID, destinationAccountID int64, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WalletRepo ¶
type WalletRepo interface { CreateAccount(ctx context.Context, accountID, initBalance int64, currency string) error GetAccounts(ctx context.Context, accountIDs []int64) ([]*model.Wallet, error) SubmitTransaction(ctx context.Context, sourceAccountID, destinationAccountID int64, amount float64) error }
func CreateWalletRepo ¶
func CreateWalletRepo(dbClient *gorm.DB) WalletRepo
type WalletRepoImpl ¶
type WalletRepoImpl struct {
// contains filtered or unexported fields
}
func (*WalletRepoImpl) CreateAccount ¶
func (*WalletRepoImpl) GetAccounts ¶
func (*WalletRepoImpl) SubmitTransaction ¶
Click to show internal directories.
Click to hide internal directories.