forked from cs3org/reva
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhancement: add event to process ocm notifications
- Loading branch information
Showing
4 changed files
with
65 additions
and
150 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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,24 @@ | ||
package events | ||
|
||
import ( | ||
"encoding/json" | ||
|
||
user "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1" | ||
types "github.com/cs3org/go-cs3apis/cs3/types/v1beta1" | ||
) | ||
|
||
// ScienceMeshInviteTokenGenerated is emitted when a sciencemesh token is generated | ||
type ScienceMeshInviteTokenGenerated struct { | ||
Sharer *user.UserId | ||
Token string | ||
MeshDirectoryURL string // fixMe: we can get the value from the config too, lets keep it for now | ||
Recipient string | ||
Timestamp *types.Timestamp | ||
} | ||
|
||
// Unmarshal to fulfill unmarshaller interface | ||
func (ScienceMeshInviteTokenGenerated) Unmarshal(v []byte) (interface{}, error) { | ||
e := ScienceMeshInviteTokenGenerated{} | ||
err := json.Unmarshal(v, &e) | ||
return e, err | ||
} |