Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertLevel ¶
type AlertLevel int
AlertLevel expresses notification level when uses in Alert() function notification level hierarky : (high) CRITICAL > WARNING (low)
const ( // AlertLevelWarning express that notification level is `WARNING`. AlertLevelWarning AlertLevel = iota // AlertLevelCritical express that notification level is `CRITICAL`. AlertLevelCritical )
type Notifier ¶
Notifier interface expresses the notification services that able to send Alert. If controller triggers Alert, Notifier send details about certificate's expirarion to own service.
type Option ¶
type Option struct {
AlertLevel AlertLevel
}
Option struct provides configration about notification.
Click to show internal directories.
Click to hide internal directories.