search

package
v0.1.0-dev Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteIndexRecord

type DeleteIndexRecord struct {
	ItemName   string
	ItemPath   string
	BucketSlug string
	DbId       string // DbId is only required for shared content
}

type FilesSearchEngine

type FilesSearchEngine interface {
	Start() error
	InsertFileData(ctx context.Context, data *InsertIndexRecord) (*IndexRecord, error)
	DeleteFileData(ctx context.Context, data *DeleteIndexRecord) error
	QueryFileData(ctx context.Context, query string, limit int) ([]*IndexRecord, error)
}

Represents Search Engines for File and Folders Can be used for indexing and querying of File/Folders

type IndexRecord

type IndexRecord struct {
	Id            string
	ItemName      string
	ItemExtension string
	ItemPath      string
	ItemType      string
	// Metadata here
	BucketSlug string
	DbId       string
}

type InsertIndexRecord

type InsertIndexRecord struct {
	ItemName      string
	ItemExtension string
	ItemPath      string
	ItemType      string
	BucketSlug    string
	DbId          string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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