2020-02-29 20:01:09 -05:00
|
|
|
package model
|
|
|
|
|
|
|
|
|
|
type Transcoding struct {
|
|
|
|
|
ID string `json:"id" orm:"column(id)"`
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
TargetFormat string `json:"targetFormat"`
|
|
|
|
|
Command string `json:"command"`
|
|
|
|
|
DefaultBitRate int `json:"defaultBitRate"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
|
|
}
|