alert

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseAlert added in v0.2.0

func ReleaseAlert(a *Alert)

Types

type Alert

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

func AcquireAlert added in v0.2.0

func AcquireAlert() *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) Marshal added in v0.2.0

func (a *Alert) Marshal() ([]byte, error)

func (*Alert) MarshalLua added in v0.3.2

func (a *Alert) MarshalLua() *lua.LTable

func (*Alert) Name added in v0.2.0

func (a *Alert) Name() string

func (*Alert) SetName added in v0.2.0

func (a *Alert) SetName(name string)

func (*Alert) Unmarshal added in v0.2.0

func (a *Alert) Unmarshal(src []byte) error

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