engine

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoteEngine

type NoteEngine interface {
	// Initialize the engine with a database connection
	Initialize(dbPath string, options map[string]string) error
	// Create a new note
	CreateNote(content, headline string, tags []string) (models.Note, error)
	// Read a note by ID
	ReadNote(noteId utils.NoteId) (*models.Note, error)
	// Update an existing note
	UpdateNote(noteId utils.NoteId, content, headline string, tags []string) error
	// Delete a note by ID
	DeleteNote(noteId utils.NoteId) error
	// List all notes with optional tag filter
	ListNotes(tags []string) ([]*models.Note, error)
	// Search notes by content or headline
	SearchNotes(query string) ([]*models.Note, error)
	// Close the engine and release resources
	Close() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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