recall

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package recall provides error constructors for session recall and reindexing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EventLogRead

func EventLogRead(cause error) error

EventLogRead wraps a failure to read the event log.

Parameters:

  • cause: the underlying error from the query operation.

Returns:

  • error: "reading event log: <cause>"

func OpenLogFile

func OpenLogFile(cause error) error

OpenLogFile wraps a failure to open a log file.

Parameters:

  • cause: the underlying OS error.

Returns:

  • error: "failed to open log file: <cause>"

func ReindexFileNotFound

func ReindexFileNotFound(fileName string) error

ReindexFileNotFound returns an error when the file to reindex does not exist.

Parameters:

  • fileName: Display name (e.g., "DECISIONS.md")

Returns:

  • error: "<fileName> not found. Run 'ctx init' first"

func ReindexFileRead

func ReindexFileRead(filePath string, cause error) error

ReindexFileRead wraps a read failure during reindexing.

Parameters:

  • filePath: Path that could not be read
  • cause: The underlying read error

Returns:

  • error: "failed to read <filePath>: <cause>"

func ReindexFileWrite

func ReindexFileWrite(filePath string, cause error) error

ReindexFileWrite wraps a write failure during reindexing.

Parameters:

  • filePath: Path that could not be written
  • cause: The underlying write error

Returns:

  • error: "failed to write <filePath>: <cause>"

func StatsGlob

func StatsGlob(cause error) error

StatsGlob wraps a failure to glob stats files.

Parameters:

  • cause: the underlying error from the glob operation.

Returns:

  • error: "globbing stats files: <cause>"

Types

This section is empty.

Jump to

Keyboard shortcuts

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