repositories

package
v0.0.0-...-3b7a923 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Messenger

type Messenger interface {
	ResourcesWatcher() // TODO: remove this unused function, make sure to regenerate mock
	Publish(data interface{}, queueName string) error
	ReadMessage(result chan<- interface{}, queueName string, setQos bool)
}

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
}

type WorkerRepository

type WorkerRepository interface {
	Get(workerId uint) models.Worker
	GetAll(limit int64) ([]*models.Worker, error)
	Add(worker *models.Worker) error
	Upsert(worker *models.Worker) error
	Delete(podName string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL