Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IsolationProtocol ¶
type IsolationProtocol struct {
// contains filtered or unexported fields
}
IsolationProtocol implements shadow-ban semantics. The offender's own node never receives the verdict — it is published only on the followers/observers pubsub topic. The offender therefore cannot detect or resist isolation; their local view stays unchanged while everyone else hides the offending object.
func NewIsolationProtocol ¶
func NewIsolationProtocol(pub Publisher) *IsolationProtocol
func (*IsolationProtocol) IsolateTweet ¶
func (ip *IsolationProtocol) IsolateTweet(t *domain.Tweet, m *domain.TweetModeration)
func (*IsolationProtocol) IsolateUser ¶ added in v0.7.59
func (ip *IsolationProtocol) IsolateUser(moderatorID domain.ID, u *domain.User, m *domain.UserModeration)
Click to show internal directories.
Click to hide internal directories.