alert

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func NewController

func NewController(log logrus.FieldLogger, expectedController string) *Controller

func (*Controller) GetController added in v0.1.1

func (b *Controller) GetController() string

func (*Controller) Update

func (b *Controller) Update(controller string) (shouldAlert bool)

type HashInitial added in v0.1.0

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

func NewHashInitial added in v0.1.0

func NewHashInitial(log logrus.FieldLogger, initialHash string) *HashInitial

func (*HashInitial) GetHash added in v0.1.1

func (b *HashInitial) GetHash() string

func (*HashInitial) Update added in v0.1.0

func (b *HashInitial) Update(hash string) (shouldAlert bool)

type HashRecovery added in v0.1.0

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

func NewHashRecovery added in v0.1.0

func NewHashRecovery(log logrus.FieldLogger, recoveryHash string) *HashRecovery

func (*HashRecovery) GetHash added in v0.1.1

func (b *HashRecovery) GetHash() string

func (*HashRecovery) Update added in v0.1.0

func (b *HashRecovery) Update(hash string) (shouldAlert bool)

type HashUnknown added in v0.1.0

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

func NewHashUnknown added in v0.1.0

func NewHashUnknown(log logrus.FieldLogger, expectedHashes []string) *HashUnknown

func (*HashUnknown) GetHash added in v0.1.1

func (b *HashUnknown) GetHash() string

func (*HashUnknown) Update added in v0.1.0

func (b *HashUnknown) Update(hash string) (shouldAlert bool)

Jump to

Keyboard shortcuts

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