Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultHTTPClient is the default rate limited HTTP client DefaultHTTPClient = &RLHTTPClient{ client: http.DefaultClient, Ratelimiter: rate.NewLimiter(rate.Every(1*time.Second), 25), } )
Functions ¶
Types ¶
type AccountDetails ¶
type AccountDetails struct {
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 ¶
QueryStatus contains the details of the status of a request
type RLHTTPClient ¶ added in v0.0.3
RLHTTPClient Rate Limited HTTP Client
Click to show internal directories.
Click to hide internal directories.