federatingdb

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	// Default functionality.
	pub.Database

	Undo(ctx context.Context, undo vocab.ActivityStreamsUndo) error
	Accept(ctx context.Context, accept vocab.ActivityStreamsAccept) error
	Reject(ctx context.Context, reject vocab.ActivityStreamsReject) error
	Announce(ctx context.Context, announce vocab.ActivityStreamsAnnounce) error
	Move(ctx context.Context, move vocab.ActivityStreamsMove) error
}

DB wraps the pub.Database interface with a couple of custom functions for GoToSocial.

func New

func New(
	state *state.State,
	converter *typeutils.Converter,
	visFilter *visibility.Filter,
	spamFilter *spam.Filter,
) DB

New returns a DB that satisfies the pub.Database interface, using the given state and filters.

Jump to

Keyboard shortcuts

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