mirror of
https://github.com/navidrome/navidrome.git
synced 2024-09-11 20:12:54 +02:00
19 lines
506 B
Go
19 lines
506 B
Go
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 {
|
|
Get(id string) (*Transcoding, error)
|
|
CountAll(...QueryOptions) (int64, error)
|
|
Put(*Transcoding) error
|
|
FindByFormat(format string) (*Transcoding, error)
|
|
}
|