Documentation
¶
Index ¶
- func NewStore(db *sqlx.DB) creator.EncodeRepo
- type Store
- func (s *Store) DeleteFormat(ctx context.Context, formatID int) error
- func (s *Store) DeletePreset(ctx context.Context, presetID int) error
- func (s *Store) GetPreset(ctx context.Context, presetID int) (encode.Preset, error)
- func (s *Store) ListFormat(ctx context.Context) ([]encode.Format, error)
- func (s *Store) ListPreset(ctx context.Context) ([]encode.Preset, error)
- func (s *Store) NewFormat(ctx context.Context, format encode.Format) (int, error)
- func (s *Store) NewPreset(ctx context.Context, p encode.Preset) (int, error)
- func (s *Store) UpdateFormat(ctx context.Context, format encode.Format) error
- func (s *Store) UpdatePreset(ctx context.Context, p encode.Preset) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store contains our dependency
func (*Store) DeleteFormat ¶ added in v0.7.0
DeleteFormat will remove a format, videos using this format will need to be removed first
func (*Store) DeletePreset ¶ added in v0.7.0
DeletePreset deletes a preset, this won't affect any formats that are part of the preset
func (*Store) ListFormat ¶
ListFormat lists all encode formats
func (*Store) ListPreset ¶
ListPreset returns all presets
func (*Store) UpdateFormat ¶ added in v0.7.0
UpdateFormat will update the format
Click to show internal directories.
Click to hide internal directories.