Documentation
¶
Overview ¶
Package fediverse has some of the Fediverse-related functions.
Index ¶
- Variables
- func FetchBookmarkAsRepost(uri string) (*types.Bookmark, error)
- func OurID() string
- func RenderRemoteBookmarks(raws []types.RemoteBookmark) (renders []types.RenderedRemoteBookmark)
- func RequestActorByID(actorID string) (*types.Actor, error)
- func RequestActorByNickname(nickname string) (*types.Actor, error)
- func RequestActorInboxByID(actorID string) string
- func VerifyRequest(rq *http.Request, content []byte) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotBookmark = errors.New("fediverse: not a bookmark")
)
Functions ¶
func FetchBookmarkAsRepost ¶ added in v1.3.0
FetchBookmarkAsRepost fetches a bookmark on the given address somehow. First, it tries to get a Note ActivityPub object formatted with Betula rules. If it fails to do so, it resorts to the readpage method.
func RenderRemoteBookmarks ¶ added in v1.3.0
func RenderRemoteBookmarks(raws []types.RemoteBookmark) (renders []types.RenderedRemoteBookmark)
func RequestActorByID ¶
RequestActorByID fetches the actor activity on the specified address. The returned value might be from the cache and perhaps stale.
func RequestActorByNickname ¶
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 ¶
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 signing manages HTTP signatures and managing a pair of private and public keys.
|
Package signing manages HTTP signatures and managing a pair of private and public keys. |
Click to show internal directories.
Click to hide internal directories.