activitypub

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ActorKeySize is the key size used to generate a new key
	ActorKeySize = 2048
	// ActorSummary is the description of the actor for the relay
	ActorSummary = "Feditools ActivityPub Relay - https://github.com/feditools/relay"

	// ContextActivityStreams contains the context document for activity streams
	ContextActivityStreams = "https://www.w3.org/ns/activitystreams"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CTXVerifier

type CTXVerifier struct {
	Verifier httpsig.Verifier
}

type ContextKey

type ContextKey int

ContextKey is a key used in http request contexts

const (
	// ContextKeyKeyVerifier is a http signature verifier
	ContextKeyKeyVerifier ContextKey = iota
	// ContextKeyHTTPSignature is a http signature
	ContextKeyHTTPSignature
)

type Module

type Module struct {
	// contains filtered or unexported fields
}

Module is an http module that handles activity pub activity

func New

func New(ctx context.Context, l logic.Logic, r runner.Runner) (*Module, error)

New creates a new activity pub module

func (*Module) Name

func (m *Module) Name() string

Name return the module name

func (*Module) Route

func (m *Module) Route(s *http.Server) error

Route attaches routes to the web server

func (*Module) SetServer

func (*Module) SetServer(_ *ihttp.Server)

SetServer adds a reference to the server to the module.

Jump to

Keyboard shortcuts

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