inbox

package
v0.0.0-...-7643193 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package inbox processes activities received from other servers.

Incoming activites are received and queued by fed.Listener.

Index

Constants

This section is empty.

Variables

View Source
var ErrActivityTooNested = errors.New("exceeded activity depth limit")

Functions

This section is empty.

Types

type Queue

type Queue struct {
	Domain    string
	Config    *cfg.Config
	BlockList *fed.BlockList
	Log       *slog.Logger
	DB        *sql.DB
	Resolver  ap.Resolver
	Key       httpsig.Key
}

func (*Queue) Process

func (q *Queue) Process(ctx context.Context) error

Process polls the queue of incoming activities and processes them.

func (*Queue) ProcessBatch

func (q *Queue) ProcessBatch(ctx context.Context) (int, error)

ProcessBatch processes one batch of incoming activites in the queue.

Directories

Path Synopsis
Package note handles insertion of posts.
Package note handles insertion of posts.

Jump to

Keyboard shortcuts

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