malkeeper

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MalKeeper

type MalKeeper struct {
	Saver  *saver.Saver
	Config config.Config
}

MalKeeper instance.

func Basic

func Basic(malService *malscraper.MalService, cfg config.Config) (malKeeper *MalKeeper, err error)

Basic is initiating basic needs for malkeeper.

func New

func New(malService *malscraper.MalService, cfg config.Config) (malkeeper *MalKeeper, err error)

New to create new malkeeper object with user set config.

func (*MalKeeper) Enqueue added in v0.12.0

func (m *MalKeeper) Enqueue(t string, id int) (code int, err error)

Enqueue to request entry to be re-parsed.

func (*MalKeeper) EnqueueUser added in v0.17.0

func (m *MalKeeper) EnqueueUser(username string) (code int, err error)

EnqueueUser to request user to be re-parsed.

func (*MalKeeper) GetAnime

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

GetAnime to get anime details from db.

func (*MalKeeper) GetAnimeCharacter

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

GetAnimeCharacter to get anime characters from db.

func (*MalKeeper) GetAnimeStaff

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

GetAnimeStaff to get anime staff from db.

func (*MalKeeper) GetAnimeStats

func (m *MalKeeper) GetAnimeStats(id int) (stats model.Stats, code int, err error)

GetAnimeStats to get anime stats from db.

func (*MalKeeper) GetCharacter

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

GetCharacter to get character details from db.

func (*MalKeeper) GetCharacterAnime added in v0.12.0

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

GetCharacterAnime to get character's animeography from db.

func (*MalKeeper) GetCharacterManga added in v0.12.0

func (m *MalKeeper) GetCharacterManga(id int) (anime []model.Role, meta map[string]interface{}, code int, err error)

GetCharacterManga to get character's mangaography from db.

func (*MalKeeper) GetCharacterVA added in v0.12.0

func (m *MalKeeper) GetCharacterVA(id int) (anime []model.Role, meta map[string]interface{}, code int, err error)

GetCharacterVA to get character's voice actors from db.

func (*MalKeeper) GetGenres added in v0.17.0

func (m *MalKeeper) GetGenres() (list map[string][]model.IDName)

GetGenres to get all anime & manga genre list.

func (*MalKeeper) GetMagazine added in v0.12.0

