Skip to content

Commit

Permalink
update descriptions in datatypes.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Nixolay committed Aug 21, 2019
1 parent 78f61f4 commit eed95ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datatypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ type NotificationEvent struct {
EventMessage EventInfo `json:"event_message"`
}

// EventInfo used to create messages.
// EventInfo is used to create messages.
type EventInfo struct {
Info *MaintenanceInfo `json:"info,omitempty"`
Interval *int64 `json:"interval,omitempty"`
}

// CreateMessage - creates a message based EventInfo
// CreateMessage - creates a message based on EventInfo
func (event *NotificationEvent) CreateMessage(loc *time.Location) string {
if len(UseString(event.Message)) > 0 {
return *event.Message
Expand Down

0 comments on commit eed95ca

Please sign in to comment.