alert

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 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, hasNextRecoveryTx bool) (shouldAlert bool)

type ExcessQueue

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

func NewExcessQueue

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

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(hasRecoveryTx, hasRecoveryTxError, recoveryTxIsNext bool) (shouldAlert bool)

type Signers added in v0.1.0

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

func NewSigners added in v0.1.0

func NewSigners(log logrus.FieldLogger) *Signers

func (*Signers) Update added in v0.1.0

func (a *Signers) Update(mismatch bool) (shouldAlert bool)

Update returns true if an alert should be triggered

type Threshold added in v0.1.1

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

func NewThreshold added in v0.1.1

func NewThreshold(log logrus.FieldLogger, expectedThreshold int) *Threshold

func (*Threshold) Update added in v0.1.1

func (t *Threshold) Update(threshold int) (shouldAlert bool)

Update returns true if an alert should be triggered

Jump to

Keyboard shortcuts

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