Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
Heartbeat string
StatusVal string
Body string
SinceVal time.Duration
Time time.Time
Receivers []string
}
Event represents a notification with delivery configuration.
func NewEvent ¶
func NewEvent( heartbeatID, status, body string, since time.Duration, timestamp time.Time, receivers []string, ) *Event
NewEvent constructs an Event with delivery configuration.
func (*Event) HeartbeatID ¶
HeartbeatID returns the heartbeat id.
func (*Event) ReceiverNames ¶
ReceiverNames returns the receiver names for the notification.
Click to show internal directories.
Click to hide internal directories.