Documentation ¶
Overview ¶
Package xrd provides a simple XRD parser.
XRD spec: http://docs.oasis-open.org/xri/xrd/v1.0/xrd-1.0.html
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Link ¶
type Link struct { Rel string `xml:"rel,attr"` Type string `xml:"type,attr"` Href string `xml:"href,attr"` Title []Title Property []Property Template string `xml:"template,attr"` }
Link is a link to a related resource.
type XRD ¶
XRD is an Extensible Resource Descriptor, specifying properties and related links for a resource.
func (*XRD) ConvertToJRD ¶
ConvertToJRD converts the XRD to JRD.
func (*XRD) GetLinkByRel ¶
GetLinkByRel returns the first *Link with the specified rel value.
Click to show internal directories.
Click to hide internal directories.