alert

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Confirmations

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

func NewConfirmations

func NewConfirmations(log logrus.FieldLogger) *Confirmations

func (*Confirmations) Update

func (c *Confirmations) Update(numConfirmations, expectedConfirmations int) (shouldAlert bool)

type ExcessQueue

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

func NewExcessQueue

func NewExcessQueue(log logrus.FieldLogger, maxLen int) *ExcessQueue

func (*ExcessQueue) Alerting

func (e *ExcessQueue) Alerting() bool

func (*ExcessQueue) Update

func (e *ExcessQueue) Update(length int) (shouldAlert bool)

type Invalid

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

func NewInvalid

func NewInvalid(log logrus.FieldLogger) *Invalid

func (*Invalid) Update

func (m *Invalid) Update(invalid error) (shouldAlert bool)

type Missing

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

func NewMissing

func NewMissing(log logrus.FieldLogger) *Missing

func (*Missing) Update

func (m *Missing) Update(missing bool) (shouldAlert bool)

type Next

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

func NewNext

func NewNext(log logrus.FieldLogger) *Next

func (*Next) Update

func (n *Next) Update(isNext bool) (shouldAlert bool)

Jump to

Keyboard shortcuts

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