Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Observer ¶
type Observer struct {
// contains filtered or unexported fields
}
func NewObserver ¶
func NewObserver(c *Config, d *Dependencies) *Observer
NewObserver returns the observer instance
func (*Observer) Alert ¶
func (o *Observer) Alert()
Alert sends alerts to tg group if there is no new block fetched in a specific time
func (*Observer) DeleteBlock ¶
func (*Observer) GetCurrentBlockLog ¶
GetCurrentBlockLog returns the highest block log
Click to show internal directories.
Click to hide internal directories.