Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
Notifier can send log output as notification to admins, with optional batching.
func NewNotifier ¶
NewNotifier creates and returns a new Notifier, using global configuration.
func (*Notifier) SendNotification ¶
func (n *Notifier) SendNotification()
SendNotification sends any notifications accumulated since StartNotification() was called.
func (*Notifier) StartNotification ¶
func (n *Notifier) StartNotification()
StartNotification starts a log batch. Notifications will be accumulated after this point and only sent when SendNotification() is called.
Click to show internal directories.
Click to hide internal directories.