Documentation ¶
Overview ¶
Package xrd implements Extensible Resource Descriptor as defined in http://docs.oasis-open.org/xri/xrd/v1.0/xrd-1.0.html.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoSuchResource = errors.New("xrd: no such resource")
ErrNoSuchResource can be returned by a Backend if a resource doesn't exist.
Functions ¶
Types ¶
type HTTPError ¶
type HTTPError int
An HTTPError is returned when an HTTP error has occured. Its value is the HTTP status code.
type Link ¶
type Link struct { Rel string `xml:"rel,attr,omitempty" json:"rel"` Type string `xml:"type,attr,omitempty" json:"type,omitempty"` Href string `xml:"href,attr,omitempty" json:"href,omitempty"` Template string `xml:"template,attr,omitempty" json:"template,omitempty"` Titles map[string]string `xml:"-" json:"titles,omitempty"` Properties map[string]string `xml:"-" json:"properties,omitempty"` }
A Link provides a relationship between a resource and a URL.
type Resource ¶
type Resource struct { XMLName xml.Name `xml:"http://docs.oasis-open.org/ns/xri/xrd-1.0 XRD" json:"-"` Subject string `xml:"Subject" json:"subject,omitempty"` Aliases []string `xml:"Alias" json:"aliases,omitempty"` Properties map[string]string `xml:"-" json:"properties,omitempty"` Links []*Link `xml:"Link" json:"links,omitempty"` }
A Resource is a resource descriptor.
Directories ¶
Path | Synopsis |
---|---|
Package hostmeta implements Web Host Metadata, as defined in https://tools.ietf.org/html/rfc6415.
|
Package hostmeta implements Web Host Metadata, as defined in https://tools.ietf.org/html/rfc6415. |
Package lrdd implements Link-based Resource Descriptor Discovery as defined in https://tools.ietf.org/html/draft-hammer-discovery-04.
|
Package lrdd implements Link-based Resource Descriptor Discovery as defined in https://tools.ietf.org/html/draft-hammer-discovery-04. |
Package webfinger implements WebFinger, as defined in https://tools.ietf.org/html/rfc7033.
|
Package webfinger implements WebFinger, as defined in https://tools.ietf.org/html/rfc7033. |
Click to show internal directories.
Click to hide internal directories.