vow_file

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVowFileConfig

func GetVowFileConfig() transformer.EventTransformerConfig

Types

type VowFileConverter

type VowFileConverter struct{}

func (VowFileConverter) ToModels

func (VowFileConverter) ToModels(ethLogs []types.Log) ([]interface{}, error)

type VowFileModel

type VowFileModel struct {
	What             string
	Data             string
	LogIndex         uint   `db:"log_idx"`
	TransactionIndex uint   `db:"tx_idx"`
	Raw              []byte `db:"raw_log"`
}

type VowFileRepository

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

func (VowFileRepository) Create

func (repo VowFileRepository) Create(headerID int64, models []interface{}) error

func (VowFileRepository) MarkHeaderChecked

func (repo VowFileRepository) MarkHeaderChecked(headerID int64) error

func (VowFileRepository) MissingHeaders

func (repo VowFileRepository) MissingHeaders(startingBlockNumber, endingBlockNumber int64) ([]core.Header, error)

func (VowFileRepository) RecheckHeaders

func (repo VowFileRepository) RecheckHeaders(startingBlockNumber, endingBlockNumber int64) ([]core.Header, error)

func (*VowFileRepository) SetDB

func (repo *VowFileRepository) SetDB(db *postgres.DB)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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