vow_flog

package
v0.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVowFlogConfig

func GetVowFlogConfig() shared_t.EventTransformerConfig

Types

type VowFlogConverter

type VowFlogConverter struct{}

func (VowFlogConverter) ToModels

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

type VowFlogModel

type VowFlogModel struct {
	Era              string
	LogIndex         uint   `db:"log_idx"`
	TransactionIndex uint   `db:"tx_idx"`
	Raw              []byte `db:"raw_log"`
}

type VowFlogRepository

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

func (VowFlogRepository) Create

func (repository VowFlogRepository) Create(headerID int64, models []interface{}) error

func (VowFlogRepository) MarkHeaderChecked

func (repository VowFlogRepository) MarkHeaderChecked(headerID int64) error

func (VowFlogRepository) MissingHeaders

func (repository VowFlogRepository) MissingHeaders(startingBlockNumber, endingBlockNumber int64) ([]core.Header, error)

func (VowFlogRepository) RecheckHeaders

func (repository VowFlogRepository) RecheckHeaders(startingBlockNumber, endingBlockNumber int64) ([]core.Header, error)

func (*VowFlogRepository) SetDB

func (repository *VowFlogRepository) 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