Documentation
¶
Overview ¶
Package memory is part of the GoFastr harness.
See docs/harness-architecture.md for the architecture this package implements.
Package memory implements file-backed auto-memory matching the markdown+frontmatter pattern documented in docs/harness-architecture.md § Memory.
Layout under the memory root:
MEMORY.md index ("- [Title](file.md) — hook")
user_role.md one file per memory
feedback_testing.md
project_harness.md
Frontmatter required: name, description, metadata.type. Four types: user, feedback, project, reference.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
Name string // slug, used as filename minus ".md"
Description string
Type Type
Body string
Path string // absolute path on disk
}
Entry is one memory file.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is the file-backed memory store.
func New ¶
New returns a Store rooted at the given directory. The directory is created if it doesn't exist.
Click to show internal directories.
Click to hide internal directories.