observer

package
v0.0.0-...-11a4fed Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Observer

type Observer struct {
	DB *gorm.DB

	Config *util.Config

	OtherExecutor common.Executor
	BnbExecutor   common.Executor
}

func NewObserver

func NewObserver(db *gorm.DB, cfg *util.Config, bnbExecutor common.Executor, otherExecutor common.Executor) *Observer

func (*Observer) Alert

func (ob *Observer) Alert()

func (*Observer) DeleteBlockAndTxs

func (ob *Observer) DeleteBlockAndTxs(chain string, height int64) error

func (*Observer) GetCurrentBlockLog

func (ob *Observer) GetCurrentBlockLog(chain string) *store.BlockLog

func (*Observer) Prune

func (ob *Observer) Prune()

func (*Observer) SaveBlockAndTxs

func (ob *Observer) SaveBlockAndTxs(chain string, blockLog *store.BlockLog, txLogs []*store.TxLog) error

func (*Observer) Start

func (ob *Observer) Start()

func (*Observer) UpdateConfirmedNum

func (ob *Observer) UpdateConfirmedNum(chain string, height int64) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL