base

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 GetJugFileBaseConfig

func GetJugFileBaseConfig() shared_t.EventTransformerConfig

Types

type JugFileBaseConverter

type JugFileBaseConverter struct{}

func (JugFileBaseConverter) ToModels

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

type JugFileBaseModel

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

type JugFileBaseRepository

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

func (JugFileBaseRepository) Create

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

func (JugFileBaseRepository) MarkHeaderChecked

func (repository JugFileBaseRepository) MarkHeaderChecked(headerID int64) error

func (JugFileBaseRepository) MissingHeaders

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

func (JugFileBaseRepository) RecheckHeaders

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

func (*JugFileBaseRepository) SetDB

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