alert

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 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 Balance

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

func NewBalance

func NewBalance(log logrus.FieldLogger, minBalance uint64) *Balance

func (*Balance) Update

func (b *Balance) Update(balances []uint64) (shouldAlert bool, balance *uint64)

type Status

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

func NewStatus

func NewStatus(log logrus.FieldLogger, allowed []string) *Status

func (*Status) Update

func (s *Status) Update(statuses []string) (shouldAlert bool, alertingStatus *string)

type WithdrawalCredentials

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

func NewWithdrawalCredentials

func NewWithdrawalCredentials(log logrus.FieldLogger, allowed []int64) *WithdrawalCredentials

func (*WithdrawalCredentials) Update

func (w *WithdrawalCredentials) Update(codes []int64) (shouldAlert bool, alertingCredential *int64)

Jump to

Keyboard shortcuts

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