loader

package
Version: v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAnime

func GetAnime(s *saver.Saver, id int) (anime model.Anime, meta map[string]interface{}, code int, err error)

GetAnime to get anime details from db.

func GetAnimeCharacter

func GetAnimeCharacter(s *saver.Saver, id int) (chars []model.AnimeCharacter, meta map[string]interface{}, code int, err error)

GetAnimeCharacter to get anime's character list from db.

func GetAnimeStaff

func GetAnimeStaff(s *saver.Saver, id int) (staff []model.Role, meta map[string]interface{}, code int, err error)

GetAnimeStaff to get anime's staff list from db.

func GetAnimeTopList added in v0.12.0

func GetAnimeTopList(s *saver.Saver, topType int, page int, params ...interface{}) (list []model.Media, code int, err error)

GetAnimeTopList to get top list of anime.

func GetCharacter

func GetCharacter(s *saver.Saver, id int) (character model.Character, meta map[string]interface{}, code int, err error)

GetCharacter to get character details from db.

func GetCharacterAnime added in v0.12.0

func GetCharacterAnime(s *saver.Saver, id int) (anime []model.Role, meta map[string]interface{}, code int, err error)

GetCharacterAnime to get character's animeography.

func GetCharacterManga added in v0.12.0

func GetCharacterManga(s *saver.Saver, id int) (manga []model.Role, meta map[string]interface{}, code int, err error)

GetCharacterManga to get character's mangaography.

func GetCharacterTopList added in v0.12.0

func GetCharacterTopList(s *saver.Saver, page int) (list []model.SimpleEntry, code int, err error)

GetCharacterTopList to get top list of character.

func GetCharacterVA added in v0.12.0

func GetCharacterVA(s *saver.Saver, id int) (va []model.Role, meta map[string]interface{}, code int, err error)

GetCharacterVA to get character's voice actors.

func GetGenres added in v0.17.0

func GetGenres(s *saver.Saver) (list map[string][]model.IDName)

GetGenres to get list of all anime & manga genre list.

func GetMagazine added in v0.12.0

func GetMagazine(s *saver.Saver, id int, page int, params ...string) (list []model.Media, meta map[string]interface{}, code int, err error)

GetMagazine to get magazine's manga list from db.

func GetMagazines added in v0.12.0

func GetMagazines(s *saver.Saver) (list []model.IDName, meta map[string]interface{}, code int, err error)

GetMagazines to get animme producer/studio/licensor list from db.

func GetMainTotal added in v0.12.0

func GetMainTotal(s *saver.Saver) (total model.MainTotal, code int, err error)

GetMainTotal to get main type count summary.

func GetManga

func GetManga(s *saver.Saver, id int) (manga model.Manga, meta map[string]interface{}, code int, err error)

GetManga to get manga details from db.

func GetMangaCharacter

func GetMangaCharacter(s *saver.Saver, id int) (chars []model.Role, meta map[string]interface{}, code int, err error)

GetMangaCharacter to get manga's character list from db.

func GetMangaTopList added in v0.12.0

func GetMangaTopList(s *saver.Saver, topType int, page int) (list []model.Media, code int, err error)

GetMangaTopList to get top list of manga.

func GetPeople

func GetPeople(s *saver.Saver, id int) (people model.People, meta map[string]interface{}, code int, err error)

GetPeople to get people details from db.

func GetPeopleManga added in v0.12.0

func GetPeopleManga(s *saver.Saver, id int) (manga []model.Role, meta map[string]interface{}, code int, err error)

GetPeopleManga to get people's published manga list from db.

func GetPeopleStaff added in v0.12.0

func GetPeopleStaff(s *saver.Saver, id int) (staff []model.Role, meta map[string]interface{}, code int, err error)

GetPeopleStaff to get people's anime staff roles list from db.

func GetPeopleTopList added in v0.12.0

func GetPeopleTopList(s *saver.Saver, page int) (list []model.SimpleEntry, code int, err error)

GetPeopleTopList to get top list of people.

func GetPeopleVA added in v0.12.0

func GetPeopleVA(s *saver.Saver, id int) (va []model.VoiceActor, meta map[string]interface{}, code int, err error)

GetPeopleVA to get people's anime character roles list from db.

func GetProducer added in v0.12.0

func GetProducer(s *saver.Saver, id int, page int, params ...string) (list []model.Media, meta map[string]interface{}, code int, err error)

