Versions in this module Expand all Collapse all v0 v0.3.3 Nov 18, 2026 v0.3.2 Nov 8, 2026 v0.3.1 Nov 5, 2026 v0.3.0 Nov 1, 2026 v0.2.0 Oct 21, 2026 Changes in this version + func ContentHash(doc *Document) (string, error) + type AniDBSource struct + TitlesDump string type Anime + MALIDs []int + func (a *Anime) TVDBSeries() []int type Episode + TMDBMovies []int type Index + func (x *Index) AtTMDBMovie(id int) []Landing + func (x *Index) AtTVDBEpisodeID(id int) []Landing + func (x *Index) Movies(e Entry) [][]int + type MappingSource struct + Revision string + type Placement struct + Default bool + ID int type Run + TMDBMovies []int type Sources + AniDB AniDBSource + Mapping MappingSource type Statement + Placements []Placement type TVDBReading + Unstated bool + func (r TVDBReading) On(series int) SeriesReading type Target + EpisodeIDs []int + Series int v0.1.0 Oct 17, 2026 Changes in this version + const Version + var ErrChecksum = errors.New("mapread: checksum mismatch") + var ErrInvalid = errors.New("mapread: invalid document") + var ErrNotDocument = errors.New("mapread: not an animap document") + var ErrRedirect = errors.New("mapread: redirect refused") + var ErrRelease = errors.New("mapread: unexpected release answer") + var ErrTooLarge = errors.New("mapread: over a decode limit") + var ErrVersion = errors.New("mapread: unsupported version") + func Encode(doc *Document) ([]byte, error) + func ValidType(t string) bool + type AniDBEpisode struct + ID int + type AniDBMirrorSource struct + Commit string + Repository string + type Anime struct + AniDBID int + Episodes []Run + EpisodesListed bool + IMDbIDs []string + Last Last + TMDBMovieIDs []int + TMDBTVID int + TVDBID int + Type string + type AnimeListsSource struct + Commit string + File string + Repository string + type Attribution struct + ContentsLicense string + ContentsLicenseURL string + License string + LicenseURL string + Notice string + type Document struct + Anime []Anime + Attribution Attribution + Entries []Entry + GeneratedAt string + Sources Sources + Version int + func Decode(r io.Reader, lim Limits) (*Document, error) + type Entry struct + AniListID int + Episodes int + IDs *IDs + Parts []Part + Type string + type EntryEpisode struct + Number int + Refs []AniDBEpisode + type Episode struct + ID int + Listing Listing + TMDB *Statement + TVDB *Statement + type Fetched struct + Bytes int64 + Document *Document + SHA256 [32]byte + type IDs struct + ANN []int + AniDB []int + AniSearch []int + AnimeCountdown []int + AnimePlanet []string + Kitsu []int + LiveChart []int + MAL []int + NotifyMoe []string + Simkl []int + type Index struct + func NewIndex(doc *Document) *Index + func (x *Index) Anime(aid int) (Anime, bool) + func (x *Index) AtTMDB(at TMDBEpisode) []Landing + func (x *Index) AtTVDB(at TVDBEpisode) []Landing + func (x *Index) Entry(al int) (Entry, bool) + func (x *Index) Episode(ref Ref) (Episode, bool) + func (x *Index) Episodes(e Entry) []EntryEpisode + func (x *Index) OnTVDB(ep EntryEpisode) TVDBReading + func (x *Index) Routes(e Entry) Routes + func (x *Index) Series(series int) []Span + func (x *Index) TMDBMovie(id int) []int + func (x *Index) TVDBSeasons(e Entry) []SeriesSeasons + type Kind string + const Credit + const Other + const Parody + const Promotion + const Regular + const Special + func Kinds() []Kind + type Landing struct + Default bool + type Last struct + Credit int + Other int + Parody int + Promotion int + Regular int + Special int + func (l Last) Of(k Kind) int + func (l Last) Set(k Kind, n int) Last + type Limits struct + MaxDocumentBytes int64 + MaxEpisodes int + MaxRowBytes int + MaxRows int + func DefaultLimits() Limits + type Listing int + const Listed + const ListingUnknown + const NotListed + type OfflineDatabaseSource struct + Asset string + Release string + Repository string + SHA256 string + type OverlaySource struct + Entries int + Links int + SHA256 string + type Part struct + AniDBID int + Combined bool + End int + Kind Kind + Start int + func (p Part) Identity() bool + type Ref struct + AniDB int + Kind Kind + Number int + type Release struct + Source Source + Tag string + func (r Release) Fetch(ctx context.Context, c *http.Client, lim Limits) (Fetched, error) + type Routes struct + IMDb []string + TMDBMovies []int + TMDBShows []int + TVDB []int + type Run struct + AniDBEpisodeIDs []int + End int + Kind Kind + Start int + TMDB *[]Target + TVDB *[]Target + func (r *Run) ExtendedBy(next *Run) bool + type SeasonBasis struct + Default bool + Season int + type SeasonEpisodes struct + Default []int + Season int + Stated []int + type SeriesReading struct + Seasons []SeasonBasis + Series int + Unstated bool + type SeriesSeasons struct + Nowhere int + Seasons []SeasonEpisodes + Series int + Unstated int + type Source struct + Base string + Repo string + func (s Source) Latest(ctx context.Context, c *http.Client) (Release, error) + type Sources struct + AniDBMirror AniDBMirrorSource + AnimeLists AnimeListsSource + AnimeOfflineDatabase OfflineDatabaseSource + Overlay OverlaySource + type Span struct + AniDB int + Exact bool + First TVDBEpisode + Last TVDBEpisode + type State int + const Lands + const Nowhere + const Unstated + type Statement struct + State State + Targets []Target + type StatusError struct + Code int + URL string + func (e *StatusError) Error() string + type TMDBEpisode struct + Episode int + Season int + Show int + type TVDBEpisode struct + Episode int + Season int + Series int + type TVDBReading struct + Off bool + Series []SeriesReading + type Target struct + Default bool + Episode int + Season int + type VersionError struct + Found int + func (*VersionError) Unwrap() error + func (e *VersionError) Error() string