github.com/cs3org/reva/v2@v2.27.7/pkg/events/notifications.go (about) 1 package events 2 3 import ( 4 "encoding/json" 5 ) 6 7 // SendEmailsEvent instructs the notification service to send grouped emails 8 type SendEmailsEvent struct { 9 Interval string 10 } 11 12 // Unmarshal to fulfill umarshaller interface 13 func (SendEmailsEvent) Unmarshal(v []byte) (interface{}, error) { 14 e := SendEmailsEvent{} 15 err := json.Unmarshal(v, &e) 16 return e, err 17 }