activitypub

package
v0.0.0-...-706d53e Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetActorURL

func GetActorURL(act pub.Activity) (*url.URL, error)

func GetObjectURL

func GetObjectURL(act withObject) (*url.URL, error)

func NewActivityPubVocabService

func NewActivityPubVocabService(
	urlGenerator urlgenerator.URLGenerator,
) *activityPubService

Types

type VocabService

type VocabService interface {
	GetActor(*domainmodels.User) (map[string]any, error)
	GetFollowers(*domainmodels.User) (map[string]any, error)
	GetFollowing(*domainmodels.User) (map[string]any, error)
	GetOutbox(*domainmodels.User) (map[string]any, error)
	GetAccept(
		user *models.User,
		act streams.ActivityStreamsInterface,
	) (vocab.ActivityStreamsAccept, error)
	GetReject(
		user *models.User,
		act streams.ActivityStreamsInterface,
	) (vocab.ActivityStreamsReject, error)
	GetCreateNoteFromTweet(string, twittermodels.Tweet) (vocab.ActivityStreamsCreate, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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