func (m *MalKeeper) GetMagazine(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 (*MalKeeper) GetMagazines added in v0.12.0

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

GetMagazines to get anime producer/studio/licensor from db.

func (*MalKeeper) GetMainTotal added in v0.12.0

func (m *MalKeeper) GetMainTotal() (total model.MainTotal, code int, err error)

GetMainTotal to get anime seasonal list from db.

func (*MalKeeper) GetManga

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

GetManga to get manga details from db.

func (*MalKeeper) GetMangaCharacter

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

GetMangaCharacter to get manga characters from db.

func (*MalKeeper) GetMangaStats

func (m *MalKeeper) GetMangaStats(id int) (stats model.Stats, code int, err error)

GetMangaStats to get manga stats from db.

func (*MalKeeper) GetPeople

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

GetPeople to get people details from db.

func (*MalKeeper) GetPeopleManga added in v0.12.0

func (m *MalKeeper) GetPeopleManga(id int) (va []model.Role, meta map[string]interface{}, code int, err error)

GetPeopleManga to get people published manga list from db.

func (*MalKeeper) GetPeopleStaff added in v0.12.0

func (m *MalKeeper) GetPeopleStaff(id int) (va []model.Role, meta map[string]interface{}, code int, err error)

GetPeopleStaff to get people staff list from db.

func (*MalKeeper) GetPeopleVA added in v0.12.0

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

GetPeopleVA to get people voice actor list from db.

func (*MalKeeper) GetProducer added in v0.12.0

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

GetProducer to get producer/studio/licensor's anime list from db.

func (*MalKeeper) GetProducers added in v0.12.0

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

GetProducers to get anime producer/studio/licensor from db.

func (*MalKeeper) GetSeasonal added in v0.12.0

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

GetSeasonal to get anime seasonal list from db.

func (*MalKeeper) GetTopAnime added in v0.12.0

func (m *MalKeeper) GetTopAnime(topType int, page int, seasonYear ...interface{}) (list []model.Media, code int, err error)

GetTopAnime to get anime top list from db.

func (*MalKeeper) GetTopCharacter added in v0.12.0

func (m *MalKeeper) GetTopCharacter(page int) (list []model.SimpleEntry, code int, err error)

GetTopCharacter to get character top list from db.

func (*MalKeeper) GetTopManga added in v0.12.0

func (m *MalKeeper) GetTopManga(topType int, page int) (list []model.Media, code int, err error)

GetTopManga to get manga top list from db.

func (*MalKeeper) GetTopPeople added in v0.12.0

func (m *MalKeeper) GetTopPeople(page int) (list []model.SimpleEntry, code int, err error)

GetTopPeople to get people top list from db.

func (*MalKeeper) GetUser added in v0.17.0

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

GetUser to get user's anime and manga list.

func (*MalKeeper) GetUserAnime added in v0.17.0

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

GetUserAnime to get user's anime list.

func (*MalKeeper) GetUserAuthor added in v0.17.0

func (m *MalKeeper) GetUserAuthor(username string) (authors []model.UserStudioAuthor, code int, err error)

GetUserAuthor to get user's manga author.

func (*MalKeeper) GetUserGenre added in v0.17.0

func (m *MalKeeper) GetUserGenre(username string) (genres map[string][]model.UserGenre, code int, err error)

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

func (*MalKeeper) GetUserManga added in v0.17.0

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

GetUserManga to get user's manga list.

func (*MalKeeper) GetUserProgress added in v0.17.0

func (m *MalKeeper) GetUserProgress(username string) (progress model.UserProgress, code int, err error)

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

func (*MalKeeper) GetUserScore added in v0.17.0

func (m *MalKeeper) GetUserScore(username string) (summary map[string][]model.UserScore, code int, err error)

GetUserScore to get user's anime and manga score.

func (*MalKeeper) GetUserStats added in v0.17.0

func (m *MalKeeper) GetUserStats(username string) (summary map[string]model.UserStats, code int, err error)

GetUserStats to get user's anime and manga stats.

func (*MalKeeper) GetUserStudio added in v0.17.0

func (m *MalKeeper) GetUserStudio(username string) (studios []model.UserStudioAuthor, code int, err error)

GetUserStudio to get user's anime studio.

func (*MalKeeper) GetUserType added in v0.17.0

func (m *MalKeeper) GetUserType(username string) (summary map[string][]model.UserType, code int, err error)

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

func (*MalKeeper) GetUserYear added in v0.17.0

func (m *MalKeeper) GetUserYear(username string) (progress map[string][]model.UserYear, code int, err error)

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

func (*MalKeeper) GetYearlyScore added in v0.12.0

func (m *MalKeeper) GetYearlyScore() (summary map[int]model.YearlyScore, code int, err error)

GetYearlyScore to get yearly score summary from db.

func (*MalKeeper) QuickSearch added in v0.12.0

func (m *MalKeeper) QuickSearch(query string, limit ...int) (list []model.SimpleEntry, code int, err error)

QuickSearch to search anime, manga, character and people from db.

func (*MalKeeper) SearchAnime added in v0.12.0

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

SearchAnime to search anime from db.

func (*MalKeeper) SearchCharacter added in v0.12.0

func (m *MalKeeper) SearchCharacter(query string, pageLimit ...interface{}) (list []model.SimpleEntry, meta map[string]interface{}, code int, err error)

SearchCharacter to search character from db.

func (*MalKeeper) SearchManga added in v0.12.0

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

SearchManga to search manga from db.

func (*MalKeeper) SearchPeople added in v0.12.0

func (m *MalKeeper) SearchPeople(query string, pageLimit ...interface{}) (list []model.SimpleEntry, meta map[string]interface{}, code int, err error)

SearchPeople to search people/staff from db.

Source Files

Directories

Path Synopsis
raw

Jump to

Keyboard shortcuts

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