2020-02-29 20:01:09 -05:00
|
|
|
package model
|
|
|
|
|
|
2026-09-25 18:06:10 -04:00
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
|
|
|
|
|
"github.com/deluan/rest"
|
|
|
|
|
)
|
|
|
|
|
|
2020-02-29 20:01:09 -05:00
|
|
|
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 {
|
2026-09-25 18:06:10 -04:00
|
|
|
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)
|
2020-02-29 20:01:09 -05:00
|
|
|
}
|