Documentation
¶
Index ¶
- type Content
- type DB
- func (db *DB) AllDocuments() ([]Document, error)
- func (db *DB) AllStats() (docCount int, totalPages int, err error)
- func (db *DB) CleanupOrphanContents() (int, error)
- func (db *DB) DeletePagesForContent(contentID int64) error
- func (db *DB) GetContentByChecksum(checksum string) (*Content, error)
- func (db *DB) GetDocumentByPath(path string) (*Document, error)
- func (db *DB) GetDocumentPathForContent(contentID int64) (string, error)
- func (db *DB) GetPageMarkdownByPathAndIndex(path string, pageIndex int) (string, error)
- func (db *DB) GetPagesMarkdownByPathAndRange(path string, startInclusive, endInclusive int) ([]PageRecord, error)
- func (db *DB) InsertContent(checksum string, pageCount int) (int64, error)
- func (db *DB) InsertDocument(path string, contentID int64, createdAt, modifiedAt time.Time) (int64, error)
- func (db *DB) ListDocuments(opts ListOptions) ([]Document, error)
- func (db *DB) MarkContentOCRDone(contentID int64) error
- func (db *DB) PendingContents() ([]Content, error)
- func (db *DB) PendingDocuments() ([]Document, error)
- func (db *DB) PendingStats() (docCount int, totalPages int, err error)
- func (db *DB) ReplaceContentPages(contentID int64, pages []PageInput) (err error)
- func (db *DB) ResetAllDocuments() (int, error)
- func (db *DB) RestoreDocument(id int64, contentID int64, modifiedAt time.Time) error
- func (db *DB) Search(query string) ([]SearchResult, error)
- func (db *DB) SearchWithOptions(opts SearchOptions) ([]SearchResult, error)
- func (db *DB) SoftDeleteMissing(seenPaths map[string]bool, roots []string) (int, error)
- func (db *DB) UpdateDocument(id int64, contentID int64, modifiedAt time.Time) error
- func (db *DB) UpsertPage(contentID int64, pageIndex int, markdown string) error
- type Document
- type ListOptions
- type PageInput
- type PageRecord
- type SearchOptions
- type SearchResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) AllDocuments ¶
func (*DB) CleanupOrphanContents ¶
func (*DB) DeletePagesForContent ¶
func (*DB) GetContentByChecksum ¶
func (*DB) GetDocumentPathForContent ¶
func (*DB) GetPageMarkdownByPathAndIndex ¶
func (*DB) GetPagesMarkdownByPathAndRange ¶
func (db *DB) GetPagesMarkdownByPathAndRange(path string, startInclusive, endInclusive int) ([]PageRecord, error)
func (*DB) InsertContent ¶
func (*DB) InsertDocument ¶
func (*DB) ListDocuments ¶
func (db *DB) ListDocuments(opts ListOptions) ([]Document, error)
func (*DB) MarkContentOCRDone ¶
func (*DB) PendingContents ¶
func (*DB) PendingDocuments ¶
func (*DB) ReplaceContentPages ¶
func (*DB) ResetAllDocuments ¶
func (*DB) RestoreDocument ¶
func (*DB) SearchWithOptions ¶
func (db *DB) SearchWithOptions(opts SearchOptions) ([]SearchResult, error)
func (*DB) SoftDeleteMissing ¶
func (*DB) UpdateDocument ¶
type ListOptions ¶
type SearchOptions ¶
Click to show internal directories.
Click to hide internal directories.