encode

package
v0.9.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore(db *sqlx.DB) creator.EncodeRepo

NewStore creates our data store

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store contains our dependency

func (*Store) DeleteFormat added in v0.7.0

func (s *Store) DeleteFormat(ctx context.Context, formatID int) error

DeleteFormat will remove a format, videos using this format will need to be removed first

func (*Store) DeletePreset added in v0.7.0

func (s *Store) DeletePreset(ctx context.Context, presetID int) error

DeletePreset deletes a preset, this won't affect any formats that are part of the preset

func (*Store) GetPreset

func (s *Store) GetPreset(ctx context.Context, presetID int) (encode.Preset, error)

GetPreset returns a preset by ID

func (*Store) ListFormat

func (s *Store) ListFormat(ctx context.Context) ([]encode.Format, error)

ListFormat lists all encode formats

func (*Store) ListPreset

func (s *Store) ListPreset(ctx context.Context) ([]encode.Preset, error)

ListPreset returns all presets

func (*Store) NewFormat added in v0.7.0

func (s *Store) NewFormat(ctx context.Context, format encode.Format) (int, error)

NewFormat creates a new format

func (*Store) NewPreset

func (s *Store) NewPreset(ctx context.Context, p encode.Preset) (int, error)

NewPreset creates a new preset

func (*Store) UpdateFormat added in v0.7.0

func (s *Store) UpdateFormat(ctx context.Context, format encode.Format) error

UpdateFormat will update the format

func (*Store) UpdatePreset

func (s *Store) UpdatePreset(ctx context.Context, p encode.Preset) error

UpdatePreset updates an existing preset

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL