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
}
Click to show internal directories.
Click to hide internal directories.