storage

package
v0.0.0-...-0297a03 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect()

Types

type Handler

type Handler interface {
	AddIfNotExists(m *media.Media) error

	GetByID(id string, m *media.Media) error
	GetByCategory(category string, medias *[]*media.Media) error
	GetAll(medias *[]*media.Media) error
	GetCategories(categories *interface{}) error

	Update(id string, l *media.Media) error

	DeleteByID(id string) error
	DeleteAll() error

	DropDatabase() error
}
var MediaHandler Handler

Jump to

Keyboard shortcuts

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