Documentation ¶
Index ¶
- Constants
- Variables
- func DownloadAODB(ctx context.Context) (r io.ReadCloser, err error)
- func DownloadAniDB(ctx context.Context) (r io.ReadCloser, err error)
- func DownloadVNDB(ctx context.Context) (*fsCloser, error)
- func DownloadVNDBUsingTempDir(ctx context.Context, temp string) (fsc *fsCloser, err error)
- func NewVNDBImageDecoder(r io.Reader) *genericLineDecoder[VNDBImage]
- func NewVNDBTitleDecoder(r io.Reader) *genericLineDecoder[VNDBTitle]
- func NewVNDBVisualNovelDecoder(r io.Reader) *genericLineDecoder[VNDBVisualNovel]
- func VNDBCDNURLFromImageID(imgID string) string
- type AniDBEntry
- type AniDBEntryDecoder
- type AnimeOfflineDatabaseDecoder
- type AnimeOfflineDatabaseEntry
- type AnimeOfflineDatabaseSeason
- type Iterator
- type VNDBImage
- type VNDBTitle
- type VNDBVisualNovel
Constants ¶
View Source
const ( AniDBEntryTypePrimary = "primary" AniDBEntryTypeSynonym = "synonym" AniDBEntryTypeShort = "short" AniDBEntryTypeOfficial = "official" )
Variables ¶
View Source
var ErrFinished = io.EOF
Functions ¶
func DownloadAODB ¶
func DownloadAODB(ctx context.Context) (r io.ReadCloser, err error)
Returns a ReadCloser for the anime-offline-database-minified.json file. The caller is responsible for closing the ReadCloser.
func DownloadAniDB ¶
func DownloadAniDB(ctx context.Context) (r io.ReadCloser, err error)
Returns a ReadCloser for the anidb-titles.dat file The caller is responsible for closing the ReadCloser.
func DownloadVNDB ¶
Returns an fs.FS that also implements io.Closer. The caller is responsible for closing the fsCloser. Same as: DownloadVNDBUsingTempDir(ctx, "")
func DownloadVNDBUsingTempDir ¶
Returns an fs.FS that also implements io.Closer. The caller is responsible for closing the fsCloser, which will remove the temporary directory.
func NewVNDBImageDecoder ¶
func NewVNDBTitleDecoder ¶
func NewVNDBVisualNovelDecoder ¶
func NewVNDBVisualNovelDecoder(r io.Reader) *genericLineDecoder[VNDBVisualNovel]
func VNDBCDNURLFromImageID ¶
Types ¶
type AniDBEntryDecoder ¶
type AniDBEntryDecoder struct {
// contains filtered or unexported fields
}
func NewAniDBEntryDecoder ¶
func NewAniDBEntryDecoder(r io.Reader) *AniDBEntryDecoder
func (*AniDBEntryDecoder) DecodeAll ¶
func (a *AniDBEntryDecoder) DecodeAll() (entries []AniDBEntry, err error)
func (*AniDBEntryDecoder) Next ¶
func (a *AniDBEntryDecoder) Next() (entry AniDBEntry, err error)
type AnimeOfflineDatabaseDecoder ¶
type AnimeOfflineDatabaseDecoder struct {
// contains filtered or unexported fields
}
func NewAnimeOfflineDatabaseDecoder ¶
func NewAnimeOfflineDatabaseDecoder(r io.Reader) *AnimeOfflineDatabaseDecoder
func (*AnimeOfflineDatabaseDecoder) DecodeAll ¶
func (a *AnimeOfflineDatabaseDecoder) DecodeAll() (entries []AnimeOfflineDatabaseEntry, err error)
func (*AnimeOfflineDatabaseDecoder) Next ¶
func (a *AnimeOfflineDatabaseDecoder) Next() (entry AnimeOfflineDatabaseEntry, err error)
type AnimeOfflineDatabaseEntry ¶
type AnimeOfflineDatabaseEntry struct { Sources []string `json:"sources"` Title string `json:"title"` Type string `json:"type"` Episodes int `json:"episodes"` Status string `json:"status"` Season AnimeOfflineDatabaseSeason `json:"animeSeason"` Picture string `json:"picture"` Thumbnail string `json:"thumbnail"` Synonyms []string `json:"synonyms"` Relations []string `json:"relations"` Tags []string `json:"tags"` }
type VNDBImage ¶
type VNDBVisualNovel ¶
Click to show internal directories.
Click to hide internal directories.