Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAvatarURL ¶
GetAvatarURL returns the avatar URL from the given identity. If no identity is found, it returns an empty string instead.
Types ¶
type AccountDetails ¶
type AccountDetails struct {
ID string `json:"id"`
Pictures *AccountPictures `json:"pictures"`
}
AccountDetails contains the data of a single account details
type AccountPictures ¶
type AccountPictures struct {
Primary *Picture `json:"primary"`
}
AccountPictures contains the info of an account's pictures
type IdentityQueryResponse ¶
type IdentityQueryResponse struct {
Status QueryStatus `json:"status"`
Objects []AccountDetails `json:"them"`
}
IdentityQueryResponse represents the response to an identity query
type Picture ¶
type Picture struct {
URL string `json:"url"`
}
Picture contains the info of a single picture
type QueryStatus ¶
type QueryStatus struct {
Code int64 `json:"code"`
Name string `json:"name"`
ErrDesc string `json:"desc"`
}
QueryStatus contains the details of the status of a request
Click to show internal directories.
Click to hide internal directories.