pipeline

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: Apache-2.0, MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const BeginTransactionTaskName = "BeginTransaction"

BeginTransactionTaskName represents the name of the task

View Source
const CommitTransactionTaskName = "CommitTransaction"

CommitTransactionTaskName represents the name of the task

View Source
const DealFetcherTaskName = "DealFetcher"

DealFetcherTaskName represents the name of the task

View Source
const EpochFetcherTaskName = "EpochFetcher"

EpochFetcherTaskName represents the name of the task

View Source
const EpochParserTaskName = "EpochParser"

EpochParserTaskName represents the name of the task

View Source
const EpochPersistorTaskName = "EpochPersistor"

EpochPersistorTaskName represents the name of the task

View Source
const EventPersistorTaskName = "EventPersistor"

EventPersistorTaskName represents the name of the task

View Source
const EventSequencerTaskName = "EventSequencer"

EventSequencerTaskName represents the name of the task

View Source
const MinerFetcherTaskName = "MinerFetcher"

MinerFetcherTaskName represents the name of the task

View Source
const MinerParserTaskName = "MinerParser"

MinerParserTaskName represents the name of the task

View Source
const MinerPersistorTaskName = "MinerPersistor"

MinerPersistorTaskName represents the name of the task

View Source
const TransactionFetcherTaskName = "TransactionFetcher"

TransactionFetcherTaskName represents the name of the task

View Source
const TransactionParserTaskName = "TransactionParser"

TransactionParserTaskName represents the name of the task

View Source
const TransactionPersistorTaskName = "TransactionPersistor"

TransactionPersistorTaskName represents the name of the task

Variables

This section is empty.

Functions

func NewBeginTransactionTask

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

NewBeginTransactionTask creates the task

func NewCommitTransactionTask

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

NewCommitTransactionTask creates the task

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(store *store.Store) 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 BeginTransactionTask

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

BeginTransactionTask starts a database transaction

func (*BeginTransactionTask) GetName

func (t *BeginTransactionTask) GetName() string

GetName returns the task name

func (*BeginTransactionTask) Run

Run performs the task

type CommitTransactionTask

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

CommitTransactionTask commits the database transaction

func (*CommitTransactionTask) GetName

func (t *CommitTransactionTask) GetName() string

GetName returns the task name

func (*CommitTransactionTask) Run

Run performs the task

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 {
	// contains filtered or unexported fields
}

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 {
	// contains filtered or unexported fields
}

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 {
	// contains filtered or unexported fields
}

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