Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
func NewController ¶
func NewController(config *config.Config, startBlockHeight, stopBlockHeight uint64, replaceExisting bool) (self *Controller, err error)
Main class that orchestrates main syncer functionalities Setups listening and storing interactions
type Parser ¶
Gets contract's source and init state
func (*Parser) WithInputChannel ¶
func (*Parser) WithMonitor ¶
func (self *Parser) WithMonitor(monitor monitoring.Monitor) *Parser
type Payload ¶
type Payload struct {
BlockHeight uint64
BlockHash arweave.Base64String
BlockTimestamp uint64
Interactions []*model.Interaction
}
type Store ¶
type Store struct {
*task.Processor[*Payload, *model.Interaction]
DB *gorm.DB
// contains filtered or unexported fields
}
Store handles saving data to the database in na robust way. - groups incoming Interactions into batches, - ensures data isn't stuck even if a batch isn't big enough
func (*Store) WithInputChannel ¶
func (*Store) WithMonitor ¶
func (self *Store) WithMonitor(v monitoring.Monitor) *Store
func (*Store) WithReplaceExistingData ¶ added in v0.2.16
Click to show internal directories.
Click to hide internal directories.