Documentation ¶
Index ¶
- type Observer
- func (ob *Observer) Alert()
- func (ob *Observer) DeleteBlockAndTxs(chain string, height int64) error
- func (ob *Observer) GetCurrentBlockLog(chain string) *store.BlockLog
- func (ob *Observer) Prune()
- func (ob *Observer) SaveBlockAndTxs(chain string, blockLog *store.BlockLog, txLogs []*store.TxLog) error
- func (ob *Observer) Start()
- func (ob *Observer) UpdateConfirmedNum(chain string, height int64) error
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 (*Observer) DeleteBlockAndTxs ¶
func (*Observer) GetCurrentBlockLog ¶
func (*Observer) SaveBlockAndTxs ¶
Click to show internal directories.
Click to hide internal directories.