Documentation
¶
Index ¶
- type TransactionData
- type TransactionDatas
- func GetTransactions(ctx context.Context, id, kind string, test bool) (*TransactionDatas, error)
- func GetTransactionsByCurrency(ctx context.Context, id, kind string, cur currency.Type, test bool) (*TransactionDatas, error)
- func TallyTransactions(ctx context.Context, id, kind string, transs []*transaction.Transaction) (*TransactionDatas, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransactionData ¶
type TransactionData struct {
Balance currency.Cents `json:"balance"`
Holds currency.Cents `json:"holds"`
Transactions []*transaction.Transaction `json:"transactions"`
}
type TransactionDatas ¶
type TransactionDatas struct {
Id string `json:"id"`
Kind string `json:"kind"`
Data map[currency.Type]*TransactionData `json:"data"`
}
func GetTransactions ¶
func TallyTransactions ¶
func TallyTransactions(ctx context.Context, id, kind string, transs []*transaction.Transaction) (*TransactionDatas, error)
Click to show internal directories.
Click to hide internal directories.