bite

package
v0.2.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BiteConverter

type BiteConverter struct{}

func (BiteConverter) ToEntities

func (BiteConverter) ToEntities(contractAbi string, logs []core.HeaderSyncLog) ([]interface{}, error)

func (BiteConverter) ToModels

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

type BiteEntity

type BiteEntity struct {
	Ilk      [32]byte
	Urn      common.Address
	Ink      *big.Int
	Art      *big.Int
	Tab      *big.Int
	Flip     common.Address
	Id       *big.Int
	HeaderID int64
	LogID    int64
}

type BiteModel

type BiteModel struct {
	Ilk      string
	Urn      string `db:"urn_id"`
	Ink      string
	Art      string
	Tab      string
	Flip     string
	Id       string `db:"bite_identifier"`
	HeaderID int64
	LogID    int64 `db:"log_id"`
}

type BiteRepository

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

func (BiteRepository) Create

func (repository BiteRepository) Create(models []interface{}) error

func (*BiteRepository) SetDB

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