bridgyfed

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package BridgyFed is a Sherlock adapter that attempts to translate a BlueSky-looking value into an ActivityPub actor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LooksLikeBluesky

func LooksLikeBluesky(id string) bool

LooksLikeBluesky returns TRUE if the provided URI looks like a Bluesky handle (e.g. "@alice.bsky.social")

func New

func New(innerClient streams.Client, options ...ClientOption) streams.Client

New returns a fully initialized Client

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client represents a Bridgy Fed "middleware" that takes Bluesky-looking URIs and converts them into WebFinger URIs

To work properly, this middleware MUST be installed ABOVE the WebFinger middleware.

func (Client) Delete

func (client Client) Delete(id string) error

func (Client) Load

func (client Client) Load(id string, loadOptions ...any) (streams.Document, error)

func (Client) Save

func (client Client) Save(document streams.Document) error

func (Client) SetRootClient

func (client Client) SetRootClient(rootClient streams.Client)

type ClientOption

type ClientOption func(*Client)

func WithHostname

func WithHostname(hostname string) ClientOption

WithHostname uses a custom hostname (instead of the default bsky.brid.gy)

Jump to

Keyboard shortcuts

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