Documentation ¶
Index ¶
- Variables
- func Load()
- type Storage
- func (s *Storage) DoQuery(queryReq basicAssetsLedger.QueryRequest) (result interface{}, err error)
- func (s *Storage) GetAddressActionRecord(p []string) (ret interface{}, err error)
- func (s *Storage) GetAddressBalance(p []string) (ret interface{}, err error)
- func (s *Storage) GetAddressesList(p []string) (ret interface{}, err error)
- func (s *Storage) GetAssets(p []string) (ret interface{}, err error)
- func (s *Storage) GetAssetsList(p []string) (ret interface{}, err error)
- func (s *Storage) GetBalancesUnderAssetsList(p []string) (ret interface{}, err error)
- func (s *Storage) GetSellingHistory(p []string) (ret interface{}, err error)
- func (s *Storage) GetTransfer(p []string) (ret interface{}, err error)
- func (s *Storage) GetTransferList(p []string) (ret interface{}, err error)
- func (s *Storage) GetTransfersUnderAssets(p []string) (ret interface{}, err error)
- func (s *Storage) StoreAssets(tx basicAssetsLedger.TransactionWithBlockInfo) (err error)
- func (s *Storage) StoreBalance(height uint64, tm int64, balanceList []basicAssetsLedger.Balance) (err error)
- func (s *Storage) StoreSelling(tx basicAssetsLedger.TransactionWithBlockInfo, ...) (err error)
- func (s *Storage) StoreUnspent(tx basicAssetsLedger.TransactionWithBlockInfo, ...) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var QueryTypes struct { AssetsList enum.Element Assets enum.Element Transfer enum.Element TransferList enum.Element TransfersUnderAssets enum.Element BalancesUnderAssets enum.Element AddressList enum.Element AddressActionRecord enum.Element AddressBalanceList enum.Element SellingHistory enum.Element }
Functions ¶
Types ¶
type Storage ¶
type Storage struct { Driver simpleSQLDatabase.IDriver // contains filtered or unexported fields }
func NewStorage ¶
func NewStorage(sqlDriver simpleSQLDatabase.IDriver) (s *Storage)
func (*Storage) DoQuery ¶
func (s *Storage) DoQuery(queryReq basicAssetsLedger.QueryRequest) (result interface{}, err error)
func (*Storage) GetAddressActionRecord ¶
func (*Storage) GetAddressBalance ¶
func (*Storage) GetAddressesList ¶
func (*Storage) GetAssetsList ¶
func (*Storage) GetBalancesUnderAssetsList ¶
func (*Storage) GetSellingHistory ¶
func (*Storage) GetTransfer ¶
func (*Storage) GetTransferList ¶
func (*Storage) GetTransfersUnderAssets ¶
func (*Storage) StoreAssets ¶
func (s *Storage) StoreAssets(tx basicAssetsLedger.TransactionWithBlockInfo) (err error)
func (*Storage) StoreBalance ¶
func (*Storage) StoreSelling ¶
func (s *Storage) StoreSelling(tx basicAssetsLedger.TransactionWithBlockInfo, result basicAssetsLedger.SellingOperationResult) (err error)
func (*Storage) StoreUnspent ¶
func (s *Storage) StoreUnspent(tx basicAssetsLedger.TransactionWithBlockInfo, inputUnspent []basicAssetsLedger.Unspent) (err error)
Click to show internal directories.
Click to hide internal directories.