Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskRepository ¶
type TaskRepository interface { Get(taskId string) models.Task GetAll(limit int64) ([]*models.Task, error) GetOneByVideoNameAndKind(name string, kind models.TaskKind) (*models.Task, error) GetTranscodeTasksByVideoNameAndResolution(name, resolution string) ([]*models.Task, error) Add(task *models.Task) error Update(task *models.Task) error Delete(taskId string) error }
type VideoRepository ¶
type VideoRepository interface { Get(videoId uint) models.Video GetAvailable(limit int64) ([]*models.Video, error) GetOneByName(key string) (*models.Video, error) Find(key string) []*models.Video Add(video *models.Video) error AddMany(videoList []*models.Video) error Update(video *models.Video) error Delete(videoId uint) error }
Click to show internal directories.
Click to hide internal directories.