Documentation ¶
Index ¶
- type SqliteBackend
- func (d *SqliteBackend) BurnScriptExists(script string) (bool, error)
- func (d *SqliteBackend) Close() error
- func (d *SqliteBackend) GetBlock(identifier string) (types.Block, error)
- func (d *SqliteBackend) GetBlockIdentifiers(identifier string) (string, int64, error)
- func (d *SqliteBackend) GetBlockLossSummary(identifier string) (types.BlockLossSummary, error)
- func (d *SqliteBackend) GetBlockLosses(hash string) ([]types.Loss, error)
- func (d *SqliteBackend) GetBlockStats(identifier string) (btypes.BlockStats, error)
- func (d *SqliteBackend) GetBlocksByHeights(heights []int64) ([]types.Block, error)
- func (d *SqliteBackend) GetBurnScript(script string) (types.BurnScript, error)
- func (d *SqliteBackend) GetBurnScriptCount() (int, error)
- func (d *SqliteBackend) GetBurnScriptPage(limit int, offset int) ([]types.BurnScript, error)
- func (d *SqliteBackend) GetBurnScriptSummaries(limit int) ([]types.BurnScriptSummary, error)
- func (d *SqliteBackend) GetBurnScriptSummariesForGroup(group string) ([]types.BurnScriptSummary, error)
- func (d *SqliteBackend) GetBurnScriptSummary(script string) (types.BurnScriptSummary, error)
- func (d *SqliteBackend) GetBurnScripts() ([]types.BurnScript, error)
- func (d *SqliteBackend) GetBurnScriptsByScripts(scripts []string) ([]types.BurnScript, error)
- func (d *SqliteBackend) GetHeightLossSummary() ([]types.HeightLossSummary, error)
- func (d *SqliteBackend) GetIndexStatistics(height int64) (types.IndexStatistics, error)
- func (d *SqliteBackend) GetLatestBlock() (types.Block, error)
- func (d *SqliteBackend) GetLossyBlocks(limit int) ([]types.BlockLossSummary, error)
- func (d *SqliteBackend) GetLossyBlocksWithMinimumLoss(limit int, minimumLoss int64) ([]types.BlockLossSummary, error)
- func (d *SqliteBackend) GetOnlyBurnScripts() ([]string, error)
- func (d *SqliteBackend) GetOpReturnSummaries(limit int) ([]types.OpReturnSummary, error)
- func (d *SqliteBackend) GetOpReturnSummary(script string) (types.OpReturnSummary, error)
- func (d *SqliteBackend) GetRecentLosses(limit int) ([]types.Loss, error)
- func (d *SqliteBackend) GetScriptGroupSummaries(limit int) ([]types.ScriptGroupSummary, error)
- func (d *SqliteBackend) GetScriptGroupSummary(group string) (types.ScriptGroupSummary, error)
- func (d *SqliteBackend) GetScriptQueue() ([]types.ScriptQueue, error)
- func (d *SqliteBackend) GetTransaction(hash string) (types.Transaction, error)
- func (d *SqliteBackend) GetTransactionCount() (int, error)
- func (d *SqliteBackend) GetTransactionLossSummary(limit int) ([]types.TransactionLossSummary, error)
- func (d *SqliteBackend) GetTransactionLossSummaryForBlock(identifier string) ([]types.TransactionLossSummary, error)
- func (d *SqliteBackend) GetTransactionLossSummaryForScript(script string) ([]types.TransactionLossSummary, error)
- func (d *SqliteBackend) GetTransactionLossSummaryForTxid(txid string) (types.TransactionLossSummary, error)
- func (d *SqliteBackend) GetTransactionLosses(hash string) ([]types.Loss, error)
- func (d *SqliteBackend) GetTransactionQueue() ([]types.TransactionQueue, error)
- func (d *SqliteBackend) GetTransactionSummary(limit int, minLoss int64, onlyCoinbase bool) ([]types.TransactionSummary, error)
- func (d *SqliteBackend) GetTransactionSummaryForBlock(identifier string) ([]types.TransactionSummary, error)
- func (d *SqliteBackend) GetTransactionSummaryForTxid(txid string) (types.TransactionSummary, error)
- func (d *SqliteBackend) GetTransactionTxids(limit int, offset int) ([]string, error)
- func (d *SqliteBackend) GetTxOutSetInfo(identifier string) (types.TxOutSetInfo, error)
- func (d *SqliteBackend) GetUndecodedBurnScripts() ([]types.BurnScript, error)
- func (d *SqliteBackend) IncrementScriptQueueTryCount(id int) error
- func (d *SqliteBackend) Migrate() error
- func (d *SqliteBackend) RecordBlockIndexResults(block types.Block, txoutset types.TxOutSetInfo, blockstats btypes.BlockStats, ...) error
- func (d *SqliteBackend) RecordDecodedBurnScript(script string, decodeScript string) error
- func (d *SqliteBackend) RecordScriptUnspents(script types.ScriptQueue, unspentTxids []string, unspentHeights []int64) error
- func (d *SqliteBackend) RecordTransactionIndexResults(losses []types.Loss, transactions []types.Transaction, spentTxids []string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SqliteBackend ¶
type SqliteBackend struct {
// contains filtered or unexported fields
}
func NewSqliteBackend ¶
func NewSqliteBackend(readonly bool) (*SqliteBackend, error)
func (*SqliteBackend) BurnScriptExists ¶
func (d *SqliteBackend) BurnScriptExists(script string) (bool, error)
func (*SqliteBackend) Close ¶
func (d *SqliteBackend) Close() error
func (*SqliteBackend) GetBlock ¶
func (d *SqliteBackend) GetBlock(identifier string) (types.Block, error)
func (*SqliteBackend) GetBlockIdentifiers ¶
func (d *SqliteBackend) GetBlockIdentifiers(identifier string) (string, int64, error)
func (*SqliteBackend) GetBlockLossSummary ¶
func (d *SqliteBackend) GetBlockLossSummary(identifier string) (types.BlockLossSummary, error)
func (*SqliteBackend) GetBlockLosses ¶
func (d *SqliteBackend) GetBlockLosses(hash string) ([]types.Loss, error)
func (*SqliteBackend) GetBlockStats ¶
func (d *SqliteBackend) GetBlockStats(identifier string) (btypes.BlockStats, error)
func (*SqliteBackend) GetBlocksByHeights ¶
func (d *SqliteBackend) GetBlocksByHeights(heights []int64) ([]types.Block, error)
func (*SqliteBackend) GetBurnScript ¶
func (d *SqliteBackend) GetBurnScript(script string) (types.BurnScript, error)
func (*SqliteBackend) GetBurnScriptCount ¶
func (d *SqliteBackend) GetBurnScriptCount() (int, error)
func (*SqliteBackend) GetBurnScriptPage ¶
func (d *SqliteBackend) GetBurnScriptPage(limit int, offset int) ([]types.BurnScript, error)
func (*SqliteBackend) GetBurnScriptSummaries ¶
func (d *SqliteBackend) GetBurnScriptSummaries(limit int) ([]types.BurnScriptSummary, error)
func (*SqliteBackend) GetBurnScriptSummariesForGroup ¶
func (d *SqliteBackend) GetBurnScriptSummariesForGroup(group string) ([]types.BurnScriptSummary, error)
func (*SqliteBackend) GetBurnScriptSummary ¶
func (d *SqliteBackend) GetBurnScriptSummary(script string) (types.BurnScriptSummary, error)
func (*SqliteBackend) GetBurnScripts ¶
func (d *SqliteBackend) GetBurnScripts() ([]types.BurnScript, error)
func (*SqliteBackend) GetBurnScriptsByScripts ¶
func (d *SqliteBackend) GetBurnScriptsByScripts(scripts []string) ([]types.BurnScript, error)
func (*SqliteBackend) GetHeightLossSummary ¶
func (d *SqliteBackend) GetHeightLossSummary() ([]types.HeightLossSummary, error)
func (*SqliteBackend) GetIndexStatistics ¶
func (d *SqliteBackend) GetIndexStatistics(height int64) (types.IndexStatistics, error)
func (*SqliteBackend) GetLatestBlock ¶
func (d *SqliteBackend) GetLatestBlock() (types.Block, error)
func (*SqliteBackend) GetLossyBlocks ¶
func (d *SqliteBackend) GetLossyBlocks(limit int) ([]types.BlockLossSummary, error)
func (*SqliteBackend) GetLossyBlocksWithMinimumLoss ¶
func (d *SqliteBackend) GetLossyBlocksWithMinimumLoss(limit int, minimumLoss int64) ([]types.BlockLossSummary, error)
func (*SqliteBackend) GetOnlyBurnScripts ¶
func (d *SqliteBackend) GetOnlyBurnScripts() ([]string, error)
func (*SqliteBackend) GetOpReturnSummaries ¶
func (d *SqliteBackend) GetOpReturnSummaries(limit int) ([]types.OpReturnSummary, error)
func (*SqliteBackend) GetOpReturnSummary ¶
func (d *SqliteBackend) GetOpReturnSummary(script string) (types.OpReturnSummary, error)
func (*SqliteBackend) GetRecentLosses ¶
func (d *SqliteBackend) GetRecentLosses(limit int) ([]types.Loss, error)
func (*SqliteBackend) GetScriptGroupSummaries ¶
func (d *SqliteBackend) GetScriptGroupSummaries(limit int) ([]types.ScriptGroupSummary, error)
func (*SqliteBackend) GetScriptGroupSummary ¶
func (d *SqliteBackend) GetScriptGroupSummary(group string) (types.ScriptGroupSummary, error)
func (*SqliteBackend) GetScriptQueue ¶
func (d *SqliteBackend) GetScriptQueue() ([]types.ScriptQueue, error)
func (*SqliteBackend) GetTransaction ¶
func (d *SqliteBackend) GetTransaction(hash string) (types.Transaction, error)
func (*SqliteBackend) GetTransactionCount ¶
func (d *SqliteBackend) GetTransactionCount() (int, error)
func (*SqliteBackend) GetTransactionLossSummary ¶
func (d *SqliteBackend) GetTransactionLossSummary(limit int) ([]types.TransactionLossSummary, error)
func (*SqliteBackend) GetTransactionLossSummaryForBlock ¶
func (d *SqliteBackend) GetTransactionLossSummaryForBlock(identifier string) ([]types.TransactionLossSummary, error)
func (*SqliteBackend) GetTransactionLossSummaryForScript ¶
func (d *SqliteBackend) GetTransactionLossSummaryForScript(script string) ([]types.TransactionLossSummary, error)
func (*SqliteBackend) GetTransactionLossSummaryForTxid ¶
func (d *SqliteBackend) GetTransactionLossSummaryForTxid(txid string) (types.TransactionLossSummary, error)
func (*SqliteBackend) GetTransactionLosses ¶
func (d *SqliteBackend) GetTransactionLosses(hash string) ([]types.Loss, error)
func (*SqliteBackend) GetTransactionQueue ¶
func (d *SqliteBackend) GetTransactionQueue() ([]types.TransactionQueue, error)
func (*SqliteBackend) GetTransactionSummary ¶
func (d *SqliteBackend) GetTransactionSummary(limit int, minLoss int64, onlyCoinbase bool) ([]types.TransactionSummary, error)
func (*SqliteBackend) GetTransactionSummaryForBlock ¶
func (d *SqliteBackend) GetTransactionSummaryForBlock(identifier string) ([]types.TransactionSummary, error)
func (*SqliteBackend) GetTransactionSummaryForTxid ¶
func (d *SqliteBackend) GetTransactionSummaryForTxid(txid string) (types.TransactionSummary, error)
func (*SqliteBackend) GetTransactionTxids ¶
func (d *SqliteBackend) GetTransactionTxids(limit int, offset int) ([]string, error)
func (*SqliteBackend) GetTxOutSetInfo ¶
func (d *SqliteBackend) GetTxOutSetInfo(identifier string) (types.TxOutSetInfo, error)
func (*SqliteBackend) GetUndecodedBurnScripts ¶
func (d *SqliteBackend) GetUndecodedBurnScripts() ([]types.BurnScript, error)
func (*SqliteBackend) IncrementScriptQueueTryCount ¶
func (d *SqliteBackend) IncrementScriptQueueTryCount(id int) error
func (*SqliteBackend) Migrate ¶
func (d *SqliteBackend) Migrate() error
func (*SqliteBackend) RecordBlockIndexResults ¶
func (d *SqliteBackend) RecordBlockIndexResults(block types.Block, txoutset types.TxOutSetInfo, blockstats btypes.BlockStats, losses []types.Loss, transactions []types.Transaction, spentTxids []string, spentVouts []int) error
func (*SqliteBackend) RecordDecodedBurnScript ¶
func (d *SqliteBackend) RecordDecodedBurnScript(script string, decodeScript string) error
func (*SqliteBackend) RecordScriptUnspents ¶
func (d *SqliteBackend) RecordScriptUnspents(script types.ScriptQueue, unspentTxids []string, unspentHeights []int64) error
func (*SqliteBackend) RecordTransactionIndexResults ¶
func (d *SqliteBackend) RecordTransactionIndexResults(losses []types.Loss, transactions []types.Transaction, spentTxids []string, spentVouts []int) error
Click to show internal directories.
Click to hide internal directories.