Documentation
¶
Index ¶
- type AudioFormat
- type Celebrity
- type Credential
- type DBInterface
- type Format
- type Media
- type MovieMedia
- type MusikMedia
- type MySQL
- type Password
- type Playable
- type Playlist
- type PlaylistItem
- type RememberMeToken
- type Session
- type Snippet
- func (S *Snippet) DoSnip(title Title, snipStart uint, snipLength uint) *Snippet
- func (S *Snippet) GetAudioFormat() []*AudioFormat
- func (S *Snippet) GetLength() uint
- func (S *Snippet) GetStart() uint
- func (S *Snippet) GetSubtitleFormat() []*SubtitleFormat
- func (S *Snippet) GetVideoFormat() []*VideoFormat
- type SubtitleFormat
- type Tag
- type Title
- type User
- type Video
- func (V *Video) DoSnip(title Title, snipStart uint, snipLength uint) *Snippet
- func (V *Video) GetAudioFormat() []*AudioFormat
- func (V *Video) GetLength() uint
- func (V *Video) GetStart() uint
- func (V *Video) GetSubtitleFormat() []*SubtitleFormat
- func (V *Video) GetVideoFormat() []*VideoFormat
- func (v *Video) String() string
- type VideoFormat
- type VideoMedia
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioFormat ¶
type Credential ¶
type DBInterface ¶
type DBInterface interface { GetVideo(id string) *Video GetSnippet(id string) *Snippet InsertSnippet(s *Snippet) GetVideoMedia(id string) *VideoMedia InsertVideoMedia(vm *VideoMedia) }
type MovieMedia ¶
type MusikMedia ¶
type MusikMedia struct { *Media Variants []*Video `json:"variants"` Artists []*Celebrity `json:"artists"` CleanAudio *VideoMedia `json:"cleanAudio"` BestVideo *VideoMedia `json:"bestVideo"` }
type MySQL ¶
type MySQL struct{}
func (*MySQL) GetSnippet ¶
func (*MySQL) GetVideoMedia ¶
func (m *MySQL) GetVideoMedia(id string) *VideoMedia
func (*MySQL) InsertSnippet ¶
func (*MySQL) InsertVideoMedia ¶
func (m *MySQL) InsertVideoMedia(vm *VideoMedia)
type Password ¶
func (*Password) GetSession ¶
type Playable ¶
type Playable interface { GetStart() uint GetLength() uint GetAudioFormat() []*AudioFormat GetVideoFormat() []*VideoFormat GetSubtitleFormat() []*SubtitleFormat IsSnippet() bool DoSnip(title Title, snipStart uint, snipLength uint) *Snippet }
type Playlist ¶
type Playlist struct { Title *Title `json:"title"` Items []*PlaylistItem `json:"items"` }
type PlaylistItem ¶
type RememberMeToken ¶
type RememberMeToken struct {
Token string `json:"token"`
}
func (*RememberMeToken) GetSession ¶
func (rm *RememberMeToken) GetSession() *Session
func (*RememberMeToken) IsValid ¶
func (rm *RememberMeToken) IsValid() bool
type Snippet ¶
type Snippet struct { Title *Title `json:"title"` Start uint `json:"start"` Length uint `json:"length"` Parent *Video `json:"parent"` }
func (*Snippet) GetAudioFormat ¶
func (S *Snippet) GetAudioFormat() []*AudioFormat
func (*Snippet) GetSubtitleFormat ¶
func (S *Snippet) GetSubtitleFormat() []*SubtitleFormat
func (*Snippet) GetVideoFormat ¶
func (S *Snippet) GetVideoFormat() []*VideoFormat
type SubtitleFormat ¶
type SubtitleFormat struct {
*Format
}
type Title ¶
type Video ¶
type Video struct { ID string `json:"id"` Title *Title `json:"title"` Length uint `json:"length"` AudioF []*AudioFormat `json:"audioFormats"` VideoF []*VideoFormat `json:"videoFormats"` SubtitleF []*SubtitleFormat `json:"subtitleFormats"` }
func (*Video) GetAudioFormat ¶
func (V *Video) GetAudioFormat() []*AudioFormat
func (*Video) GetSubtitleFormat ¶
func (V *Video) GetSubtitleFormat() []*SubtitleFormat
func (*Video) GetVideoFormat ¶
func (V *Video) GetVideoFormat() []*VideoFormat
type VideoFormat ¶
type VideoMedia ¶
func (*VideoMedia) String ¶
func (t *VideoMedia) String() string
Click to show internal directories.
Click to hide internal directories.