Documentation
¶
Index ¶
- Constants
- type Category
- type Client
- func (c *Client) Do(req *http.Request) (*http.Response, error)
- func (c *Client) GetGallery(id int, token string, opt *GetGalleryOption) (*GalleryDetail, error)
- func (c *Client) GetPage(id int, page int, token string, opt *GetPageOptions) (*Page, error)
- func (c *Client) GetUserProfile(userId int) (*UserProfile, error)
- func (c *Client) LoginWithCookie(memberId string, hashPass string) (*UserProfile, error)
- func (c *Client) SearchGalleries(opt *SearchGalleriesOption) (*GalleryCursor, error)
- type ClientOptions
- type Endpoint
- type GalleryComment
- type GalleryCursor
- type GalleryDetail
- type GalleryPreview
- type GalleryVersion
- type GetGalleryOption
- type GetPageOptions
- type HttpError
- type IdTokenPair
- type Page
- type PagePreview
- type PageTokenPair
- type Parser
- type ParserNotFoundError
- type ParserParseError
- type PreviewKind
- type SearchGalleriesOption
- type TagGroup
- type TagValue
- type UserProfile
Constants ¶
View Source
const ( Doujinshi Category = 2 Manga = 4 ArtistCG = 8 GameCG = 16 Western = 512 NonH = 256 ImageSet = 32 Cosplay = 64 AsianPorn = 128 Misc = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(opt *ClientOptions) *Client
func (*Client) GetGallery ¶
func (c *Client) GetGallery(id int, token string, opt *GetGalleryOption) (*GalleryDetail, error)
func (*Client) GetUserProfile ¶
func (c *Client) GetUserProfile(userId int) (*UserProfile, error)
func (*Client) LoginWithCookie ¶
func (c *Client) LoginWithCookie(memberId string, hashPass string) (*UserProfile, error)
func (*Client) SearchGalleries ¶
func (c *Client) SearchGalleries(opt *SearchGalleriesOption) (*GalleryCursor, error)
type ClientOptions ¶
type GalleryComment ¶
type GalleryCursor ¶
type GalleryCursor struct { Kind PreviewKind Prev string Next string Previews []*GalleryPreview }
type GalleryDetail ¶
type GalleryDetail struct { Id int Token string Thumb string Title string TitleJpn string Category Category Uploader string PostedAt time.Time Parent *IdTokenPair Visible string Language string FileSize string Pages int Favoriteds int Rating float64 Rateds int Tags []*TagGroup Versions []*GalleryVersion Previews []*PagePreview Comments []*GalleryComment }
type GalleryPreview ¶
type GalleryVersion ¶
type GetGalleryOption ¶
type GetPageOptions ¶
type IdTokenPair ¶
type Page ¶
type Page struct { Page int Token string FileName string Url string RawUrl string Prev *PageTokenPair Next *PageTokenPair ReloadToken string ApiToken string }
type PagePreview ¶
type PageTokenPair ¶
type ParserNotFoundError ¶
func (*ParserNotFoundError) Error ¶
func (e *ParserNotFoundError) Error() string
type ParserParseError ¶
func (*ParserParseError) Error ¶
func (e *ParserParseError) Error() string
type PreviewKind ¶
type PreviewKind string
var ( Minimal PreviewKind = "m" MinimalPlus PreviewKind = "p" Compact PreviewKind = "l" Extended PreviewKind = "e" Thumbnail PreviewKind = "t" )
type SearchGalleriesOption ¶
type SearchGalleriesOption struct { Keywords string Categories int IncludeExpunged bool MustHaveTorrent bool PagesRangeStart int PagesRangeEnd int MinimunRating int DisableCustomFilterOfLanguage bool DisableCustomFilterOfUploader bool DisableCustomFilterOfTags bool PreviewKind PreviewKind Next int RawQuery string }
type UserProfile ¶
Source Files
¶
- client.go
- client_account.go
- client_category.go
- client_galleries.go
- client_gallery.go
- client_page.go
- client_tag.go
- error.go
- parser.go
- parser_galleries.go
- parser_galleries_compact.go
- parser_galleries_extended.go
- parser_gallery.go
- parser_gallery_comment.go
- parser_gallery_tag.go
- parser_page.go
- parser_utils.go
Click to show internal directories.
Click to hide internal directories.