Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) SearchComments ¶
func (a *API) SearchComments(f CommentFilter) (*CommentResults, error)
func (*API) SearchPosts ¶
func (a *API) SearchPosts(f PostFilter) (*PostResults, error)
func (*API) SearchTags ¶
func (a *API) SearchTags(f TagFilter) (*TagResults, error)
func (*API) SearchUsers ¶
func (a *API) SearchUsers(f UserFilter) (*UserResults, error)
func (*API) SetRateLimit ¶
type CommentFilter ¶
type CommentFilter struct {
PostID uint
}
type CommentResults ¶
type CommentResults struct {
Comments []Comment `xml:"comment"`
}
type Post ¶
type Post struct { ID uint `xml:"id"` CreationDate string `xml:"created_at"` Score int `xml:"score"` Width uint `xml:"width"` Height uint `xml:"height"` MD5Hash string `xml:"md5"` Directory string `xml:"directory"` FileName string `xml:"image"` Rating string `xml:"rating"` SourceURL string `xml:"source"` Change uint `xml:"change"` Owner string `xml:"owner"` CreatorID uint `xml:"creator_id"` ParentID uint `xml:"parent_id"` Sample uint `xml:"sample"` PreviewHeight uint `xml:"preview_height"` PreviewWidth uint `xml:"preview_width"` Tags string `xml:"tags"` HasNotes bool `xml:"has_notes"` HasComments bool `xml:"has_comments"` FileURL string `xml:"file_url"` PreviewURL string `xml:"preview_url"` Status string `xml:"status"` HasChildren bool `xml:"has_children"` }
type PostFilter ¶
type PostResults ¶
type TagResults ¶
type UserFilter ¶
Click to show internal directories.
Click to hide internal directories.