malkeeper

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 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) GetAnime

func (m *MalKeeper) GetAnime(id int) (anime model.Anime, code int, err error)

GetAnime to get anime details from db.

func (*MalKeeper) GetAnimeCharacter

func (m *MalKeeper) GetAnimeCharacter(id int) (chars []model.Role, code int, err error)

GetAnimeCharacter to get anime characters from db.

func (*MalKeeper) GetAnimeStaff

func (m *MalKeeper) GetAnimeStaff(id int) (staff []model.Role, 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, code int, err error)

GetCharacter to get character details from db.

func (*MalKeeper) GetManga

func (m *MalKeeper) GetManga(id int) (manga model.Manga, code int, err error)

GetManga to get manga details from db.

func (*MalKeeper) GetMangaCharacter

func (m *MalKeeper) GetMangaCharacter(id int) (chars []model.Role, 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, code int, err error)

GetPeople to get people details from db.

Directories

Path Synopsis
raw

Jump to

Keyboard shortcuts

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