flap_kick

package
v0.2.11-docker Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const InsertFlapKickQuery = `` /* 300-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type FlapKickConverter

type FlapKickConverter struct{}

func (FlapKickConverter) ToEntities

func (FlapKickConverter) ToEntities(contractAbi string, ethLogs []types.Log) ([]interface{}, error)

func (FlapKickConverter) ToModels

func (FlapKickConverter) ToModels(entities []interface{}) ([]interface{}, error)

type FlapKickEntity

type FlapKickEntity struct {
	Id               *big.Int
	Lot              *big.Int
	Bid              *big.Int
	Raw              types.Log
	TransactionIndex uint
	LogIndex         uint
}

type FlapKickModel

type FlapKickModel struct {
	BidId            string `db:"bid_id"`
	Lot              string
	Bid              string
	ContractAddress  string `db:"contract_address"`
	LogIndex         uint   `db:"log_idx"`
	TransactionIndex uint   `db:"tx_idx"`
	Raw              []byte `db:"raw_log"`
}

type FlapKickRepository

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

func (*FlapKickRepository) Create

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

func (*FlapKickRepository) MarkHeaderChecked

func (repository *FlapKickRepository) MarkHeaderChecked(headerID int64) error

func (*FlapKickRepository) SetDB

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