kaoriData

package module
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: MIT Imports: 13 Imported by: 1

README

KaoriData

Common data structures for multiple programs.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Anime

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

func NewAnime

func NewAnime() *Anime

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 EpLanguage

type EpLanguage string

type EpQuality

type EpQuality string

type Episode

type Episode struct {
	Number string `firestore:"number"`
	Title  string
	Links  map[EpLanguage]map[EpQuality]map[string]StreamLink `firestore:"links"`
}

func NewEpisode

func NewEpisode() *Episode
type StreamLink struct {
	Link     string  `firestore:"link"`
	Width    int     `firestore:"width"`
	Height   int     `firestore:"height"`
	Duration float64 `firestore:"duration"`
	Bitrate  int     `firestore:"bitrate"`
}

func (*StreamLink) GetQuality

func (sl *StreamLink) GetQuality(link string) error

Jump to

Keyboard shortcuts

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