Documentation ¶
Index ¶
- func CreateAccountAndInitializeBalance(ctx context.Context, userId, currency string, initialBalance *big.Int) error
- func CreateTransactionAndPlaceHold(ctx context.Context, t *model.QldbTransaction, amount *big.Int) error
- func FillOrder(req *api.PostFillRequest) error
- func FinalizeTransactionAndReleaseHold(ctx context.Context, venueOrderId, status string) error
- func GetAccount(ctx context.Context, accountId string) (*model.QldbAccount, error)
- func GetTransaction(ctx context.Context, venueOrderId string) (*model.QldbTransaction, error)
- func GetUserAccounts(ctx context.Context, userId string) ([]*model.QldbAccount, error)
- func NewRepository(l *log.Entry, a *config.AppConfig, cfg *aws.Config)
- type AccountNotFoundError
- type InsufficientBalanceError
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FillOrder ¶
func FillOrder(req *api.PostFillRequest) error
func GetAccount ¶
func GetTransaction ¶
func GetUserAccounts ¶
Types ¶
type AccountNotFoundError ¶
type AccountNotFoundError struct {
Id string
}
func (*AccountNotFoundError) Error ¶
func (e *AccountNotFoundError) Error() string
type InsufficientBalanceError ¶
type InsufficientBalanceError struct { }
func (*InsufficientBalanceError) Error ¶
func (e *InsufficientBalanceError) Error() string
type Repository ¶
type Repository struct { Driver *qldbdriver.QLDBDriver App *config.AppConfig }
var Repo *Repository
Click to show internal directories.
Click to hide internal directories.