mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 21:17:37 +03:00
18 lines
506 B
Go
18 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)
|
|
}
|