Documentation ¶
Index ¶
- Constants
- Variables
- func EventErr(t string, upd bool, err error) error
- func NewQuietStream() *health.Stream
- func NewRedisConn(opts *redis.Options) (*redis.Client, error)
- func NewStream() *health.Stream
- func NewStreamDBDups() *health.Stream
- func RepeatForLock(f func() error) error
- type AccumulateBalancesAmount
- type AccumulateBalancesTransactions
- type AddressBech32
- type AddressChain
- type Addresses
- type Assets
- type BalanceAccumulatorManager
- type BalancerAccumulateHandler
- type Connections
- func (c Connections) Cache() cache.Cache
- func (c Connections) Close() error
- func (c Connections) DB() *db.Conn
- func (c Connections) QuietStream() *health.Stream
- func (c Connections) Redis() *redis.Client
- func (c Connections) Stream() *health.Stream
- func (c Connections) StreamDBDedup() *health.Stream
- type Consumable
- type Consumer
- type ConsumerCChain
- type ConsumerCtx
- type Control
- type CvmAddresses
- type CvmBlocks
- type CvmTransactions
- type CvmTransactionsTxdata
- type CvmTransactionsTxdataTrace
- type GenesisContainer
- type KeyValueStore
- type MockPersist
- func (m *MockPersist) InsertAccumulateBalancesReceived(ctx context.Context, runner dbr.SessionRunner, v *AccumulateBalancesAmount) error
- func (m *MockPersist) InsertAccumulateBalancesSent(ctx context.Context, runner dbr.SessionRunner, v *AccumulateBalancesAmount) error
- func (m *MockPersist) InsertAccumulateBalancesTransactions(ctx context.Context, runner dbr.SessionRunner, ...) error
- func (m *MockPersist) InsertAddressBech32(ctx context.Context, runner dbr.SessionRunner, v *AddressBech32, b bool) error
- func (m *MockPersist) InsertAddressChain(ctx context.Context, runner dbr.SessionRunner, v *AddressChain, b bool) error
- func (m *MockPersist) InsertAddresses(ctx context.Context, runner dbr.SessionRunner, v *Addresses, b bool) error
- func (m *MockPersist) InsertAssets(ctx context.Context, runner dbr.SessionRunner, v *Assets, b bool) error
- func (m *MockPersist) InsertCvmAddresses(ctx context.Context, runner dbr.SessionRunner, v *CvmAddresses, b bool) error
- func (m *MockPersist) InsertCvmBlocks(ctx context.Context, runner dbr.SessionRunner, v *CvmBlocks) error
- func (m *MockPersist) InsertCvmTransactions(ctx context.Context, runner dbr.SessionRunner, v *CvmTransactions, b bool) error
- func (m *MockPersist) InsertCvmTransactionsTxdata(ctx context.Context, runner dbr.SessionRunner, v *CvmTransactionsTxdata, ...) error
- func (m *MockPersist) InsertCvmTransactionsTxdataTrace(ctx context.Context, runner dbr.SessionRunner, v *CvmTransactionsTxdataTrace, ...) error
- func (m *MockPersist) InsertKeyValueStore(ctx context.Context, runner dbr.SessionRunner, v *KeyValueStore) error
- func (m *MockPersist) InsertOutputAddressAccumulateIn(ctx context.Context, runner dbr.SessionRunner, v *OutputAddressAccumulate, ...) error
- func (m *MockPersist) InsertOutputAddressAccumulateOut(ctx context.Context, runner dbr.SessionRunner, v *OutputAddressAccumulate, ...) error
- func (m *MockPersist) InsertOutputAddresses(ctx context.Context, runner dbr.SessionRunner, v *OutputAddresses, b bool) error
- func (m *MockPersist) InsertOutputTxsAccumulate(ctx context.Context, runner dbr.SessionRunner, v *OutputTxsAccumulate) error
- func (m *MockPersist) InsertOutputs(ctx context.Context, runner dbr.SessionRunner, v *Outputs, b bool) error
- func (m *MockPersist) InsertOutputsRedeeming(ctx context.Context, runner dbr.SessionRunner, v *OutputsRedeeming, b bool) error
- func (m *MockPersist) InsertPvmBlocks(ctx context.Context, runner dbr.SessionRunner, v *PvmBlocks, b bool) error
- func (m *MockPersist) InsertRewards(ctx context.Context, runner dbr.SessionRunner, v *Rewards, b bool) error
- func (m *MockPersist) InsertTransactions(ctx context.Context, runner dbr.SessionRunner, v *Transactions, b bool) error
- func (m *MockPersist) InsertTransactionsBlock(ctx context.Context, runner dbr.SessionRunner, v *TransactionsBlock, b bool) error
- func (m *MockPersist) InsertTransactionsEpoch(ctx context.Context, runner dbr.SessionRunner, v *TransactionsEpoch, b bool) error
- func (m *MockPersist) InsertTransactionsRewardsOwners(ctx context.Context, runner dbr.SessionRunner, v *TransactionsRewardsOwners, ...) error
- func (m *MockPersist) InsertTransactionsRewardsOwnersAddress(ctx context.Context, runner dbr.SessionRunner, ...) error
- func (m *MockPersist) InsertTransactionsRewardsOwnersOutputs(ctx context.Context, runner dbr.SessionRunner, ...) error
- func (m *MockPersist) InsertTransactionsValidator(ctx context.Context, runner dbr.SessionRunner, v *TransactionsValidator, ...) error
- func (m *MockPersist) InsertTxPool(ctx context.Context, runner dbr.SessionRunner, v *TxPool) error
- func (m *MockPersist) QueryAccumulateBalancesReceived(ctx context.Context, runner dbr.SessionRunner, v *AccumulateBalancesAmount) (*AccumulateBalancesAmount, error)
- func (m *MockPersist) QueryAccumulateBalancesSent(ctx context.Context, runner dbr.SessionRunner, v *AccumulateBalancesAmount) (*AccumulateBalancesAmount, error)
- func (m *MockPersist) QueryAccumulateBalancesTransactions(ctx context.Context, runner dbr.SessionRunner, ...) (*AccumulateBalancesTransactions, error)
- func (m *MockPersist) QueryAddressBech32(ctx context.Context, runner dbr.SessionRunner, v *AddressBech32) (*AddressBech32, error)
- func (m *MockPersist) QueryAddressChain(ctx context.Context, runner dbr.SessionRunner, v *AddressChain) (*AddressChain, error)
- func (m *MockPersist) QueryAddresses(ctx context.Context, runner dbr.SessionRunner, v *Addresses) (*Addresses, error)
- func (m *MockPersist) QueryAssets(ctx context.Context, runner dbr.SessionRunner, v *Assets) (*Assets, error)
- func (m *MockPersist) QueryCvmAddresses(ctx context.Context, runner dbr.SessionRunner, v *CvmAddresses) (*CvmAddresses, error)
- func (m *MockPersist) QueryCvmBlocks(ctx context.Context, runner dbr.SessionRunner, v *CvmBlocks) (*CvmBlocks, error)
- func (m *MockPersist) QueryCvmTransactions(ctx context.Context, runner dbr.SessionRunner, v *CvmTransactions) (*CvmTransactions, error)
- func (m *MockPersist) QueryCvmTransactionsTxdata(ctx context.Context, runner dbr.SessionRunner, v *CvmTransactionsTxdata) (*CvmTransactionsTxdata, error)
- func (m *MockPersist) QueryCvmTransactionsTxdataTrace(ctx context.Context, runner dbr.SessionRunner, v *CvmTransactionsTxdataTrace) (*CvmTransactionsTxdataTrace, error)
- func (m *MockPersist) QueryKeyValueStore(ctx context.Context, runner dbr.SessionRunner, v *KeyValueStore) (*KeyValueStore, error)
- func (m *MockPersist) QueryOutputAddressAccumulateIn(ctx context.Context, runner dbr.SessionRunner, v *OutputAddressAccumulate) (*OutputAddressAccumulate, error)
- func (m *MockPersist) QueryOutputAddressAccumulateOut(ctx context.Context, runner dbr.SessionRunner, v *OutputAddressAccumulate) (*OutputAddressAccumulate, error)
- func (m *MockPersist) QueryOutputAddresses(ctx context.Context, runner dbr.SessionRunner, v *OutputAddresses) (*OutputAddresses, error)
- func (m *MockPersist) QueryOutputTxsAccumulate(ctx context.Context, runner dbr.SessionRunner, v *OutputTxsAccumulate) (*OutputTxsAccumulate, error)
- func (m *MockPersist) QueryOutputs(ctx context.Context, runner dbr.SessionRunner, v *Outputs) (*Outputs, error)
- func (m *MockPersist) QueryOutputsRedeeming(ctx context.Context, runner dbr.SessionRunner, v *OutputsRedeeming) (*OutputsRedeeming, error)
- func (m *MockPersist) QueryPvmBlocks(ctx context.Context, runner dbr.SessionRunner, v *PvmBlocks) (*PvmBlocks, error)
- func (m *MockPersist) QueryRewards(ctx context.Context, runner dbr.SessionRunner, v *Rewards) (*Rewards, error)
- func (m *MockPersist) QueryTransactions(ctx context.Context, runner dbr.SessionRunner, v *Transactions) (*Transactions, error)
- func (m *MockPersist) QueryTransactionsBlock(ctx context.Context, runner dbr.SessionRunner, v *TransactionsBlock) (*TransactionsBlock, error)
- func (m *MockPersist) QueryTransactionsEpoch(ctx context.Context, runner dbr.SessionRunner, v *TransactionsEpoch) (*TransactionsEpoch, error)
- func (m *MockPersist) QueryTransactionsRewardsOwners(ctx context.Context, runner dbr.SessionRunner, v *TransactionsRewardsOwners) (*TransactionsRewardsOwners, error)
- func (m *MockPersist) QueryTransactionsRewardsOwnersAddress(ctx context.Context, runner dbr.SessionRunner, ...) (*TransactionsRewardsOwnersAddress, error)
- func (m *MockPersist) QueryTransactionsRewardsOwnersOutputs(ctx context.Context, runner dbr.SessionRunner, ...) (*TransactionsRewardsOwnersOutputs, error)
- func (m *MockPersist) QueryTransactionsValidator(ctx context.Context, runner dbr.SessionRunner, v *TransactionsValidator) (*TransactionsValidator, error)
- func (m *MockPersist) QueryTxPool(ctx context.Context, runner dbr.SessionRunner, v *TxPool) (*TxPool, error)
- func (m *MockPersist) UpdateOutputAddressAccumulateInOutputsProcessed(ctx context.Context, runner dbr.SessionRunner, id string) error
- func (m *MockPersist) UpdateOutputAddresses(ctx context.Context, runner dbr.SessionRunner, v *OutputAddresses) error
- func (m *MockPersist) UpdateTxPoolStatus(ctx context.Context, runner dbr.SessionRunner, v *TxPool) error
- type OutputAddressAccumulate
- type OutputAddresses
- type OutputTxsAccumulate
- type Outputs
- type OutputsRedeeming
- type Persist
- type PvmBlocks
- type Rewards
- type Transactions
- type TransactionsBlock
- type TransactionsEpoch
- type TransactionsRewardsOwners
- type TransactionsRewardsOwnersAddress
- type TransactionsRewardsOwnersOutputs
- type TransactionsValidator
- type TxPool
- type WriterSinkExcludeDBDups
- func (s *WriterSinkExcludeDBDups) EmitComplete(job string, status health.CompletionStatus, nanos int64, kvs map[string]string)
- func (s *WriterSinkExcludeDBDups) EmitEvent(job string, event string, kvs map[string]string)
- func (s *WriterSinkExcludeDBDups) EmitEventErr(job string, event string, inputErr error, kvs map[string]string)
- func (s *WriterSinkExcludeDBDups) EmitGauge(job string, event string, value float64, kvs map[string]string)
- func (s *WriterSinkExcludeDBDups) EmitTiming(job string, event string, nanos int64, kvs map[string]string)
Constants ¶
View Source
const ( TableTransactions = "avm_transactions" TableOutputsRedeeming = "avm_outputs_redeeming" TableOutputs = "avm_outputs" TableAssets = "avm_assets" TableAddresses = "addresses" TableAddressChain = "address_chain" TableOutputAddresses = "avm_output_addresses" TableTransactionsEpochs = "transactions_epoch" TableCvmAddresses = "cvm_addresses" TableCvmBlocks = "cvm_blocks" TableCvmTransactions = "cvm_transactions" TableCvmTransactionsTxdata = "cvm_transactions_txdata" TablePvmBlocks = "pvm_blocks" TableRewards = "rewards" TableTransactionsValidator = "transactions_validator" TableTransactionsBlock = "transactions_block" TableAddressBech32 = "addresses_bech32" TableOutputAddressAccumulateOut = "output_addresses_accumulate_out" TableOutputAddressAccumulateIn = "output_addresses_accumulate_in" TableOutputTxsAccumulate = "output_txs_accumulate" TableAccumulateBalancesReceived = "accumulate_balances_received" TableAccumulateBalancesSent = "accumulate_balances_sent" TableAccumulateBalancesTransactions = "accumulate_balances_transactions" TableTransactionsRewardsOwners = "transactions_rewards_owners" TableTransactionsRewardsOwnersAddress = "transactions_rewards_owners_address" TableTransactionsRewardsOwnersOutputs = "transactions_rewards_owners_outputs" TableTxPool = "tx_pool" TableKeyValueStore = "key_value_store" TableCvmTransactionsTxdataTrace = "cvm_transactions_txdata_trace" )
View Source
const ( MetricProduceProcessedCountKey = "produce_records_processed" MetricProduceSuccessCountKey = "produce_records_success" MetricProduceFailureCountKey = "produce_records_failure" MetricConsumeProcessedCountKey = "consume_records_processed" MetricConsumeProcessMillisCounterKey = "consume_records_process_millis" MetricConsumeSuccessCountKey = "consume_records_success" MetricConsumeFailureCountKey = "consume_records_failure" )
Variables ¶
View Source
var LockSize = 5
View Source
var RowLimitValue = uint64(RowLimitValueBase)
View Source
var RowLimitValueBase = 5000
Functions ¶
func NewQuietStream ¶ added in v1.2.3
func NewRedisConn ¶
func NewRedisConn(opts *redis.Options) (*redis.Client, error)
func NewStreamDBDups ¶ added in v1.2.3
func RepeatForLock ¶ added in v1.2.0
Types ¶
type AccumulateBalancesAmount ¶ added in v1.2.0
type AccumulateBalancesAmount struct { ID string ChainID string AssetID string Address string TotalAmount string UtxoCount string UpdatedAt time.Time }
func (*AccumulateBalancesAmount) ComputeID ¶ added in v1.2.0
func (b *AccumulateBalancesAmount) ComputeID() error
type AccumulateBalancesTransactions ¶ added in v1.2.0
type AccumulateBalancesTransactions struct { ID string ChainID string AssetID string Address string TransactionCount string UpdatedAt time.Time }
func (*AccumulateBalancesTransactions) ComputeID ¶ added in v1.2.0
func (b *AccumulateBalancesTransactions) ComputeID() error
type AddressBech32 ¶ added in v1.2.0
type AddressChain ¶ added in v1.1.3
type BalanceAccumulatorManager ¶ added in v1.2.0
type BalanceAccumulatorManager struct {
// contains filtered or unexported fields
}
func NewBalanceAccumulatorManager ¶ added in v1.2.3
func NewBalanceAccumulatorManager(persist Persist, sc *Control) (*BalanceAccumulatorManager, error)
func (*BalanceAccumulatorManager) Close ¶ added in v1.2.3
func (a *BalanceAccumulatorManager) Close()
func (*BalanceAccumulatorManager) Run ¶ added in v1.2.0
func (a *BalanceAccumulatorManager) Run(sc *Control)
func (*BalanceAccumulatorManager) Start ¶ added in v1.2.3
func (a *BalanceAccumulatorManager) Start() error
type BalancerAccumulateHandler ¶ added in v1.2.0
type BalancerAccumulateHandler struct { }
type Connections ¶
type Connections struct {
// contains filtered or unexported fields
}
func NewConnections ¶
func NewConnectionsFromConfig ¶
func NewConnectionsFromConfig(conf cfg.Services, ro bool) (*Connections, error)
func NewDBFromConfig ¶ added in v1.2.0
func NewDBFromConfig(conf cfg.Services, ro bool) (*Connections, error)
func (Connections) Cache ¶
func (c Connections) Cache() cache.Cache
func (Connections) Close ¶ added in v1.1.0
func (c Connections) Close() error
func (Connections) DB ¶
func (c Connections) DB() *db.Conn
func (Connections) QuietStream ¶ added in v1.2.3
func (c Connections) QuietStream() *health.Stream
func (Connections) Redis ¶
func (c Connections) Redis() *redis.Client
func (Connections) Stream ¶
func (c Connections) Stream() *health.Stream
func (Connections) StreamDBDedup ¶ added in v1.2.3
func (c Connections) StreamDBDedup() *health.Stream
type Consumable ¶
type Consumer ¶
type Consumer interface { Name() string Bootstrap(context.Context, *Connections, Persist) error Consume(context.Context, *Connections, Consumable, Persist) error ConsumeConsensus(context.Context, *Connections, Consumable, Persist) error ParseJSON([]byte) ([]byte, error) }
Consumer takes in Consumables and adds them to the service's backend
type ConsumerCChain ¶ added in v1.2.0
type ConsumerCtx ¶
type ConsumerCtx struct {
// contains filtered or unexported fields
}
ConsumerCtx
func NewConsumerContext ¶
func (*ConsumerCtx) Ctx ¶
func (ic *ConsumerCtx) Ctx() context.Context
func (*ConsumerCtx) DB ¶
func (ic *ConsumerCtx) DB() dbr.SessionRunner
func (*ConsumerCtx) Job ¶
func (ic *ConsumerCtx) Job() *health.Job
func (*ConsumerCtx) Persist ¶ added in v1.1.3
func (ic *ConsumerCtx) Persist() Persist
func (*ConsumerCtx) Time ¶
func (ic *ConsumerCtx) Time() time.Time
type Control ¶ added in v1.1.3
type Control struct { Services cfg.Services Chains map[string]cfg.Chain `json:"chains"` Log logging.Logger Persist Persist Features map[string]struct{} BalanceAccumulatorManager *BalanceAccumulatorManager GenesisContainer *GenesisContainer IsAccumulateBalanceIndexer bool IsAccumulateBalanceReader bool IsDisableBootstrap bool IsAggregateCache bool }
func (*Control) DatabaseOnly ¶ added in v1.2.0
func (s *Control) DatabaseOnly() (*Connections, error)
func (*Control) DatabaseRO ¶ added in v1.1.3
func (s *Control) DatabaseRO() (*Connections, error)
func (*Control) InitConsumeMetrics ¶ added in v1.1.3
func (s *Control) InitConsumeMetrics()
func (*Control) InitProduceMetrics ¶ added in v1.1.3
func (s *Control) InitProduceMetrics()
type CvmAddresses ¶ added in v1.1.3
type CvmTransactions ¶ added in v1.1.3
type CvmTransactionsTxdata ¶ added in v1.2.0
type CvmTransactionsTxdataTrace ¶ added in v1.2.3
type GenesisContainer ¶ added in v1.2.0
type GenesisContainer struct { NetworkID uint32 XChainGenesisTx *platformvm.Tx XChainID ids.ID AvaxAssetID ids.ID GenesisBytes []byte }
func NewGenesisContainer ¶ added in v1.2.0
func NewGenesisContainer(networkID uint32) (*GenesisContainer, error)
type KeyValueStore ¶ added in v1.2.3
type MockPersist ¶ added in v1.1.3
type MockPersist struct { Transactions map[string]*Transactions Outputs map[string]*Outputs OutputsRedeeming map[string]*OutputsRedeeming CvmTransactions map[string]*CvmTransactions CvmTransactionsTxdata map[string]*CvmTransactionsTxdata CvmBlocks map[string]*CvmBlocks CvmAddresses map[string]*CvmAddresses TransactionsValidator map[string]*TransactionsValidator TransactionsBlock map[string]*TransactionsBlock Rewards map[string]*Rewards Addresses map[string]*Addresses AddressChain map[string]*AddressChain OutputAddresses map[string]*OutputAddresses Assets map[string]*Assets TransactionsEpoch map[string]*TransactionsEpoch PvmBlocks map[string]*PvmBlocks AddressBech32 map[string]*AddressBech32 OutputAddressAccumulateOut map[string]*OutputAddressAccumulate OutputAddressAccumulateIn map[string]*OutputAddressAccumulate OutputTxsAccumulate map[string]*OutputTxsAccumulate AccumulateBalancesReceived map[string]*AccumulateBalancesAmount AccumulateBalancesSent map[string]*AccumulateBalancesAmount AccumulateBalancesTransactions map[string]*AccumulateBalancesTransactions TransactionsRewardsOwnersAddress map[string]*TransactionsRewardsOwnersAddress TransactionsRewardsOwnersOutputs map[string]*TransactionsRewardsOwnersOutputs TransactionsRewardsOwners map[string]*TransactionsRewardsOwners TxPool map[string]*TxPool KeyValueStore map[string]*KeyValueStore CvmTransactionsTxdataTrace map[string]*CvmTransactionsTxdataTrace // contains filtered or unexported fields }
func NewPersistMock ¶ added in v1.1.3
func NewPersistMock() *MockPersist
func (*MockPersist) InsertAccumulateBalancesReceived ¶ added in v1.2.0
func (m *MockPersist) InsertAccumulateBalancesReceived(ctx context.Context, runner dbr.SessionRunner, v *AccumulateBalancesAmount) error
func (*MockPersist) InsertAccumulateBalancesSent ¶ added in v1.2.0
func (m *MockPersist) InsertAccumulateBalancesSent(ctx context.Context, runner dbr.SessionRunner, v *AccumulateBalancesAmount) error
func (*MockPersist) InsertAccumulateBalancesTransactions ¶ added in v1.2.0
func (m *MockPersist) InsertAccumulateBalancesTransactions(ctx context.Context, runner dbr.SessionRunner, v *AccumulateBalancesTransactions) error
func (*MockPersist) InsertAddressBech32 ¶ added in v1.2.0
func (m *MockPersist) InsertAddressBech32(ctx context.Context, runner dbr.SessionRunner, v *AddressBech32, b bool) error
func (*MockPersist) InsertAddressChain ¶ added in v1.1.3
func (m *MockPersist) InsertAddressChain(ctx context.Context, runner dbr.SessionRunner, v *AddressChain, b bool) error
func (*MockPersist) InsertAddresses ¶ added in v1.1.3
func (*MockPersist) InsertAssets ¶ added in v1.1.3
func (*MockPersist) InsertCvmAddresses ¶ added in v1.1.3
func (m *MockPersist) InsertCvmAddresses(ctx context.Context, runner dbr.SessionRunner, v *CvmAddresses, b bool) error
func (*MockPersist) InsertCvmBlocks ¶ added in v1.2.3
func (m *MockPersist) InsertCvmBlocks(ctx context.Context, runner dbr.SessionRunner, v *CvmBlocks) error
func (*MockPersist) InsertCvmTransactions ¶ added in v1.1.3
func (m *MockPersist) InsertCvmTransactions(ctx context.Context, runner dbr.SessionRunner, v *CvmTransactions, b bool) error
func (*MockPersist) InsertCvmTransactionsTxdata ¶ added in v1.2.0
func (m *MockPersist) InsertCvmTransactionsTxdata(ctx context.Context, runner dbr.SessionRunner, v *CvmTransactionsTxdata, b bool) error
func (*MockPersist) InsertCvmTransactionsTxdataTrace ¶ added in v1.2.3
func (m *MockPersist) InsertCvmTransactionsTxdataTrace(ctx context.Context, runner dbr.SessionRunner, v *CvmTransactionsTxdataTrace, _ bool) error
func (*MockPersist) InsertKeyValueStore ¶ added in v1.2.3
func (m *MockPersist) InsertKeyValueStore(ctx context.Context, runner dbr.SessionRunner, v *KeyValueStore) error
func (*MockPersist) InsertOutputAddressAccumulateIn ¶ added in v1.2.0
func (m *MockPersist) InsertOutputAddressAccumulateIn(ctx context.Context, runner dbr.SessionRunner, v *OutputAddressAccumulate, _ bool) error
func (*MockPersist) InsertOutputAddressAccumulateOut ¶ added in v1.2.0
func (m *MockPersist) InsertOutputAddressAccumulateOut(ctx context.Context, runner dbr.SessionRunner, v *OutputAddressAccumulate, _ bool) error
func (*MockPersist) InsertOutputAddresses ¶ added in v1.1.3
func (m *MockPersist) InsertOutputAddresses(ctx context.Context, runner dbr.SessionRunner, v *OutputAddresses, b bool) error
func (*MockPersist) InsertOutputTxsAccumulate ¶ added in v1.2.0
func (m *MockPersist) InsertOutputTxsAccumulate(ctx context.Context, runner dbr.SessionRunner, v *OutputTxsAccumulate) error
func (*MockPersist) InsertOutputs ¶ added in v1.1.3
func (*MockPersist) InsertOutputsRedeeming ¶ added in v1.1.3
func (m *MockPersist) InsertOutputsRedeeming(ctx context.Context, runner dbr.SessionRunner, v *OutputsRedeeming, b bool) error
func (*MockPersist) InsertPvmBlocks ¶ added in v1.1.3
func (*MockPersist) InsertRewards ¶ added in v1.1.3
func (*MockPersist) InsertTransactions ¶ added in v1.2.0
func (m *MockPersist) InsertTransactions(ctx context.Context, runner dbr.SessionRunner, v *Transactions, b bool) error
func (*MockPersist) InsertTransactionsBlock ¶ added in v1.1.3
func (m *MockPersist) InsertTransactionsBlock(ctx context.Context, runner dbr.SessionRunner, v *TransactionsBlock, b bool) error
func (*MockPersist) InsertTransactionsEpoch ¶ added in v1.1.3
func (m *MockPersist) InsertTransactionsEpoch(ctx context.Context, runner dbr.SessionRunner, v *TransactionsEpoch, b bool) error
func (*MockPersist) InsertTransactionsRewardsOwners ¶ added in v1.2.3
func (m *MockPersist) InsertTransactionsRewardsOwners(ctx context.Context, runner dbr.SessionRunner, v *TransactionsRewardsOwners, b bool) error
func (*MockPersist) InsertTransactionsRewardsOwnersAddress ¶ added in v1.2.3
func (m *MockPersist) InsertTransactionsRewardsOwnersAddress(ctx context.Context, runner dbr.SessionRunner, v *TransactionsRewardsOwnersAddress, b bool) error
func (*MockPersist) InsertTransactionsRewardsOwnersOutputs ¶ added in v1.2.3
func (m *MockPersist) InsertTransactionsRewardsOwnersOutputs(ctx context.Context, runner dbr.SessionRunner, v *TransactionsRewardsOwnersOutputs, b bool) error
func (*MockPersist) InsertTransactionsValidator ¶ added in v1.1.3
func (m *MockPersist) InsertTransactionsValidator(ctx context.Context, runner dbr.SessionRunner, v *TransactionsValidator, b bool) error
func (*MockPersist) InsertTxPool ¶ added in v1.2.3
func (m *MockPersist) InsertTxPool(ctx context.Context, runner dbr.SessionRunner, v *TxPool) error
func (*MockPersist) QueryAccumulateBalancesReceived ¶ added in v1.2.0
func (m *MockPersist) QueryAccumulateBalancesReceived(ctx context.Context, runner dbr.SessionRunner, v *AccumulateBalancesAmount) (*AccumulateBalancesAmount, error)
func (*MockPersist) QueryAccumulateBalancesSent ¶ added in v1.2.0
func (m *MockPersist) QueryAccumulateBalancesSent(ctx context.Context, runner dbr.SessionRunner, v *AccumulateBalancesAmount) (*AccumulateBalancesAmount, error)
func (*MockPersist) QueryAccumulateBalancesTransactions ¶ added in v1.2.0
func (m *MockPersist) QueryAccumulateBalancesTransactions(ctx context.Context, runner dbr.SessionRunner, v *AccumulateBalancesTransactions) (*AccumulateBalancesTransactions, error)
func (*MockPersist) QueryAddressBech32 ¶ added in v1.2.0
func (m *MockPersist) QueryAddressBech32(ctx context.Context, runner dbr.SessionRunner, v *AddressBech32) (*AddressBech32, error)
func (*MockPersist) QueryAddressChain ¶ added in v1.1.3
func (m *MockPersist) QueryAddressChain(ctx context.Context, runner dbr.SessionRunner, v *AddressChain) (*AddressChain, error)
func (*MockPersist) QueryAddresses ¶ added in v1.1.3
func (*MockPersist) QueryAssets ¶ added in v1.1.3
func (*MockPersist) QueryCvmAddresses ¶ added in v1.1.3
func (m *MockPersist) QueryCvmAddresses(ctx context.Context, runner dbr.SessionRunner, v *CvmAddresses) (*CvmAddresses, error)
func (*MockPersist) QueryCvmBlocks ¶ added in v1.2.3
func (*MockPersist) QueryCvmTransactions ¶ added in v1.1.3
func (m *MockPersist) QueryCvmTransactions(ctx context.Context, runner dbr.SessionRunner, v *CvmTransactions) (*CvmTransactions, error)
func (*MockPersist) QueryCvmTransactionsTxdata ¶ added in v1.2.0
func (m *MockPersist) QueryCvmTransactionsTxdata(ctx context.Context, runner dbr.SessionRunner, v *CvmTransactionsTxdata) (*CvmTransactionsTxdata, error)
func (*MockPersist) QueryCvmTransactionsTxdataTrace ¶ added in v1.2.3
func (m *MockPersist) QueryCvmTransactionsTxdataTrace(ctx context.Context, runner dbr.SessionRunner, v *CvmTransactionsTxdataTrace) (*CvmTransactionsTxdataTrace, error)
func (*MockPersist) QueryKeyValueStore ¶ added in v1.2.3
func (m *MockPersist) QueryKeyValueStore(ctx context.Context, runner dbr.SessionRunner, v *KeyValueStore) (*KeyValueStore, error)
func (*MockPersist) QueryOutputAddressAccumulateIn ¶ added in v1.2.0
func (m *MockPersist) QueryOutputAddressAccumulateIn(ctx context.Context, runner dbr.SessionRunner, v *OutputAddressAccumulate) (*OutputAddressAccumulate, error)
func (*MockPersist) QueryOutputAddressAccumulateOut ¶ added in v1.2.0
func (m *MockPersist) QueryOutputAddressAccumulateOut(ctx context.Context, runner dbr.SessionRunner, v *OutputAddressAccumulate) (*OutputAddressAccumulate, error)
func (*MockPersist) QueryOutputAddresses ¶ added in v1.1.3
func (m *MockPersist) QueryOutputAddresses(ctx context.Context, runner dbr.SessionRunner, v *OutputAddresses) (*OutputAddresses, error)
func (*MockPersist) QueryOutputTxsAccumulate ¶ added in v1.2.0
func (m *MockPersist) QueryOutputTxsAccumulate(ctx context.Context, runner dbr.SessionRunner, v *OutputTxsAccumulate) (*OutputTxsAccumulate, error)
func (*MockPersist) QueryOutputs ¶ added in v1.1.3
func (*MockPersist) QueryOutputsRedeeming ¶ added in v1.1.3
func (m *MockPersist) QueryOutputsRedeeming(ctx context.Context, runner dbr.SessionRunner, v *OutputsRedeeming) (*OutputsRedeeming, error)
func (*MockPersist) QueryPvmBlocks ¶ added in v1.1.3
func (*MockPersist) QueryRewards ¶ added in v1.1.3
func (*MockPersist) QueryTransactions ¶ added in v1.1.3
func (m *MockPersist) QueryTransactions(ctx context.Context, runner dbr.SessionRunner, v *Transactions) (*Transactions, error)
func (*MockPersist) QueryTransactionsBlock ¶ added in v1.1.3
func (m *MockPersist) QueryTransactionsBlock(ctx context.Context, runner dbr.SessionRunner, v *TransactionsBlock) (*TransactionsBlock, error)
func (*MockPersist) QueryTransactionsEpoch ¶ added in v1.1.3
func (m *MockPersist) QueryTransactionsEpoch(ctx context.Context, runner dbr.SessionRunner, v *TransactionsEpoch) (*TransactionsEpoch, error)
func (*MockPersist) QueryTransactionsRewardsOwners ¶ added in v1.2.3
func (m *MockPersist) QueryTransactionsRewardsOwners(ctx context.Context, runner dbr.SessionRunner, v *TransactionsRewardsOwners) (*TransactionsRewardsOwners, error)
func (*MockPersist) QueryTransactionsRewardsOwnersAddress ¶ added in v1.2.3
func (m *MockPersist) QueryTransactionsRewardsOwnersAddress(ctx context.Context, runner dbr.SessionRunner, v *TransactionsRewardsOwnersAddress) (*TransactionsRewardsOwnersAddress, error)
func (*MockPersist) QueryTransactionsRewardsOwnersOutputs ¶ added in v1.2.3
func (m *MockPersist) QueryTransactionsRewardsOwnersOutputs(ctx context.Context, runner dbr.SessionRunner, v *TransactionsRewardsOwnersOutputs) (*TransactionsRewardsOwnersOutputs, error)
func (*MockPersist) QueryTransactionsValidator ¶ added in v1.1.3
func (m *MockPersist) QueryTransactionsValidator(ctx context.Context, runner dbr.SessionRunner, v *TransactionsValidator) (*TransactionsValidator, error)
func (*MockPersist) QueryTxPool ¶ added in v1.2.3
func (*MockPersist) UpdateOutputAddressAccumulateInOutputsProcessed ¶ added in v1.2.3
func (m *MockPersist) UpdateOutputAddressAccumulateInOutputsProcessed(ctx context.Context, runner dbr.SessionRunner, id string) error
func (*MockPersist) UpdateOutputAddresses ¶ added in v1.1.3
func (m *MockPersist) UpdateOutputAddresses(ctx context.Context, runner dbr.SessionRunner, v *OutputAddresses) error
func (*MockPersist) UpdateTxPoolStatus ¶ added in v1.2.3
func (m *MockPersist) UpdateTxPoolStatus(ctx context.Context, runner dbr.SessionRunner, v *TxPool) error
type OutputAddressAccumulate ¶ added in v1.2.0
type OutputAddressAccumulate struct { ID string OutputID string Address string Processed int OutputProcessed int TransactionID string OutputIndex uint32 CreatedAt time.Time }
func (*OutputAddressAccumulate) ComputeID ¶ added in v1.2.0
func (b *OutputAddressAccumulate) ComputeID() error
type OutputAddresses ¶ added in v1.1.3
type OutputTxsAccumulate ¶ added in v1.2.0
type OutputTxsAccumulate struct { ID string ChainID string AssetID string Address string TransactionID string Processed int CreatedAt time.Time }
func (*OutputTxsAccumulate) ComputeID ¶ added in v1.2.0
func (b *OutputTxsAccumulate) ComputeID() error
type Outputs ¶ added in v1.1.3
type Outputs struct { ID string ChainID string TransactionID string OutputIndex uint32 OutputType models.OutputType AssetID string Amount uint64 Locktime uint64 Threshold uint32 GroupID uint32 Payload []byte StakeLocktime uint64 Stake bool Frozen bool Stakeableout bool Genesisutxo bool CreatedAt time.Time }
type OutputsRedeeming ¶ added in v1.1.3
type Persist ¶ added in v1.1.3
type Persist interface { QueryTransactions( context.Context, dbr.SessionRunner, *Transactions, ) (*Transactions, error) InsertTransactions( context.Context, dbr.SessionRunner, *Transactions, bool, ) error QueryOutputsRedeeming( context.Context, dbr.SessionRunner, *OutputsRedeeming, ) (*OutputsRedeeming, error) InsertOutputsRedeeming( context.Context, dbr.SessionRunner, *OutputsRedeeming, bool, ) error QueryOutputs( context.Context, dbr.SessionRunner, *Outputs, ) (*Outputs, error) InsertOutputs( context.Context, dbr.SessionRunner, *Outputs, bool, ) error QueryAssets( context.Context, dbr.SessionRunner, *Assets, ) (*Assets, error) InsertAssets( context.Context, dbr.SessionRunner, *Assets, bool, ) error QueryAddresses( context.Context, dbr.SessionRunner, *Addresses, ) (*Addresses, error) InsertAddresses( context.Context, dbr.SessionRunner, *Addresses, bool, ) error QueryAddressChain( context.Context, dbr.SessionRunner, *AddressChain, ) (*AddressChain, error) InsertAddressChain( context.Context, dbr.SessionRunner, *AddressChain, bool, ) error QueryOutputAddresses( context.Context, dbr.SessionRunner, *OutputAddresses, ) (*OutputAddresses, error) InsertOutputAddresses( context.Context, dbr.SessionRunner, *OutputAddresses, bool, ) error UpdateOutputAddresses( context.Context, dbr.SessionRunner, *OutputAddresses, ) error QueryTransactionsEpoch( context.Context, dbr.SessionRunner, *TransactionsEpoch, ) (*TransactionsEpoch, error) InsertTransactionsEpoch( context.Context, dbr.SessionRunner, *TransactionsEpoch, bool, ) error QueryCvmBlocks( context.Context, dbr.SessionRunner, *CvmBlocks, ) (*CvmBlocks, error) InsertCvmBlocks( context.Context, dbr.SessionRunner, *CvmBlocks, ) error QueryCvmAddresses( context.Context, dbr.SessionRunner, *CvmAddresses, ) (*CvmAddresses, error) InsertCvmAddresses( context.Context, dbr.SessionRunner, *CvmAddresses, bool, ) error QueryCvmTransactions( context.Context, dbr.SessionRunner, *CvmTransactions, ) (*CvmTransactions, error) InsertCvmTransactions( context.Context, dbr.SessionRunner, *CvmTransactions, bool, ) error QueryCvmTransactionsTxdata( context.Context, dbr.SessionRunner, *CvmTransactionsTxdata, ) (*CvmTransactionsTxdata, error) InsertCvmTransactionsTxdata( context.Context, dbr.SessionRunner, *CvmTransactionsTxdata, bool, ) error QueryPvmBlocks( context.Context, dbr.SessionRunner, *PvmBlocks, ) (*PvmBlocks, error) InsertPvmBlocks( context.Context, dbr.SessionRunner, *PvmBlocks, bool, ) error QueryRewards( context.Context, dbr.SessionRunner, *Rewards, ) (*Rewards, error) InsertRewards( context.Context, dbr.SessionRunner, *Rewards, bool, ) error QueryTransactionsValidator( context.Context, dbr.SessionRunner, *TransactionsValidator, ) (*TransactionsValidator, error) InsertTransactionsValidator( context.Context, dbr.SessionRunner, *TransactionsValidator, bool, ) error QueryTransactionsBlock( context.Context, dbr.SessionRunner, *TransactionsBlock, ) (*TransactionsBlock, error) InsertTransactionsBlock( context.Context, dbr.SessionRunner, *TransactionsBlock, bool, ) error QueryAddressBech32( context.Context, dbr.SessionRunner, *AddressBech32, ) (*AddressBech32, error) InsertAddressBech32( context.Context, dbr.SessionRunner, *AddressBech32, bool, ) error QueryOutputAddressAccumulateOut( context.Context, dbr.SessionRunner, *OutputAddressAccumulate, ) (*OutputAddressAccumulate, error) InsertOutputAddressAccumulateOut( context.Context, dbr.SessionRunner, *OutputAddressAccumulate, bool, ) error QueryOutputAddressAccumulateIn( context.Context, dbr.SessionRunner, *OutputAddressAccumulate, ) (*OutputAddressAccumulate, error) InsertOutputAddressAccumulateIn( context.Context, dbr.SessionRunner, *OutputAddressAccumulate, bool, ) error UpdateOutputAddressAccumulateInOutputsProcessed( context.Context, dbr.SessionRunner, string, ) error QueryOutputTxsAccumulate( context.Context, dbr.SessionRunner, *OutputTxsAccumulate, ) (*OutputTxsAccumulate, error) InsertOutputTxsAccumulate( context.Context, dbr.SessionRunner, *OutputTxsAccumulate, ) error QueryAccumulateBalancesReceived( context.Context, dbr.SessionRunner, *AccumulateBalancesAmount, ) (*AccumulateBalancesAmount, error) InsertAccumulateBalancesReceived( context.Context, dbr.SessionRunner, *AccumulateBalancesAmount, ) error QueryAccumulateBalancesSent( context.Context, dbr.SessionRunner, *AccumulateBalancesAmount, ) (*AccumulateBalancesAmount, error) InsertAccumulateBalancesSent( context.Context, dbr.SessionRunner, *AccumulateBalancesAmount, ) error QueryAccumulateBalancesTransactions( context.Context, dbr.SessionRunner, *AccumulateBalancesTransactions, ) (*AccumulateBalancesTransactions, error) InsertAccumulateBalancesTransactions( context.Context, dbr.SessionRunner, *AccumulateBalancesTransactions, ) error QueryTransactionsRewardsOwnersAddress( context.Context, dbr.SessionRunner, *TransactionsRewardsOwnersAddress, ) (*TransactionsRewardsOwnersAddress, error) InsertTransactionsRewardsOwnersAddress( context.Context, dbr.SessionRunner, *TransactionsRewardsOwnersAddress, bool, ) error QueryTransactionsRewardsOwnersOutputs( context.Context, dbr.SessionRunner, *TransactionsRewardsOwnersOutputs, ) (*TransactionsRewardsOwnersOutputs, error) InsertTransactionsRewardsOwnersOutputs( context.Context, dbr.SessionRunner, *TransactionsRewardsOwnersOutputs, bool, ) error QueryTransactionsRewardsOwners( context.Context, dbr.SessionRunner, *TransactionsRewardsOwners, ) (*TransactionsRewardsOwners, error) InsertTransactionsRewardsOwners( context.Context, dbr.SessionRunner, *TransactionsRewardsOwners, bool, ) error QueryTxPool( context.Context, dbr.SessionRunner, *TxPool, ) (*TxPool, error) InsertTxPool( context.Context, dbr.SessionRunner, *TxPool, ) error UpdateTxPoolStatus( context.Context, dbr.SessionRunner, *TxPool, ) error QueryKeyValueStore( context.Context, dbr.SessionRunner, *KeyValueStore, ) (*KeyValueStore, error) InsertKeyValueStore( context.Context, dbr.SessionRunner, *KeyValueStore, ) error QueryCvmTransactionsTxdataTrace( context.Context, dbr.SessionRunner, *CvmTransactionsTxdataTrace, ) (*CvmTransactionsTxdataTrace, error) InsertCvmTransactionsTxdataTrace( context.Context, dbr.SessionRunner, *CvmTransactionsTxdataTrace, bool, ) error }
func NewPersist ¶ added in v1.1.3
func NewPersist() Persist
type Transactions ¶ added in v1.1.3
type TransactionsBlock ¶ added in v1.1.3
type TransactionsEpoch ¶ added in v1.1.3
type TransactionsRewardsOwners ¶ added in v1.2.3
type TransactionsRewardsOwnersAddress ¶ added in v1.2.3
type TransactionsRewardsOwnersOutputs ¶ added in v1.2.3
type TransactionsValidator ¶ added in v1.1.3
type TxPool ¶ added in v1.2.3
type WriterSinkExcludeDBDups ¶ added in v1.2.3
func (*WriterSinkExcludeDBDups) EmitComplete ¶ added in v1.2.3
func (s *WriterSinkExcludeDBDups) EmitComplete(job string, status health.CompletionStatus, nanos int64, kvs map[string]string)
func (*WriterSinkExcludeDBDups) EmitEvent ¶ added in v1.2.3
func (s *WriterSinkExcludeDBDups) EmitEvent(job string, event string, kvs map[string]string)
func (*WriterSinkExcludeDBDups) EmitEventErr ¶ added in v1.2.3
func (*WriterSinkExcludeDBDups) EmitTiming ¶ added in v1.2.3
Source Files ¶
Click to show internal directories.
Click to hide internal directories.