encode

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store contains our dependency

func NewStore

func NewStore(db *sqlx.DB) *Store

NewStore creates our data store

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) NewPreset

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

NewPreset creates a new preset

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