Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Classification ¶
type Classification string
const CSAM Classification = "csam"
CSAM - When closer to 1, the event likely (or definitely) contains CSAM.
const DAGAbuse Classification = "dag_abuse"
DAGAbuse - When closer to 1, the event appears to be attempting to disrupt the core structure of the room.
const Frequency Classification = "frequency"
Frequency - When closer to 1, the event (or similar) may have already been repeated a lot.
const Mentions Classification = "mentions"
Mentions - When closer to 1, the event's mechanism for spam includes mentioning other users.
const NonCompliance Classification = "non_compliance"
NonCompliance - When closer to 1, the event does not comply with the specification. Events classified as such should have already been rejected by "real" homeservers.
const Spam Classification = "spam"
Spam - When closer to 1, the event should be considered spam. When closer to 0, the event is neutral and should still be considered as "potentially spammy, though unlikely".
const Unsafe Classification = "unsafe"
Unsafe - When closer to 1, the event was not able to be fully checked by the filter engine and therefore may be spammy.
const Volumetric Classification = "volumetric"
Volumetric - When closer to 1, the event attempts to disrupt the timeline of the room.
func (Classification) Invert ¶
func (c Classification) Invert() Classification
func (Classification) IsInverted ¶
func (c Classification) IsInverted() bool
func (Classification) String ¶
func (c Classification) String() string