Documentation
¶
Index ¶
- Variables
- type AdditionalMediaTypes
- type Client
- type Error
- type Link
- type Message
- func (r Message) GetFirstLinkByRelationType(t string) *Link
- func (r Message) GetLinkByType(t string) *Link
- func (r Message) GetLinksByRelationType(t string) []Link
- func (r Message) GetLinksByType(t string) []Link
- func (r Message) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (r *Message) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- type Properties
- type Request
- type UnsupportedContentTypeError
- type WebFingerResponseStatusError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidResponse = errors.New("invalid response") ErrResourceNotFound = errors.New("resource not found") )
View Source
var DefaultClient = &Client{ HTTPClient: &http.Client{}, }
Functions ¶
This section is empty.
Types ¶
type AdditionalMediaTypes ¶ added in v1.2.0
type Client ¶
type Client struct { HTTPClient *http.Client UserAgent string HTTPMode bool AdditionalMediaTypes *AdditionalMediaTypes }
type Message ¶
type Message struct { Subject string `json:"subject"` Aliases []string `json:"aliases,omitempty"` Properties Properties `json:"properties,omitempty"` Links []Link `json:"links,omitempty"` }
func (Message) GetFirstLinkByRelationType ¶
func (Message) GetLinkByType ¶
func (Message) GetLinksByRelationType ¶
func (Message) GetLinksByType ¶
func (Message) MarshalXML ¶
func (*Message) UnmarshalXML ¶
type Properties ¶
type Properties map[string]nullable.String
type UnsupportedContentTypeError ¶
type UnsupportedContentTypeError struct {
ContentType string
}
func (*UnsupportedContentTypeError) Error ¶
func (e *UnsupportedContentTypeError) Error() string
type WebFingerResponseStatusError ¶
func (*WebFingerResponseStatusError) Error ¶
func (e *WebFingerResponseStatusError) Error() string
Click to show internal directories.
Click to hide internal directories.