activitypub

package
v0.0.0-...-6f7307d Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: AGPL-3.0 Imports: 14 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 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, self vocab.IRI) (a vocab.Actor, err error)
	SendActivity(ctx context.Context, a vocab.Activity, inbox vocab.IRI) (err error)
}

func NewService

func NewService(clientHttp *http.Client, userAgent string, privKey []byte) 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