Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLogger ¶
func SetLogger(l *zap.SugaredLogger)
Types ¶
type APIServer ¶
type APIServer struct { *Configuration // contains filtered or unexported fields }
APIServer ties HTTP API together and allows to start/shutdown the web server.
func NewServer ¶
func NewServer(cfg *Configuration) *APIServer
type Configuration ¶
type Configuration struct {
// contains filtered or unexported fields
}
func Configure ¶
func Configure() *Configuration
func (*Configuration) Addr ¶
func (c *Configuration) Addr(addr string) *Configuration
func (*Configuration) Debug ¶
func (c *Configuration) Debug(debug bool) *Configuration
func (*Configuration) VideoManager ¶
func (c *Configuration) VideoManager(videoManager *VideoManager) *Configuration
func (*Configuration) VideoPath ¶
func (c *Configuration) VideoPath(videoPath string) *Configuration
type VideoManager ¶
type VideoManager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(q *queue.Queue, l *video.Library) *VideoManager
func (*VideoManager) GetVideoOrCreateTask ¶
func (m *VideoManager) GetVideoOrCreateTask(uri, kind string) (Video, error)
GetVideoOrCreateTask checks if video exists in the library or is waiting in the queue. If neither, it validates and adds video for later processing.
Click to show internal directories.
Click to hide internal directories.