ledger

package
v0.0.0-...-e701cd2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountLedger

type AccountLedger struct {
}

func (*AccountLedger) ActivateAccount

func (a *AccountLedger) ActivateAccount(id string)

*

func (*AccountLedger) BlockAmount

func (a *AccountLedger) BlockAmount(id string, block request.BlockAmount) *common.Id

*

func (*AccountLedger) CreateAccount

func (a *AccountLedger) CreateAccount(account request.CreateAccount) *ledger.Account

*

func (*AccountLedger) CreateAccounts

func (a *AccountLedger) CreateAccounts(accounts request.CreateAccountsBatch) *[]ledger.Account

*

func (*AccountLedger) DeactivateAccount

func (a *AccountLedger) DeactivateAccount(id string)

*

func (*AccountLedger) DeleteBlockedAmount

func (a *AccountLedger) DeleteBlockedAmount(id string)

*

func (*AccountLedger) DeleteBlockedAmountForAccount

func (a *AccountLedger) DeleteBlockedAmountForAccount(id string)

*

func (*AccountLedger) FreezeAccount

func (a *AccountLedger) FreezeAccount(id string)

*

func (*AccountLedger) GetAccountBalance

func (a *AccountLedger) GetAccountBalance(id string) *ledger.AccountBalance

*

func (*AccountLedger) GetAccountById

func (a *AccountLedger) GetAccountById(id string) *ledger.Account

*

func (*AccountLedger) GetAccountsByCustomerId

func (a *AccountLedger) GetAccountsByCustomerId(id string, pageSize uint16, offset uint16) *[]ledger.Account

*

func (*AccountLedger) GetAllAccounts

func (a *AccountLedger) GetAllAccounts(pageSize uint16, offset uint16) *[]ledger.Account

*

func (*AccountLedger) GetBlockedAmountsByAccountId

func (a *AccountLedger) GetBlockedAmountsByAccountId(id string, pageSize uint16, offset uint16) *[]ledger.Blockage

*

func (*AccountLedger) UnfreezeAccount

func (a *AccountLedger) UnfreezeAccount(id string)

*

type CustomerLedger

type CustomerLedger struct {
}

func (*CustomerLedger) ActivateCustomer

func (c *CustomerLedger) ActivateCustomer(id string)

*

func (*CustomerLedger) DeactivateCustomer

func (c *CustomerLedger) DeactivateCustomer(id string)

*

func (*CustomerLedger) DisableCustomer

func (c *CustomerLedger) DisableCustomer(id string)

*

func (*CustomerLedger) EnableCustomer

func (c *CustomerLedger) EnableCustomer(id string)

*

func (*CustomerLedger) GetAllCustomers

func (c *CustomerLedger) GetAllCustomers(pageSize uint16, offset uint16) *[]ledger.Customer

*

func (*CustomerLedger) GetCustomer

func (c *CustomerLedger) GetCustomer(id string) *ledger.Customer

*

func (*CustomerLedger) UpdateCustomer

func (c *CustomerLedger) UpdateCustomer(id string, data request.CustomerUpdate) *common.Id

*

type OrderBook

type OrderBook struct {
}

func (*OrderBook) DeleteAccountTrades

func (o *OrderBook) DeleteAccountTrades(id string)

*

func (*OrderBook) DeleteTrade

func (o *OrderBook) DeleteTrade(id string)

*

func (*OrderBook) GetActiveBuyTrades

func (o *OrderBook) GetActiveBuyTrades(id string, pageSize uint16, offset uint16) *[]ledger.OrderBookResponse

*

func (*OrderBook) GetActiveSellTrades

func (o *OrderBook) GetActiveSellTrades(id string, pageSize uint16, offset uint16) *[]ledger.OrderBookResponse

*

func (*OrderBook) GetHistoricalTrades

func (o *OrderBook) GetHistoricalTrades(pageSize uint16, offset uint16) *[]ledger.OrderBookResponse

*

func (*OrderBook) GetTradeById

func (o *OrderBook) GetTradeById(id string) *ledger.OrderBookResponse

*

func (*OrderBook) StoreTrade

func (o *OrderBook) StoreTrade(data request.OrderBookRequest) *common.Id

*

type Subcription

type Subcription struct {
}

func (*Subcription) CancelExistingSubscription

func (s *Subcription) CancelExistingSubscription(id string)

*

func (*Subcription) CreateNewSubscription

func (s *Subcription) CreateNewSubscription(data request.CreateSubscription) *common.Id

*

func (*Subcription) ListActiveSubscriptions

func (s *Subcription) ListActiveSubscriptions(pageSize uint16, offset uint16) *[]ledger.Subscription

*

func (*Subcription) ObtainReportForSubscription

func (s *Subcription) ObtainReportForSubscription(id string) interface{}

*

type Transaction

type Transaction struct {
}

func (*Transaction) CountTransactionsByAccount

func (t *Transaction) CountTransactionsByAccount(filter request.TransactionFilter) uint64

*

func (*Transaction) CountTransactionsByCustomer

func (t *Transaction) CountTransactionsByCustomer(filter request.TransactionFilter) uint64

*

func (*Transaction) CountTransactionsByLedger

func (t *Transaction) CountTransactionsByLedger(filter request.TransactionFilter) uint64

*

func (*Transaction) GetTransactionsByAccount

func (t *Transaction) GetTransactionsByAccount(filter request.TransactionFilter, pageSize uint16, offset uint16) *[]ledger.Transaction

*

func (*Transaction) GetTransactionsByCustomer

func (t *Transaction) GetTransactionsByCustomer(filter request.TransactionFilter, pageSize uint16, offset uint16) *[]ledger.Transaction

*

func (*Transaction) GetTransactionsByLedger

func (t *Transaction) GetTransactionsByLedger(filter request.TransactionFilter, pageSize uint16, offset uint16) *[]ledger.Transaction

*

func (*Transaction) GetTransactionsByReference

func (t *Transaction) GetTransactionsByReference(reference string) *[]ledger.Transaction

*

func (*Transaction) StoreTransaction

func (t *Transaction) StoreTransaction(transaction request.CreateTransaction) *ledger.Reference

*

type VC

type VC struct {
}

func (*VC) CreateVirtualCurrency

func (v *VC) CreateVirtualCurrency(data request.CreateCurrency) *ledger.Account

*

func (*VC) GetVirtualCurrencyByName

func (v *VC) GetVirtualCurrencyByName(name string) *ledger.VC

*

func (*VC) MintVirtualCurrency

func (v *VC) MintVirtualCurrency(data request.CurrencyOperation) *ledger.Reference

*

func (*VC) RevokeVirtualCurrency

func (v *VC) RevokeVirtualCurrency(data request.CurrencyOperation) *ledger.Reference

*

func (*VC) UpdateVirtualCurrency

func (v *VC) UpdateVirtualCurrency(data request.UpdateCurrency)

*

Jump to

Keyboard shortcuts

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