document

package
v0.6.0-beta Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryDialectBleve = indexer.QueryDialectBleve
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Indexer

type Indexer struct {
	indexer.Indexer
	// contains filtered or unexported fields
}

func NewDocumentIndexer

func NewDocumentIndexer(recorder metastore.DEntry, indexArgs map[string]string) (*Indexer, error)

type Manager

type Manager interface {
	ListDocuments(ctx context.Context, filter types.DocFilter, order *types.DocumentOrder) ([]*types.Document, error)
	QueryDocuments(ctx context.Context, query string) ([]*types.Document, error)
	SaveDocument(ctx context.Context, doc *types.Document) error
	GetDocument(ctx context.Context, id int64) (*types.Document, error)
	GetDocumentByEntryId(ctx context.Context, oid int64) (*types.Document, error)
	DeleteDocument(ctx context.Context, id int64) error
	ListDocumentGroups(ctx context.Context, parentId int64, filter types.DocFilter) ([]*types.Metadata, error)

	CreateFridayAccount(ctx context.Context, account *types.FridayAccount) error
}

func NewManager

func NewManager(recorder metastore.DEntry, entryMgr dentry.Manager, cfg config.Loader) (Manager, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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