Versions in this module Expand all Collapse all v0 v0.0.1 Aug 8, 2024 Changes in this version + var ErrNotLoggedIn = errors.New("not logged in") + type Client struct + func New(config Config) (*Client, error) + func (c *Client) Close() + func (c *Client) GetSubmissionDetails(id int64) (*SubmissionDetails, error) + func (c *Client) GetUsername() (string, error) + func (c *Client) NewSearch(query string) *Search + func (c *Client) NewUser(name string) *User + type Config struct + Cookies []Cookie + Proxy string + RateLimit time.Duration + RequestTimeout time.Duration + RetryDelay time.Duration + RetryLimit int + Timeout time.Duration + UserAgent string + type Cookie struct + Name string + Value string + type Journal struct + ID int64 + Title string + User string + func (j *Journal) Content() (string, error) + func (j *Journal) String() string + func (j *Journal) URL() string + type Rating string + const RatingAdult + const RatingGeneral + const RatingMature + type Search struct + func (s *Search) GetPage(page int) ([]*Submission, error) + type Submission struct + ID int64 + PreviewURL string + Rating Rating + Title string + User string + func (s *Submission) Details() (*SubmissionDetails, error) + func (s *Submission) PreviewImage() ([]byte, error) + func (s *Submission) String() string + type SubmissionDetails struct + Description string + DownloadURL string + Stats string + func (sd *SubmissionDetails) Download() ([]byte, error) + type SubmissionType int + const SubmissionTypeGallery + const SubmissionTypeScraps + func (st SubmissionType) URI() string + type User struct + func (u *User) GetGallery(st SubmissionType, page uint) ([]*Submission, error) + func (u *User) GetJournals(page uint) ([]*Journal, error) + func (u *User) GetRecent() ([]*Submission, []*Journal, error) + func (u *User) GetSubmissions(page uint) ([]*Submission, error)