Documentation ¶
Index ¶
- Constants
- func BatchIndex(images *picture.Queue) error
- func Close()
- func DeleteDatabase() error
- func HasImage(md5 string) bool
- func HasPath(path string) (bool, error)
- func ImageFilePath(md5 string, fileName string) (string, error)
- func ImageFolder(md5 string) (string, error)
- func Index(picture *picture.Index) error
- func Open() error
- func Remove(keys []string) error
- func RemoveFiles(files []string) error
- func SetPhase(md5 string, name string) bool
- func WalkFiles(wf WalkFilesFunc)
- func WalkImages(wf WalkImagesFunc)
- type Query
- type StaticQuery
- type Statistics
- type TermQuery
- type WalkFilesFunc
- type WalkImagesFunc
Constants ¶
View Source
const ( PhaseThumb = "thumb" PhaseLocation = "location" PhaseObjects = "objects" PhaseFaces = "faces" )
View Source
const NOLIMIT = 0
View Source
const (
QueryDuplicates = 1
)
Variables ¶
This section is empty.
Functions ¶
func ImageFilePath ¶
ImageFilePath creates folder for image, and returns a file path for a name on that folder.
func ImageFolder ¶
ImageFolder creates and returns a folder name for an image on the database.
func RemoveFiles ¶
func WalkFiles ¶
func WalkFiles(wf WalkFilesFunc)
func WalkImages ¶
func WalkImages(wf WalkImagesFunc)
WalkImages executes function for all images in the database
Types ¶
type StaticQuery ¶
type StaticQuery struct {
// contains filtered or unexported fields
}
func NewStaticQuery ¶
func NewStaticQuery(queryType int) *StaticQuery
func (*StaticQuery) Query ¶
func (sq *StaticQuery) Query() error
func (*StaticQuery) Results ¶
func (sq *StaticQuery) Results() []*picture.Index
type Statistics ¶
func Stats ¶
func Stats() (Statistics, error)
type WalkFilesFunc ¶
Click to show internal directories.
Click to hide internal directories.