repo

package
v0.0.0-...-adab437 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mongo

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

Mongo type

func NewMongo

func NewMongo(db *mongo.Database) *Mongo

NewMongo creates new Repo

type SQLite

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

func NewSQLite

func NewSQLite(db *sql.DB) *SQLite

func (*SQLite) GetRandomImages

func (r *SQLite) GetRandomImages(limit int) ([]*models.DBImage, error)

func (*SQLite) ImagesCount

func (r *SQLite) ImagesCount() (int, error)

func (*SQLite) Prepare

func (r *SQLite) Prepare() error

func (*SQLite) RemoveFirstImages

func (r *SQLite) RemoveFirstImages(count int) error

func (*SQLite) SetImages

func (r *SQLite) SetImages(images []*models.DBImage) error

Jump to

Keyboard shortcuts

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