GetProducer to get producer's anime list from db.

func GetProducerMagazine added in v0.12.0

func GetProducerMagazine(s *saver.Saver, t string) (list []model.IDName, meta map[string]interface{}, code int, err error)

GetProducerMagazine to get producer/studio/licensor/magazine list from db.

func GetProducers added in v0.12.0

func GetProducers(s *saver.Saver) (list []model.IDName, meta map[string]interface{}, code int, err error)

GetProducers to get animme producer/studio/licensor list from db.

func GetSeasonal added in v0.12.0

func GetSeasonal(s *saver.Saver, season string, year int) (list []model.Season, meta map[string]interface{}, code int, err error)

GetSeasonal to get anime seasonal list from db.

func GetStats

func GetStats(s *saver.Saver, t string, id int) (stats model.Stats, code int, err error)

GetStats to get anime & manga stats from db.

func GetUser added in v0.17.0

func GetUser(s *saver.Saver, username string) (user model.User, meta map[string]interface{}, code int, err error)

GetUser to get user from db.

func GetUserAnime added in v0.17.0

func GetUserAnime(s *saver.Saver, username string) (list []model.UserEntry, meta map[string]interface{}, code int, err error)

GetUserAnime to get user's anime list.

func GetUserAuthor added in v0.17.0

func GetUserAuthor(s *saver.Saver, username string) (authors []model.UserStudioAuthor, code int, err error)

GetUserAuthor to get user's manga's author count and score.

func GetUserGenre added in v0.17.0

func GetUserGenre(s *saver.Saver, username string) (genres map[string][]model.UserGenre, code int, err error)

GetUserGenre to get user's anime and manga genre type count and score.

func GetUserManga added in v0.17.0

func GetUserManga(s *saver.Saver, username string) (list []model.UserEntry, meta map[string]interface{}, code int, err error)

GetUserManga to get user's manga list.

func GetUserProgress added in v0.17.0

func GetUserProgress(s *saver.Saver, username string) (progress model.UserProgress, code int, err error)

GetUserProgress to get user's anime and manga episode/chapter count and score.

func GetUserScore added in v0.17.0

func GetUserScore(s *saver.Saver, username string) (score map[string][]model.UserScore, code int, err error)

GetUserScore to get user's anime and manga score count.

func GetUserStats added in v0.17.0

func GetUserStats(s *saver.Saver, username string) (stats map[string]model.UserStats, code int, err error)

GetUserStats to get user's anime and manga stats.

func GetUserStudio added in v0.17.0

func GetUserStudio(s *saver.Saver, username string) (studios []model.UserStudioAuthor, code int, err error)

GetUserStudio to get user's anime's studio count and score.

func GetUserType added in v0.17.0

func GetUserType(s *saver.Saver, username string) (formats map[string][]model.UserType, code int, err error)

GetUserType to get user's anime and manga format type count and score.

func GetUserYear added in v0.17.0

func GetUserYear(s *saver.Saver, username string) (years map[string][]model.UserYear, code int, err error)

GetUserYear to get user's anime and manga year count and score.

func GetYearlyScore added in v0.12.0

func GetYearlyScore(s *saver.Saver) (summary map[int]model.YearlyScore, code int, err error)

GetYearlyScore to get summary score for each year.

func QuickSearch added in v0.12.0

func QuickSearch(s *saver.Saver, query string, params ...int) (list []model.SimpleEntry, code int, err error)

QuickSearch to search entry from 4 main tables.

func SearchAnime added in v0.12.0

func SearchAnime(s *saver.Saver, query model.AnimeQuery) (list []model.Media, meta map[string]interface{}, code int, err error)

SearchAnime to search anime from db.

func SearchCharacter added in v0.12.0

func SearchCharacter(s *saver.Saver, query string, params ...interface{}) (list []model.SimpleEntry, meta map[string]interface{}, code int, err error)

SearchCharacter to search character from db.

func SearchManga added in v0.12.0

func SearchManga(s *saver.Saver, query model.MangaQuery) (list []model.Media, meta map[string]interface{}, code int, err error)

SearchManga to search anime from db.

func SearchPeople added in v0.12.0

func SearchPeople(s *saver.Saver, query string, params ...interface{}) (list []model.SimpleEntry, meta map[string]interface{}, code int, err error)

SearchPeople to search people from db.

Types

This section is empty.

Jump to

Keyboard shortcuts

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