db

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllImage

func AllImage(db *storm.DB) (<-chan Image, <-chan error)

AllImage returns all images via channel.

func OpenDB

func OpenDB(path string) (*storm.DB, error)

OpenDB opens a storm db from path.

func OpenPath

func OpenPath() (string, error)

OpenPath infers a random path under the config directory for storing a temporary db.

Types

type Image

type Image struct {
	SID       int `storm:"id,increment"`
	PID       string
	IID       string
	Name      string
	Filename  string `storm:"index"`
	Filetype  string
	URL       string
	LocalPath string
	Hash      string
	State     string
	Width     int
	Height    int
	GP        float64
	Error     string
}

Image represents an image in the db.

Jump to

Keyboard shortcuts

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