Documentation ¶
Index ¶
- func GetAllDefaultResolutions(db *sql.DB) (defaultResolutions []resolution.Resolution, err error)
- func GetDefaultResolutionByID(resID resolution.ResolutionID, db *sql.DB) (res resolution.Resolution, err error)
- func NewDefaultResolution(height, width uint64, db *sql.DB) (res resolution.Resolution, err error)
- func RemoveDefaultResolution(resID resolution.ResolutionID, db *sql.DB) (err error)
- type DefaultResolutionStore
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)
Click to show internal directories.
Click to hide internal directories.