fediverse

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package fediverse has some of the Fediverse-related functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OurID

func OurID() string

func RequestActorByID

func RequestActorByID(actorID string) (*types.Actor, error)

RequestActorByID fetches the actor activity on the specified address. The returned value might be from the cache and perhaps stale.

func RequestActorByNickname

func RequestActorByNickname(nickname string) (*types.Actor, error)

RequestActorByNickname returns actor by string like @bouncepaw@links.bouncepaw.com or bouncepaw@links.bouncepaw.com. The returned value might be from the cache and perhaps stale.

func RequestActorInboxByID

func RequestActorInboxByID(actorID string) string

func VerifyRequest

func VerifyRequest(rq *http.Request, content []byte) bool

VerifyRequest returns true if the request is alright. This function makes HTTP requests on your behalf to retrieve the public key.

Types

This section is empty.

Directories

Path Synopsis
Package activities provides generation of JSON activities and activity data extraction from JSON.
Package activities provides generation of JSON activities and activity data extraction from JSON.
Package sign manages HTTP signatures and storing a pair of private and public keys.
Package sign manages HTTP signatures and storing a pair of private and public keys.
httpsig
An implementation of HTTP Signatures
An implementation of HTTP Signatures

Jump to

Keyboard shortcuts

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