indexing

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: Apache-2.0, MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDealFetcherTask

func NewDealFetcherTask(client *client.Client) pipeline.Task

NewDealFetcherTask creates the task

func NewEpochFetcherTask

func NewEpochFetcherTask(client *client.Client) pipeline.Task

NewEpochFetcherTask creates the task

func NewEpochParserTask

func NewEpochParserTask() pipeline.Task

NewEpochParserTask creates the task

func NewEpochPersistorTask

func NewEpochPersistorTask(store *store.Store) pipeline.Task

NewEpochPersistorTask creates the task

func NewEventPersistorTask

func NewEventPersistorTask(store *store.Store) pipeline.Task

NewEventPersistorTask creates the task

func NewEventSequencerTask

func NewEventSequencerTask(store *store.Store) pipeline.Task

NewEventSequencerTask creates the task

func NewMinerFetcherTask

func NewMinerFetcherTask(client *client.Client) pipeline.Task

NewMinerFetcherTask creates the task

func NewMinerParserTask

func NewMinerParserTask() pipeline.Task

NewMinerParserTask creates the task

func NewMinerPersistorTask

func NewMinerPersistorTask(store *store.Store) pipeline.Task

NewMinerPersistorTask creates the task

func NewSink

func NewSink() pipeline.Sink

NewSink creates a pipeline sink

func NewSource

func NewSource(cfg *config.Config, client *client.Client, store *store.Store) (pipeline.Source, error)

NewSource creates a pipeline source

func NewTransactionFetcherTask

func NewTransactionFetcherTask(client *client.Client) pipeline.Task

NewTransactionFetcherTask creates the task

func NewTransactionParserTask

func NewTransactionParserTask() pipeline.Task

NewTransactionParserTask creates the task

func NewTransactionPersistorTask

func NewTransactionPersistorTask(store *store.Store) pipeline.Task

NewTransactionPersistorTask creates the task

func StartPipeline

func StartPipeline(cfg *config.Config, client *client.Client, store *store.Store) error

StartPipeline runs the indexing pipeline

Types

type DealFetcherTask

type DealFetcherTask struct {
	// contains filtered or unexported fields
}

DealFetcherTask fetches raw deal data

func (*DealFetcherTask) GetName

func (t *DealFetcherTask) GetName() string

GetName returns the task name

func (*DealFetcherTask) Run

Run performs the task

type EpochFetcherTask

type EpochFetcherTask struct {
	// contains filtered or unexported fields
}

EpochFetcherTask fetches raw epoch data

func (*EpochFetcherTask) GetName

func (t *EpochFetcherTask) GetName() string

GetName returns the task name

func (*EpochFetcherTask) Run

Run performs the task

type EpochParserTask

type EpochParserTask struct{}

EpochParserTask transforms raw epoch data

func (*EpochParserTask) GetName

func (t *EpochParserTask) GetName() string

GetName returns the task name

func (*EpochParserTask) Run

Run performs the task

type EpochPersistorTask

type EpochPersistorTask struct {
	// contains filtered or unexported fields
}

EpochPersistorTask stores epochs in the database

func (*EpochPersistorTask) GetName

func (t *EpochPersistorTask) GetName() string

GetName returns the task name

func (*EpochPersistorTask) Run

Run performs the task

type EventPersistorTask

type EventPersistorTask struct {
	// contains filtered or unexported fields
}

EventPersistorTask stores events in the database

func (*EventPersistorTask) GetName

func (t *EventPersistorTask) GetName() string

GetName returns the task name

func (*EventPersistorTask) Run

Run performs the task

type EventSequencerTask

type EventSequencerTask struct {
	// contains filtered or unexported fields
}

EventSequencerTask creates network events

func (*EventSequencerTask) GetName

func (t *EventSequencerTask) GetName() string

GetName returns the task name

func (*EventSequencerTask) Run

Run performs the task

type MinerFetcherTask

type MinerFetcherTask struct {
	// contains filtered or unexported fields
}

MinerFetcherTask fetches raw miner data

func (*MinerFetcherTask) GetName

func (t *MinerFetcherTask) GetName() string

GetName returns the task name

func (*MinerFetcherTask) Run

Run performs the task

type MinerParserTask

type MinerParserTask struct{}

MinerParserTask transforms raw miner data

func (*MinerParserTask) GetName

func (t *MinerParserTask) GetName() string

GetName returns the task name

func (*MinerParserTask) Run

Run performs the task

type MinerPersistorTask

type MinerPersistorTask struct {
	// contains filtered or unexported fields
}

MinerPersistorTask stores miners in the database

func (*MinerPersistorTask) GetName

func (t *MinerPersistorTask) GetName() string

GetName returns the task name

func (*MinerPersistorTask) Run

Run performs the task

type PayloadFactory

type PayloadFactory struct{}

PayloadFactory creates payloads

func NewPayloadFactory

func NewPayloadFactory() *PayloadFactory

NewPayloadFactory creates a payload factory

func (*PayloadFactory) GetPayload

func (pf *PayloadFactory) GetPayload(height int64) pipeline.Payload

GetPayload returns a payload for a given height

type TransactionFetcherTask

type TransactionFetcherTask struct {
	// contains filtered or unexported fields
}

TransactionFetcherTask fetches raw transaction data

func (*TransactionFetcherTask) GetName

func (t *TransactionFetcherTask) GetName() string

GetName returns the task name

func (*TransactionFetcherTask) Run

Run performs the task

type TransactionParserTask

type TransactionParserTask struct{}

TransactionParserTask transforms raw transaction data

func (*TransactionParserTask) GetName

func (t *TransactionParserTask) GetName() string

GetName returns the task name

func (*TransactionParserTask) Run

Run performs the task

type TransactionPersistorTask

type TransactionPersistorTask struct {
	// contains filtered or unexported fields
}

TransactionPersistorTask stores transactions in the database

func (*TransactionPersistorTask) GetName

func (t *TransactionPersistorTask) GetName() string

GetName returns the task name

func (*TransactionPersistorTask) Run

Run performs the task

Jump to

Keyboard shortcuts

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