activitypub

package
v0.0.0-...-65fe179 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrActivitySend = errors.New("failed to send activity")
View Source
var ErrActorFetch = errors.New("failed to get the actor")
View Source
var ErrActorGone = errors.New("actor gone")
View Source
var ErrActorWebFinger = errors.New("failed to get the webfinger data for actor")

Functions

This section is empty.

Types

type Service

type Service interface {
	ResolveActorLink(ctx context.Context, host, name string) (self vocab.IRI, err error)
	FetchActor(ctx context.Context, addr vocab.IRI, pubKeyId string) (a vocab.Actor, tags util.ObjectTags, err error)
	SendActivity(ctx context.Context, a vocab.Activity, inbox vocab.IRI, pubKeyId string) (err error)
	nodeinfo.Resolver
}

func NewService

func NewService(clientHttp *http.Client, hostname string, privKey []byte, apiProm apiPromV1.API) Service

func NewServiceLogging

func NewServiceLogging(svc Service, log *slog.Logger) Service

func NewServiceMock

func NewServiceMock() Service

Jump to

Keyboard shortcuts

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