types

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnimeInfo

type AnimeInfo struct {
	ID            string      `json:"id"`
	Title         string      `json:"title"`
	URL           string      `json:"url,omitempty"`
	Image         string      `json:"image,omitempty"`
	Description   string      `json:"description,omitempty"`
	Genres        []string    `json:"genres,omitempty"`
	Status        MediaStatus `json:"status,omitempty"`
	TotalEpisodes int         `json:"totalEpisodes,omitempty"`
	ReleaseDate   string      `json:"releaseDate,omitempty"`
	Type          MediaFormat `json:"type,omitempty"`
	Episodes      []Episode   `json:"episodes,omitempty"`
}

Info types

type Episode

type Episode struct {
	ID     string `json:"id"`
	Number int    `json:"number"`
	Season int    `json:"season,omitempty"`
	Title  string `json:"title,omitempty"`
	URL    string `json:"url,omitempty"`
}

Episode types

type EpisodeServer

type EpisodeServer struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

Server types

type MangaChapter

type MangaChapter struct {
	ID     string `json:"id"`
	Title  string `json:"title"`
	Number string `json:"number"`
}

type MangaInfo

type MangaInfo struct {
	ID          string         `json:"id"`
	Title       string         `json:"title"`
	URL         string         `json:"url,omitempty"`
	Image       string         `json:"image,omitempty"`
	Description string         `json:"description,omitempty"`
	Genres      []string       `json:"genres,omitempty"`
	Status      MediaStatus    `json:"status,omitempty"`
	Chapters    []MangaChapter `json:"chapters,omitempty"`
}

type MangaPage

type MangaPage struct {
	URL   string `json:"url"`
	Index int    `json:"index"`
}

type MangaPages

type MangaPages struct {
	Pages []*MangaPage `json:"pages"`
}

type MediaFormat

type MediaFormat string
const (
	MediaFormatTV      MediaFormat = "TV"
	MediaFormatMovie   MediaFormat = "MOVIE"
	MediaFormatOVA     MediaFormat = "OVA"
	MediaFormatONA     MediaFormat = "ONA"
	MediaFormatSpecial MediaFormat = "SPECIAL"
)

type MediaStatus

type MediaStatus string

Common types

const (
	MediaStatusOngoing   MediaStatus = "ONGOING"
	MediaStatusCompleted MediaStatus = "COMPLETED"
	MediaStatusUnknown   MediaStatus = "UNKNOWN"
)

type MovieInfo

type MovieInfo struct {
	ID                      string    `json:"id"`
	Title                   string    `json:"title"`
	URL                     string    `json:"url,omitempty"`
	Image                   string    `json:"image,omitempty"`
	Description             string    `json:"description,omitempty"`
	Genres                  []string  `json:"genres,omitempty"`
	ReleaseDate             string    `json:"releaseDate,omitempty"`
	Rating                  string    `json:"rating,omitempty"`
	Type                    string    `json:"type,omitempty"`
	LastSeason              int       `json:"lastSeason,omitempty"`
	TotalEpisodesLastSeason int       `json:"totalEpisodesLastSeason,omitempty"`
	Episodes                []Episode `json:"episodes,omitempty"`
}

type SearchResult

type SearchResult struct {
	ID          string `json:"id"`
	Title       string `json:"title"`
	Image       string `json:"image,omitempty"`
	URL         string `json:"url,omitempty"`
	ReleaseDate string `json:"releaseDate,omitempty"`
	Type        string `json:"type,omitempty"`
}

Search result types

type SearchResults

type SearchResults struct {
	Results []SearchResult `json:"results"`
}

type Source

type Source struct {
	URL     string `json:"url"`
	Quality string `json:"quality,omitempty"`
	IsM3U8  bool   `json:"isM3U8,omitempty"`
	Referer string `json:"referer"`
}

Source types

type Subtitle

type Subtitle struct {
	URL  string `json:"url"`
	Lang string `json:"lang"`
}

type VideoSources

type VideoSources struct {
	Sources   []Source   `json:"sources"`
	Subtitles []Subtitle `json:"subtitles"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL