tagspub

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: 2 Imported by: 0

Documentation

Overview

Package tagspub attempts to translate a tag-looking value into a tags.pub ActivityPub actor

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsHashtag

func IsHashtag(uri string) (bool, string)

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 Tags.Pub "middleware" that takes Hashtag-looking URIs and converts them into WebFinger handles

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

func (Client) Delete

func (client Client) Delete(uri string) error

func (Client) Load

func (client Client) Load(uri string, options ...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 server hostname (instead of the default tags.pub)

Jump to

Keyboard shortcuts

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