Versions in this module Expand all Collapse all v0 v0.1.1 Jul 29, 2025 v0.1.0 Jul 29, 2025retracted Changes in this version + const ArtistByID + const ArtistImages + const Artists + const CharacterByID + const CharacterImages + const Characters + const DefaultDomain + const ImageArtist + const ImageByID + const ImageCharacters + const ImageTags + const Images + const RandomImages + const ReportImage + const TagByID + const TagImages + const Tags + var BadStatusError = errors.New("bad HTTP Status Code") + func Save(name string) (io.WriteCloser, error) + func SaveTemp(pattern string) (io.WriteCloser, string, error) + func SaveToSlice(dst *[]byte) io.WriteCloser + type Artist struct + Aliases []string + ID int + IDv2 string + ImageURL string + Links []string + Name string + PolicyAI bool + PolicyCredit bool + PolicyRepost bool + type Character struct + Ages []int + Aliases []string + Birthday string + Description string + Gender string + Height int + ID int + IDv2 string + Name string + Nationality string + Occupations []string + Species string + Weight int + type Client struct + DefaultQuery url.Values + Domain string + func NewClient() *Client + func (c *Client) CallAPI(method, path string, query url.Values, result interface{}) error + func (c *Client) CallAPIWithContext(ctx context.Context, method, path string, query url.Values, result interface{}) error + func (c *Client) Download(ctx context.Context, url string, dst io.WriteCloser) error + func (c *Client) DownloadAppend(ctx context.Context, url string, dst io.Writer) error + func (c *Client) DownloadImage(im *Image, dst io.WriteCloser) error + func (c *Client) DownloadImageWithContext(ctx context.Context, im *Image, dst io.WriteCloser) error + func (c *Client) DownloadSample(im *Image, dst io.WriteCloser) error + func (c *Client) DownloadSampleWithContext(ctx context.Context, im *Image, dst io.WriteCloser) error + func (c *Client) Get(path string, query url.Values, result interface{}) error + func (c *Client) GetArtistByID(id int) (Artist, error) + func (c *Client) GetArtistByIDWithContext(ctx context.Context, id int) (Artist, error) + func (c *Client) GetArtistImages(id int, req Request) (MultipleContainer[Image], error) + func (c *Client) GetArtistImagesWithContext(ctx context.Context, id int, req Request) (MultipleContainer[Image], error) + func (c *Client) GetArtists(req Request) (MultipleContainer[Artist], error) + func (c *Client) GetArtistsWithContext(ctx context.Context, req Request) (MultipleContainer[Artist], error) + func (c *Client) GetCharacterByID(id int) (Character, error) + func (c *Client) GetCharacterByIDWithContext(ctx context.Context, id int) (Character, error) + func (c *Client) GetCharacterImages(id int, req Request) (MultipleContainer[Image], error) + func (c *Client) GetCharacterImagesWithContext(ctx context.Context, id int, req Request) (MultipleContainer[Image], error) + func (c *Client) GetCharacters(req Request) (MultipleContainer[Character], error) + func (c *Client) GetCharactersWithContext(ctx context.Context, req Request) (MultipleContainer[Character], error) + func (c *Client) GetImageArtist(id int) (Artist, error) + func (c *Client) GetImageArtistWithContext(ctx context.Context, id int) (Artist, error) + func (c *Client) GetImageByID(id int) (Image, error) + func (c *Client) GetImageByIDWithContext(ctx context.Context, id int) (Image, error) + func (c *Client) GetImageCharacters(id int, req Request) (MultipleContainer[Character], error) + func (c *Client) GetImageCharactersWithContext(ctx context.Context, id int, req Request) (MultipleContainer[Character], error) + func (c *Client) GetImageTags(id int, req Request) (MultipleContainer[Tag], error) + func (c *Client) GetImageTagsWithContext(ctx context.Context, id int, req Request) (MultipleContainer[Tag], error) + func (c *Client) GetImages(req Request) (MultipleContainer[Image], error) + func (c *Client) GetImagesWithContext(ctx context.Context, req Request) (MultipleContainer[Image], error) + func (c *Client) GetRandomImages(req Request) (MultipleContainer[Image], error) + func (c *Client) GetRandomImagesWithContext(ctx context.Context, req Request) (MultipleContainer[Image], error) + func (c *Client) GetTagByID(id int) (Tag, error) + func (c *Client) GetTagByIDWithContext(ctx context.Context, id int) (Tag, error) + func (c *Client) GetTagImages(tagID int, req Request) (MultipleContainer[Image], error) + func (c *Client) GetTagImagesWithContext(ctx context.Context, tagID int, req Request) (MultipleContainer[Image], error) + func (c *Client) GetTags(req Request) (MultipleContainer[Tag], error) + func (c *Client) GetTagsWithContext(ctx context.Context, req Request) (MultipleContainer[Tag], error) + func (c *Client) GetWithContext(ctx context.Context, path string, query url.Values, result interface{}) error + func (c *Client) Post(path string, query url.Values, result interface{}) error + func (c *Client) PostReport(req Report) error + func (c *Client) PostReportWithContext(ctx context.Context, req Report) error + func (c *Client) PostWithContext(ctx context.Context, path string, query url.Values, result interface{}) error + type Color [3]int + type Image struct + Artist Artist + Characters []Character + ColorDominant Color + ColorPalette []Color + CreatedAt float64 + Duration int + HashMD5 string + HashPerceptual string + ID int + IDv2 string + ImageHeight int + ImageSize int + ImageURL string + ImageWidth int + IsAnimated bool + IsFlagged bool + IsOriginal bool + IsScreenshot bool + Rating string + SampleHeight int + SampleSize int + SampleURL string + SampleWidth int + Source string + SourceID int + Tags []Tag + UpdatedAt float64 + Verification string + func (im *Image) GetName() string + func (im *Image) GetPattern() string + func (im *Image) GetSampleName() string + type MultipleContainer struct + Count int + Items []T + type Report = url.Values + type Request = url.Values + func AddFields(r Request, args ...any) Request + func OneValue() Request + func SafeRequest() Request + func SetFields(r Request, args ...any) Request + type Tag struct + Description string + ID int + IDv2 string + IsNSFW bool + Name string + Sub string