Documentation
¶
Index ¶
- type ChapterResource
- type Definition
- type MP3
- type MP3ChapterResource
- type Mp3Resource
- type Resourcer
- func NewChapter(title string, chapterList []Resourcer) Resourcer
- func NewM3U8(concurrency int, title string, url string) (Resourcer, error)
- func NewMP3Chapter(title string, chapterList []Mp3Resource) Resourcer
- func NewMp3(mp3 *MP3) Resourcer
- func NewURL(title string, url string) Resourcer
- func NewURLCombineResource(title string, urls []string) Resourcer
- func NewURLCombineWithOption(title string, urls []string, option *URLCombineOption) Resourcer
- func NewURLWithSpecification(title string, specifications []*Specification) Resourcer
- type Resourcer2
- type ResourcerAfterTrigger
- type Specification
- type SpecificationList
- type Tag
- type URLCombineOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChapterResource ¶
type Definition ¶
type Definition string
https://www.image-engineering.de/library/technotes/991-separating-sd-hd-full-hd-4k-and-8k
const ( DefinitionSD Definition = "sd" DefinitionHD Definition = "hd" DefinitionFullHD Definition = "full-hd" DefinitionUHD Definition = "uhd" Definition4K Definition = "4k" Definition8K Definition = "8k" )
func ConvertDefinition ¶
func ConvertDefinition(s string) (Definition, error)
func MayConvertDefinition ¶
func MayConvertDefinition(s string) Definition
type MP3 ¶
type MP3ChapterResource ¶
type MP3ChapterResource interface {
Resourcer
Chapters() []Mp3Resource
}
type Mp3Resource ¶
func NewMp32 ¶
func NewMp32(mp3 *MP3) Mp3Resource
type Resourcer ¶
type Resourcer interface {
Title() string
Reader() (int64, io.ReadCloser, error)
}
func NewChapter ¶
func NewMP3Chapter ¶
func NewMP3Chapter(title string, chapterList []Mp3Resource) Resourcer
func NewURLCombineResource ¶
func NewURLCombineWithOption ¶
func NewURLCombineWithOption(title string, urls []string, option *URLCombineOption) Resourcer
func NewURLWithSpecification ¶
func NewURLWithSpecification(title string, specifications []*Specification) Resourcer
type Resourcer2 ¶
type Resourcer2 interface {
Title() string
Reader2() (func() int64, io.ReadCloser, error)
}
type ResourcerAfterTrigger ¶
type Specification ¶
type Specification struct {
Size int64 `json:"size"`
Definition Definition `json:"definition"`
URL string `json:"url"`
}
type SpecificationList ¶
type SpecificationList []*Specification
func (SpecificationList) GetMax ¶
func (r SpecificationList) GetMax() *Specification
Click to show internal directories.
Click to hide internal directories.