Documentation
¶
Index ¶
Constants ¶
View Source
const Topic = event.ModerationVotesTopic
Topic carries one Event per moderator per report round. Voter authenticity rides on the envelope (event.Message) signature, so the vote payload itself is unsigned.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
ReportID string `json:"report_id"`
Type domain.ModerationObjectType `json:"type"`
Result domain.ModerationResult `json:"result"`
Reason *string `json:"reason,omitempty"`
UserID domain.ID `json:"user_id"`
ObjectID *domain.ID `json:"object_id,omitempty"`
// ModeratorID is overwritten by the subscriber from the verified
// envelope NodeId; the payload value is never trusted.
ModeratorID domain.ID `json:"moderator_id,omitempty"`
// Final marks the chair's (or a backup's) announcement that the round
// was finalized. It cancels the deterministic takeover chain on every
// other voter and is never counted as a vote.
Final bool `json:"final,omitempty"`
}
Event is a single moderator's verdict on one report round. Every moderator that assessed the report publishes one; the round's chair aggregates them into the final event.ModerationVerdictEvent.
Click to show internal directories.
Click to hide internal directories.