2020-02-29 20:01:09 -05:00
|
|
|
package model
|
|
|
|
|
|
|
|
|
|
type Transcoding struct {
|
2023-12-09 13:52:17 -05:00
|
|
|
ID string `structs:"id" json:"id"`
|
2021-08-01 01:21:20 -04:00
|
|
|
Name string `structs:"name" json:"name"`
|
|
|
|
|
TargetFormat string `structs:"target_format" json:"targetFormat"`
|
|
|
|
|
Command string `structs:"command" json:"command"`
|
|
|
|
|
DefaultBitRate int `structs:"default_bit_rate" json:"defaultBitRate"`
|
2020-02-29 20:01:09 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Transcodings []Transcoding
|
|
|
|
|
|
|
|
|
|
type TranscodingRepository interface {
|
2020-03-16 12:56:15 -04:00
|
|
|
Get(id string) (*Transcoding, error)
|
2020-03-17 16:49:37 -04:00
|
|
|
CountAll(...QueryOptions) (int64, error)
|
2020-02-29 20:01:09 -05:00
|
|
|
Put(*Transcoding) error
|
2020-03-16 14:28:13 -04:00
|
|
|
FindByFormat(format string) (*Transcoding, error)
|
2020-02-29 20:01:09 -05:00
|
|
|
}
|