wellknown

package
v0.0.0-...-f6da3f2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountWebfinger

type AccountWebfinger struct {
	Subject string                 `json:"subject"`
	Aliases []string               `json:"aliases"`
	Links   []AccountWebfingerLink `json:"links"`
}
type AccountWebfingerLink struct {
	Rel  string `json:"rel"`
	Type string `json:"type,omitempty"`
	Href string `json:"href"`
}
type HostMetaLink struct {
	Rel      string `xml:"rel,attr"`
	Template string `xml:"template,attr"`
}
type NodeinfoLink struct {
	Rel  string `json:"rel"`
	Href string `json:"href"`
}

type NodeinfoResponse

type NodeinfoResponse struct {
	Links []NodeinfoLink `json:"links"`
}

type WellKnown

type WellKnown struct {
	*app.App
}

func New

func New(app *app.App) *WellKnown

func (*WellKnown) HostMeta

func (a *WellKnown) HostMeta(w http.ResponseWriter, r *http.Request)

func (*WellKnown) Nodeinfo

func (a *WellKnown) Nodeinfo(w http.ResponseWriter, r *http.Request)

func (*WellKnown) Webfinger

func (a *WellKnown) Webfinger(w http.ResponseWriter, r *http.Request)

type XRD

type XRD struct {
	XMLNS string         `xml:"xmlns,attr"`
	Links []HostMetaLink `xml:"Link"`
}

Jump to

Keyboard shortcuts

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