vote

package
v0.8.83 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2026 License: AGPL-3.0, AGPL-3.0-or-later, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL