Documentation
¶
Index ¶
- func DBPath() (string, error)
- type Entry
- type Store
- func (s *Store) Close() error
- func (s *Store) CountByPersona(persona string) (int, error)
- func (s *Store) DeleteAll() (int64, error)
- func (s *Store) DeleteByPersona(persona string) (int64, error)
- func (s *Store) GetByID(id int64) (*Entry, error)
- func (s *Store) List(limit int) ([]*Entry, error)
- func (s *Store) ListByPersona(persona string, limit int) ([]*Entry, error)
- func (s *Store) Save(persona string, content string, modelID string, messageID string, ...) (*Entry, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entry ¶
type Entry struct {
ID int64
Persona string
Content string
CreatedAt time.Time
ModelID string
MessageID string
MetricsSnapshot *metrics.Snapshot
}
Entry represents a saved journal entry
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store handles persistence of journal entries
func (*Store) CountByPersona ¶ added in v0.0.5
CountByPersona returns the number of entries for a specific persona
func (*Store) DeleteByPersona ¶ added in v0.0.5
DeleteByPersona removes all entries for a specific persona
func (*Store) ListByPersona ¶
ListByPersona retrieves entries for a specific persona
Click to show internal directories.
Click to hide internal directories.