inbox

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServiceEndpoint        string
	ServiceIRI             *url.URL
	Topic                  string
	VerifyActorInSignature bool
	SubscriberPoolSize     int
}

Config holds configuration parameters for the Inbox.

type Inbox

type Inbox struct {
	*Config
	*lifecycle.Lifecycle
	// contains filtered or unexported fields
}

Inbox implements the ActivityPub inbox.

func New

func New(cnfg *Config, s store.Store, pubSub pubSub, activityHandler service.ActivityHandler,
	sigVerifier signatureVerifier, tm authTokenManager, metrics metricsProvider) (*Inbox, error)

New returns a new ActivityPub inbox.

func (*Inbox) HTTPHandler

func (h *Inbox) HTTPHandler() common.HTTPHandler

HTTPHandler returns the HTTP handler which is invoked by the HTTP server. This handler must be registered with an HTTP server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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