webfinger

package
v0.0.0-...-7e4e87f Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Acct

type Acct struct {
	User string
	Host string
}

func Parse

func Parse(query string) (*Acct, error)

func (*Acct) Collections

func (a *Acct) Collections() string

Collections returns the URL prefix for the collections for this Acct.

func (*Acct) Fetch

func (a *Acct) Fetch(ctx context.Context) (*Webfinger, error)

func (*Acct) Followers

func (a *Acct) Followers() string

Followers returns the URL for the followers collection for this Acct.

func (*Acct) Following

func (a *Acct) Following() string

Following returns the URL for the following collection for this Acct.

func (*Acct) ID

func (a *Acct) ID() string

ID returns the URL for the ID resource for this Acct.

func (*Acct) Inbox

func (a *Acct) Inbox() string

Inbox returns the URL for the inbox collection for this Acct.

func (*Acct) Outbox

func (a *Acct) Outbox() string

Outbox returns the URL for the outbox collection for this Acct.

func (*Acct) SharedInbox

func (a *Acct) SharedInbox() string

SharedInbox returns the URL for the shared inbox collection for this Acct.

func (*Acct) String

func (a *Acct) String() string

func (*Acct) Tags

func (a *Acct) Tags() string

Tags returns the URL for the tags collection for this Acct.

func (*Acct) Webfinger

func (a *Acct) Webfinger() string

Webfinger returns the URL for the webfinger resource for this Acct.

type Link struct {
	Rel      string `json:"rel"`
	Type     string `json:"type"`
	Href     string `json:"href"`
	Template string `json:"template"`
}

type Webfinger

type Webfinger struct {
	Subject string   `json:"subject"`
	Aliases []string `json:"aliases"`
	Links   []Link   `json:"links"`
}

func (*Webfinger) ActivityPub

func (wf *Webfinger) ActivityPub() (string, error)

Jump to

Keyboard shortcuts

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