activitypub

package
v0.0.0-...-eb23ef5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// 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 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, log *logic.Logic) (*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