wallet

package
v0.0.0-...-8f95268 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PseudoAccount = "c1e395d9-8c00-4124-819a-85b0402900cf"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	// Deposit deposit money to specific user's account
	Deposit(ctx context.Context, accountID string, amount int64) (string, error)

	// Deposit withdraw money from specific user's account
	Withdraw(ctx context.Context, accountID string, amount int64) (string, error)

	// Transfer transfer money from one account to another
	Transfer(ctx context.Context, from, to string, amount int64) (string, error)

	// GetAccount get account information of specific users's account
	GetAccount(ctx context.Context, accountID string) (*mBank.Account, error)
}

func NewWallet

func NewWallet(b bank.Bank) Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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