logstore

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Author

func Author() string

Types

type ActionType

type ActionType string
const (
	ActionAdded      ActionType = "ADDED"
	ActionChanged    ActionType = "CHANGED"
	ActionDeprecated ActionType = "DEPRECATED"
	ActionFixed      ActionType = "FIXED"
	ActionDecision   ActionType = "DECISION"
)

type MemoryLogEntry

type MemoryLogEntry struct {
	LogID         string     `json:"log_id"`
	Timestamp     time.Time  `json:"timestamp"`
	Author        string     `json:"author"`
	Action        ActionType `json:"action"`
	TargetDocs    []string   `json:"target_docs"`
	Tags          []string   `json:"tags"`
	Summary       string     `json:"summary"`
	Reasoning     string     `json:"reasoning,omitempty"`
	AffectedFiles []string   `json:"affected_files,omitempty"`
	PRReference   string     `json:"pr_reference,omitempty"`
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

func New

func New(path string) (*Store, error)

func (*Store) Append

func (s *Store) Append(entry *MemoryLogEntry) error

func (*Store) LastLogID

func (s *Store) LastLogID() (string, error)

func (*Store) ReadAfter

func (s *Store) ReadAfter(logID string) ([]MemoryLogEntry, error)

ReadAfter returns entries whose LogID sorts after the given ID. UUIDv7 is time-ordered, so lexicographic string comparison preserves insertion order.

Jump to

Keyboard shortcuts

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