Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct {
Pages []CatalogPage
}
Catalog Represents a full catalog of pages
type CatalogPage ¶
CatalogPage Represents a page of the catalog
type Client ¶
Client represents a client accessing a site's API
func (*Client) GetCatalog ¶
GetCatalog gets a catalog struct from a given board's name.
type File ¶
type File struct { Extension string `json:"ext"` Filename string `json:"file"` Filesize int `json:"fsize"` Height int `json:"h"` Width int `json:"w"` ThumbnailHeight int `json:"tn_h"` ThumbnailWidth int `json:"tn_w"` }
File represents a file, only ever used in the context of extra files attached to a post
type Post ¶
type Post struct { No int `json:"no"` LastModified int `json:"last_modified"` Comment string `json:"com"` Cyclical string `json:"cyclical"` Time int `json:"time"` Filesize int `json:"fsize"` Filename string `json:"filename"` Images int `json:"images"` Locked int `json:"locked"` OmittedImages int `json:"omitted_images"` OmittedPosts int `json:"omitted_posts"` Name string `json:"name"` Replies int `json:"replies"` ReplyTo int `json:"resto"` Sticky int `json:"sticky"` MD5 string `json:"md5"` Extension string `json:"ext"` RenamedFilename string `json:"tim"` ThumbnailHeight int `json:"tn_h"` ThumbnailWidth int `json:"tn_w"` Height int `json:"h"` Width int `json:"w"` ExtraFiles []File `json:"extra_files"` }
Post represents a post or thread post in the context of the catalog.
Click to show internal directories.
Click to hide internal directories.