Files
navidrome/model/transcoding.go
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
780 B
Go
Raw Normal View History

package model
import (
"context"
"github.com/deluan/rest"
)
type Transcoding struct {
2023-12-09 13:52:17 -05:00
ID string `structs:"id" json:"id"`
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"`
}
type Transcodings []Transcoding
type TranscodingRepository interface {
rest.Repository[Transcoding]
rest.Persistable[Transcoding]
Get(ctx context.Context, id string) (*Transcoding, error)
CountAll(ctx context.Context, options ...QueryOptions) (int64, error)
Put(ctx context.Context, t *Transcoding) error
FindByFormat(ctx context.Context, format string) (*Transcoding, error)
}