defaultresolution

package
v0.0.0-...-f1991a8 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllDefaultResolutions

func GetAllDefaultResolutions(db *sql.DB) (defaultResolutions []resolution.Resolution, err error)

func GetDefaultResolutionByID

func GetDefaultResolutionByID(resID resolution.ResolutionID, db *sql.DB) (res resolution.Resolution, err error)

func NewDefaultResolution

func NewDefaultResolution(height, width uint64, db *sql.DB) (res resolution.Resolution, err error)

func RemoveDefaultResolution

func RemoveDefaultResolution(resID resolution.ResolutionID, db *sql.DB) (err error)

Types

type DefaultResolutionStore

type DefaultResolutionStore interface {
	GetAllDefaultResolutions() ([]resolution.Resolution, error)
	NewDefaultResolution(height, width uint64) (resolution.Resolution, error)
	GetDefaultResolutionByID(resolution.ResolutionID) (resolution.Resolution, error)
	RemoveDefaultResolutionByID(resolution.ResolutionID) error
}

func NewDefaultResolutionStore

func NewDefaultResolutionStore(db *sql.DB) (dResStore DefaultResolutionStore, err error)

Jump to

Keyboard shortcuts

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