webfinger

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const AccountScheme string = "acct:"

AccountScheme is URI scheme for WebFinger `acct://` URIs.

View Source
const ContentType string = "application/jrd+json"

Variables

This section is empty.

Functions

func DeriveWhosOnFirstURIFromResource

func DeriveWhosOnFirstURIFromResource(resource string) (string, error)

DeriveWhosOnFirstURIFromResource derives a valid Who's On First URI string (something that can be parsed by the `whosonfirst/go-whosonfirst-uri` package from 'resource'.

Types

type Link struct {
	HRef       string             `json:"href"`
	Type       string             `json:"type,omitempty"`
	Rel        string             `json:"rel"`
	Properties map[string]*string `json:"properties,omitempty"`
	Titles     map[string]string  `json:"titles,omitempty"`
}

type Resource

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

Jump to

Keyboard shortcuts

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