isolation

package
v0.7.427 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 3 Imported by: 0

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)

type Publisher

type Publisher interface {
	PublishUpdateToFollowers(ownerId, dest string, body any) (err error)
}

Jump to

Keyboard shortcuts

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