Documentation ¶
Overview ¶
Date: 26/06/2019 // 2023/09/11 Created By ybenel
Package media manages video library functionality Date: 26/06/2019 Created By ybenel
Date: 26/06/2019 Created By ybenel
Date: 26/06/2019 Created By ybenel
Date: 26/06/2019 Created By ybenel
Index ¶
- type Library
- func (lib *Library) Add(logger *mylog.Logger, filepath string) error
- func (lib *Library) AddPath(p *Path) error
- func (lib *Library) GetContentType(ext string) string
- func (lib *Library) Import(logger *mylog.Logger, p *Path) error
- func (lib *Library) Playlist() Playlist
- func (lib *Library) Remove(logger *mylog.Logger, filepath string)
- type Path
- type Playlist
- type Video
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Library ¶
type Library struct { Paths map[string]*Path Videos map[string]*Video // contains filtered or unexported fields }
Library manages importing and retrieving video data.
func (*Library) GetContentType ¶
Handle Content Type Media
type Playlist ¶
type Playlist []*Video
Playlist holds an array of videos capable of sorting by Timestamp.
Click to show internal directories.
Click to hide internal directories.