alert

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 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 Alert

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

func New

func New() *Alert

func (*Alert) Count

func (a *Alert) Count() int

func (*Alert) GetLastChangeTime

func (a *Alert) GetLastChangeTime() time.Time

func (*Alert) GetStartTime

func (a *Alert) GetStartTime() time.Time

func (*Alert) Inc

func (a *Alert) Inc()

func (*Alert) Level

func (a *Alert) Level() Level

func (*Alert) UpdateLevel

func (a *Alert) UpdateLevel(level Level)

type Level

type Level int
const (
	LevelSuccess Level = 1
	LevelWarn    Level = 2
	LevelError   Level = 3
)

func LevelFromString added in v0.1.2

func LevelFromString(s string) (Level, error)

func (*Level) String

func (l *Level) String() string

Jump to

Keyboard shortcuts

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