Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidLevel = fmt.Errorf("not a valid Level, try [%s]", strings.Join(_LevelNames, ", "))
Functions ¶
func LevelNames ¶ added in v0.52.0
func LevelNames() []string
LevelNames returns a list of possible string values of Level.
Types ¶
type Level ¶
type Level string
Level represents the severity of a notification.
ENUM(
info warning error
)
func ParseLevel ¶ added in v0.52.0
ParseLevel attempts to convert a string to a Level.
func (*Level) AppendText ¶ added in v0.52.0
AppendText appends the textual representation of itself to the end of b (allocating a larger slice if necessary) and returns the updated slice.
Implementations must not retain b, nor mutate any bytes within b[:len(b)].
func (Level) IsValid ¶ added in v0.52.0
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (Level) MarshalText ¶ added in v0.52.0
MarshalText implements the text marshaller method.
func (*Level) UnmarshalText ¶ added in v0.52.0
UnmarshalText implements the text unmarshaller method.
type Notification ¶
Notification represents a single notification event.
Click to show internal directories.
Click to hide internal directories.