webfingers

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	Rel  string `json:"rel"`
	Href string `json:"href,omitempty"`
}

Link is a link in a webfinger.

type Resources

type Resources map[string]map[string]string

Resources is a simplified webfinger map.

type URNAliases

type URNAliases map[string]string

URNAliases is a map of URN aliases.

type WebFinger

type WebFinger struct {
	Subject    string            `json:"subject"`
	Links      []Link            `json:"links,omitempty"`
	Properties map[string]string `json:"properties,omitempty"`
}

WebFinger is a webfinger.

type WebFingers

type WebFingers map[string]*WebFinger

WebFingers is a map of webfingers.

func NewWebFingers

func NewWebFingers(resources Resources, urnAliases URNAliases) (WebFingers, error)

NewWebFingers creates a new webfinger map from a simplified webfinger map and an optional URN aliases map.

Jump to

Keyboard shortcuts

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