Documentation
¶
Index ¶
- type Note
- type Reader
- func (r *Reader) ListNotes(ctx context.Context) ([]Note, error)
- func (r *Reader) ListNotesByFolder(ctx context.Context, folder string) ([]Note, error)
- func (r *Reader) ListNotesByTag(ctx context.Context, tag string) ([]Note, error)
- func (r *Reader) ListRecentNotes(ctx context.Context, since time.Duration) ([]Note, error)
- func (r *Reader) ReadNote(ctx context.Context, path string) (*Note, error)
- func (r *Reader) RootDir() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Note ¶
type Note struct {
Path string `json:"path"`
Name string `json:"name"`
Content string `json:"content"`
Frontmatter map[string]any `json:"frontmatter,omitempty"`
Tags []string `json:"tags,omitempty"`
Links []string `json:"links,omitempty"`
ModTime time.Time `json:"mod_time"`
RelativePath string `json:"relative_path"`
}
Note represents a markdown note from an Obsidian vault or similar
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader reads markdown notes from a directory
func (*Reader) ListNotesByFolder ¶
ListNotesByFolder returns notes in a specific folder (relative path)
func (*Reader) ListNotesByTag ¶
ListNotesByTag returns notes with a specific tag
func (*Reader) ListRecentNotes ¶
ListRecentNotes returns notes modified within the given duration
Click to show internal directories.
Click to hide internal directories.