Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBadLevel = errors.New("bad level")
)
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct { Name string `json:"name"` Level Level `json:"level"` LastChange time.Time `json:"last_change"` Start time.Time `json:"start"` Count int `json:"count"` }
Alert is base struct for store Alert information
func (*Alert) MarshalLua ¶
MarshalLua marshal an Alert to the Lua table
type Level ¶
type Level int
Level is the type for describe an Alert Level
func LevelFromInt ¶
LevelFromInt returns Level based on provided int or error
func LevelFromString ¶
LevelFromString returns Level based on provided string or error
Click to show internal directories.
Click to hide internal directories.