-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d64adf
commit 6293d56
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Enhancement: Add SendEmailsEvent | ||
|
||
Adds SendEmailsEvent that is used to trigger the sending of group emails. | ||
|
||
https://github.com/cs3org/reva/pull/5032 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |