Documentation ¶ Index ¶ Constants func Heartbeat(ctx context.Context, logger *logrus.Logger, alert Alert) func Register(s Sender) func Send(alert Alert) error type Alert func New(msg, reason, path, procName string) Alert type Errors func (es Errors) Error() (err string) type Sender Constants ¶ View Source const HeartbeatEvent = "heartbeat event" Variables ¶ This section is empty. Functions ¶ func Heartbeat ¶ added in v0.1.1 func Heartbeat(ctx context.Context, logger *logrus.Logger, alert Alert) func Register ¶ func Register(s Sender) func Send ¶ func Send(alert Alert) error Types ¶ type Alert ¶ type Alert struct { Time time.Time Message string Reason string Path string ProcessName string } func New ¶ func New(msg, reason, path, procName string) Alert type Errors ¶ type Errors []error func (Errors) Error ¶ func (es Errors) Error() (err string) type Sender ¶ type Sender interface { Send(alert Alert) error } Source Files ¶ View all Source files alerts.go errors.go Directories ¶ Show internal Expand all Path Synopsis splunk syslog Click to show internal directories. Click to hide internal directories.