Documentation ¶
Index ¶
- type Client
- func (c *Client) GetWebfingerLinks(account string) ([]map[string]interface{}, error)
- func (c *Client) MakeWebFingerRequestResponseFromData(data []map[string]interface{}) WebfingerProfileRequestResponse
- func (c *Client) MakeWebfingerResponse(account string, inbox string, host string) WebfingerResponse
- type Link
- type WebfingerProfileRequestResponse
- type WebfingerResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(config *instance.FederationConfig) *Client
func (*Client) GetWebfingerLinks ¶
func (*Client) MakeWebFingerRequestResponseFromData ¶
func (c *Client) MakeWebFingerRequestResponseFromData(data []map[string]interface{}) WebfingerProfileRequestResponse
MakeWebFingerRequestResponseFromData converts WebFinger data to an easier to use model.
func (*Client) MakeWebfingerResponse ¶
func (c *Client) MakeWebfingerResponse(account string, inbox string, host string) WebfingerResponse
MakeWebfingerResponse will create a new Webfinger response.
type WebfingerProfileRequestResponse ¶
type WebfingerProfileRequestResponse struct {
Self string
}
WebfingerProfileRequestResponse represents a Webfinger profile request response.
type WebfingerResponse ¶
type WebfingerResponse struct { Aliases []string `json:"aliases"` Subject string `json:"subject"` Links []Link `json:"links"` }
WebfingerResponse represents a Webfinger response.
Click to show internal directories.
Click to hide internal directories.