Versions in this module Expand all Collapse all v0 v0.1.7 Jul 7, 2021 v0.1.6 Jan 2, 2021 v0.1.5 Jan 2, 2021 v0.1.4 Nov 19, 2020 v0.1.3 Nov 16, 2020 v0.1.2 Nov 15, 2020 v0.1.1 Nov 15, 2020 Changes in this version + var ErrFileTooLarge = errors.New("File is too large") + var ErrInvalidAPIKey = errors.New("Invalid API key") + var ErrLongLimitReached = errors.New("24 hours rate limit reached") + var ErrRateLimitReached = errors.New("Rate limit reached") + var ErrShortLimitReached = errors.New("30 seconds rate limit reached") + type Config struct + APIKey string + DB DB + Results int + TestMode bool + func DefaultConfig() *Config + type DB int + const All + const Anime + const AnimePicturesnet + const Artstation + const BcynetCosplay + const BcynetIllust + const Danbooru + const DeviantArt + const DoujinshiDB + const Drawr + const E621net + const FAKKU + const FurAffinity + const Gelbooru + const HAnime + const HGameCG + const HMagazines + const HMisc + const HMiscEHentai + const IdolComplex + const Konachan + const Madokami + const MangaDex + const MediBang + const Movies + const NicoNicoSeiga + const Nijie + const Openingsmoe + const Pawoonet + const Pixiv + const PixivHistorical + const PortalGraphicsnet + const SankakuChannel + const Shows + const Shutterstock + const TwoDMarket + const Yandere + type Result struct + Data *ResultData + Header *ResultHeader + type ResultData struct + AnidbAid int + Artist string + Author string + AuthorName string + AuthorURL string + BcyID int + BcyType string + Creator interface{} + DaID int + DanbooruID int + DdbID int + DrawrID int + E621ID int + EngName string + ExternalURLs []string + File string + GelbooruID int + IdolID int + ImdbID int + JpName string + KonachanID int + Material string + MemberID int + MemberLinkID int + MemberName string + MuID int + NijieID int + Part string + PawooID int + PgID int + PixivID int + SankakuID int + SeigaID int + Source string + Title string + URL string + UserAcct string + YandereID int + type ResultHeader struct + IndexID int + IndexName string + Similarity string + Thumbnail string + type Sauce struct + Author *SauceAuthor + Pretty bool + Raw *Result + Similarity string + Thumbnail string + Title string + URLs *SauceURLs + type SauceAuthor struct + Name string + URL string + type SauceURLs struct + ExternalURLs []string + Source string + type Sengoku struct + DefaultConfig *Config + func NewSengoku(apikey string, config ...Config) *Sengoku + func (s *Sengoku) Search(imageURL string) ([]*Sauce, error) + func (s *Sengoku) SearchWithConfig(imageURL string, config *Config) ([]*Sauce, error)