kaoriData

package module
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: MIT Imports: 16 Imported by: 1

README

KaoriData

Common data structures for multiple programs.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeEpNumber added in v0.1.2

func NormalizeEpNumber(eps []float64) (name string)

Types

type Anime

type Anime struct {
	Id       string     `firestore:"-"`
	Name     string     `firestore:"name"`
	Episodes []*Episode `firestore:"episodes"`
}

func NewAnime

func NewAnime() *Anime

func (*Anime) AppendFile added in v0.1.3

func (a *Anime) AppendFile(filePath string) error

func (*Anime) CheckAnime added in v0.2.8

func (a *Anime) CheckAnime() error

func (*Anime) GetAnimeEpisodeDb added in v0.1.8

func (a *Anime) GetAnimeEpisodeDb(c *firestore.Client, ctx context.Context) error

func (*Anime) GetAnimeFromDb added in v0.1.7

func (a *Anime) GetAnimeFromDb(c *firestore.Client, ctx context.Context) error

func (*Anime) GetAnimeInfoFromDb added in v0.1.7

func (a *Anime) GetAnimeInfoFromDb(c *firestore.Client, ctx context.Context) error

func (*Anime) SendToDb

func (a *Anime) SendToDb(c *firestore.Client, ctx context.Context) error

func (*Anime) SendToKaori

func (a *Anime) SendToKaori(kaoriUrl, token string) error

type Chapter added in v0.2.6

type Chapter struct {
	Number string
	Title  string
	Pages  []*Page
}

func NewChapter added in v0.2.9

func NewChapter() *Chapter

type Episode

type Episode struct {
	Number string `firestore:"number"`
	Title  string
	Videos []*Video
}

func NewEpisode

func NewEpisode() *Episode

func (*Episode) CheckEpisode added in v0.2.8

func (ep *Episode) CheckEpisode() error

type InfoQuality added in v0.0.22

type InfoQuality struct {
	Width  int `firestore:"width"`
	Height int `firestore:"height"`
}

type Manga added in v0.2.6

type Manga struct {
	Id             string
	Name           string
	ChaptersNumber int
	Chapters       []*Chapter
}

func NewManga added in v0.2.9

func NewManga() *Manga

func (*Manga) AppendFile added in v0.2.6

func (m *Manga) AppendFile(filePath string) error

func (*Manga) SendToDatabase added in v0.2.7

func (m *Manga) SendToDatabase(c *firestore.Client, ctx context.Context) error

func (*Manga) SendToKaori added in v0.2.6

func (m *Manga) SendToKaori(kaoriServer, token string) error

type Page added in v0.2.6

type Page struct {
	Number   string
	Language string
	Server   string
	Link     string
}

func NewPage added in v0.2.9

func NewPage() *Page
type StreamLink struct {
	Link     string  `firestore:"link"`
	Fansub   string  `firestore:"fansub"`
	Duration float64 `firestore:"duration"`
	Bitrate  int     `firestore:"bitrate"`
}

type Video added in v0.1.0

type Video struct {
	Language   string
	Modality   string
	Quality    *InfoQuality
	Server     string
	StreamLink *StreamLink
}

func NewVideo added in v0.1.0

func NewVideo() *Video

func (*Video) CheckVideo added in v0.2.8

func (v *Video) CheckVideo() error

func (*Video) GetQuality added in v0.1.0

func (v *Video) GetQuality(link string) error

Jump to

Keyboard shortcuts

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