kaoriData

package module
v0.1.1 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 Episode

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

func NewEpisode

func NewEpisode() *Episode

type InfoQuality added in v0.0.22

type InfoQuality struct {
	Width  int `firestore:"width"`
	Height int `firestore:"height"`
}
type StreamLink struct {
	Link     string  `firestore:"link"`
	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) 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