-
Notifications
You must be signed in to change notification settings - Fork 44
/
events.go
32 lines (27 loc) · 1.07 KB
/
events.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package types
// Posts module event types
const (
EventTypePostCreated = "post_created"
EventTypePostEdited = "post_edited"
EventTypePostReactionAdded = "post_reaction_added"
EventTypePostReactionRemoved = "post_reaction_removed"
EventTypeAnsweredPoll = "post_poll_answered"
EventTypeRegisterReaction = "reaction_registered"
EventTypePostReported = "post_reported"
// Post attributes
AttributeKeyPostID = "post_id"
AttributeKeyPostParentID = "post_parent_id"
AttributeKeyPostOwner = "post_owner"
AttributeKeyReportOwner = "report_owner"
AttributeKeyPostEditTime = "post_edit_time"
AttributeKeyPostCreationTime = "post_creation_time"
// Poll attributes
AttributeKeyPollAnswerer = "poll_answerer"
// PostReaction attributes
AttributeKeyPostReactionOwner = "reaction_user"
AttributeKeyPostReactionValue = "reaction_value"
AttributeKeyReactionShortCode = "reaction_shortcode"
// Reaction attributes
AttributeKeyReactionCreator = "reaction_creator"
AttributeKeyReactionSubSpace = "reaction_subspace"
)