Documentation ¶
Index ¶
- func GetBiteConfig() shared_t.EventTransformerConfig
- type BiteConverter
- type BiteEntity
- type BiteModel
- type BiteRepository
- func (repository BiteRepository) Create(headerID int64, models []interface{}) error
- func (repository BiteRepository) MarkHeaderChecked(headerID int64) error
- func (repository BiteRepository) MissingHeaders(startingBlockNumber int64, endingBlockNumber int64) ([]core.Header, error)
- func (repository BiteRepository) RecheckHeaders(startingBlockNumber int64, endingBlockNumber int64) ([]core.Header, error)
- func (repository *BiteRepository) SetDB(db *postgres.DB)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBiteConfig ¶
func GetBiteConfig() shared_t.EventTransformerConfig
Types ¶
type BiteConverter ¶
type BiteConverter struct{}
func (BiteConverter) ToEntities ¶
func (BiteConverter) ToEntities(contractAbi string, ethLogs []types.Log) ([]interface{}, error)
func (BiteConverter) ToModels ¶
func (converter BiteConverter) ToModels(entities []interface{}) ([]interface{}, error)
type BiteEntity ¶
type BiteRepository ¶
type BiteRepository struct {
// contains filtered or unexported fields
}
func (BiteRepository) Create ¶
func (repository BiteRepository) Create(headerID int64, models []interface{}) error
func (BiteRepository) MarkHeaderChecked ¶
func (repository BiteRepository) MarkHeaderChecked(headerID int64) error
func (BiteRepository) MissingHeaders ¶
func (BiteRepository) RecheckHeaders ¶
func (*BiteRepository) SetDB ¶
func (repository *BiteRepository) SetDB(db *postgres.DB)
Click to show internal directories.
Click to hide internal directories.