Skip to content

Commit

Permalink
feat: Add SendEmailsEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianbeier committed Jan 8, 2025
1 parent 9d64adf commit 75067eb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pkg/events/notifications.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package events

import (
"encoding/json"
)

// SendEmailsEvent instructs the notification service to send grouped emails
type SendEmailsEvent struct {
Interval string
}

// Unmarshal to fulfill umarshaller interface
func (SendEmailsEvent) Unmarshal(v []byte) (interface{}, error) {
e := SendEmailsEvent{}
err := json.Unmarshal(v, &e)
return e, err
}

0 comments on commit 75067eb

Please sign in to comment.