Documentation ¶
Index ¶
- type Storage
- func (s *Storage) AssetInfo(asset crypto.Digest) (*data.AssetInfo, error)
- func (s *Storage) BlockID(height int) (crypto.Signature, error)
- func (s *Storage) CandlesRange(amountAsset, priceAsset crypto.Digest, from, to uint32, timeFrameScale int) ([]data.Candle, error)
- func (s *Storage) Close() error
- func (s *Storage) DayCandle(amountAsset, priceAsset crypto.Digest) (data.Candle, error)
- func (s *Storage) HasBlock(height int, block crypto.Signature) (bool, error)
- func (s *Storage) Height() (int, error)
- func (s *Storage) IssuerBalance(issuer proto.Address, asset crypto.Digest) (uint64, error)
- func (s *Storage) Markets() (map[data.MarketID]data.Market, error)
- func (s *Storage) Open() error
- func (s *Storage) PutBalances(height int, block crypto.Signature, issues []data.IssueChange, ...) error
- func (s *Storage) PutTrades(height int, block crypto.Signature, trades []data.Trade) error
- func (s *Storage) Rollback(removeHeight int) error
- func (s *Storage) SafeRollbackHeight(height int) (int, error)
- func (s *Storage) Trades(amountAsset, priceAsset crypto.Digest, limit int) ([]data.Trade, error)
- func (s *Storage) TradesByAddress(amountAsset, priceAsset crypto.Digest, address proto.Address, limit int) ([]data.Trade, error)
- func (s *Storage) TradesRange(amountAsset, priceAsset crypto.Digest, from, to uint64) ([]data.Trade, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
func (*Storage) CandlesRange ¶
func (*Storage) IssuerBalance ¶
func (*Storage) PutBalances ¶
func (s *Storage) PutBalances(height int, block crypto.Signature, issues []data.IssueChange, assets []data.AssetChange, accounts []data.AccountChange, aliases []data.AliasBind) error
func (*Storage) TradesByAddress ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.