imagedb

package
v0.0.0-...-5d631fd Latest Latest
Warning

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

Go to latest
Published: May 24, 2019 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageDB

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

func NewImageDB

func NewImageDB(db storm.Node) *ImageDB

func (*ImageDB) GetImage

func (idb *ImageDB) GetImage(hash string) (image.Image, error)

func (*ImageDB) GetImageData

func (idb *ImageDB) GetImageData(hash string) ([]byte, error)

func (*ImageDB) ImportScreenshot

func (idb *ImageDB) ImportScreenshot(fileName string, recordId int, img *image.RGBA) error

func (*ImageDB) ListImages

func (idb *ImageDB) ListImages() ([]*model.ImageMetadata, error)

func (*ImageDB) LookupFile

func (idb *ImageDB) LookupFile(fileName string) (*model.ImageMetadata, error)

Jump to

Keyboard shortcuts

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