Help us shape the future of Go! Take the 2026 Go Developer Survey

memory

package
v1.33.5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package memory is the public SDK facade over Harbor's internal/memory package — the cumulative session-memory administrative surface and its committed source projections (RFC §3.6, §6.6). Alias-based re-exports only: no behavior lives here. Driver factories, event emission helpers, and Protocol wire projections are deliberately private.

Index

Constants

View Source
const (
	// HealthHealthy — the store is fully operational.
	HealthHealthy = internal.HealthHealthy
	// HealthRetry — transient failures; retrying.
	HealthRetry = internal.HealthRetry
	// HealthDegraded — the store is degraded.
	HealthDegraded = internal.HealthDegraded
	// HealthRecovering — the store is recovering.
	HealthRecovering = internal.HealthRecovering
)

Health values.

View Source
const (
	// StrategyNone explicitly disables session memory.
	StrategyNone = internal.StrategyNone
	// StrategyRollingSummary — LLM-backed rolling summarisation.
	StrategyRollingSummary = internal.StrategyRollingSummary
)

Strategy values.

View Source
const DefaultDriver = internal.DefaultDriver

DefaultDriver is the driver name Open resolves when the config names none.

Variables

View Source
var (
	// ErrInvalidInspection rejects malformed committed memory projections.
	ErrInvalidInspection = internal.ErrInvalidInspection
	// ErrNotFound — no record under that key.
	ErrNotFound = internal.ErrNotFound
	// ErrIdentityRequired — the identity triple is incomplete.
	ErrIdentityRequired = internal.ErrIdentityRequired
	// ErrUnknownDriver — the named memory driver is not registered.
	ErrUnknownDriver = internal.ErrUnknownDriver
	// ErrStoreClosed — the store has been closed.
	ErrStoreClosed = internal.ErrStoreClosed
)

Re-exported sentinel errors callers compare via errors.Is.

From extracts the store from ctx, reporting presence.

View Source
var MustFrom = internal.MustFrom

MustFrom extracts the store from ctx, panicking when absent.

Open resolves the configured memory driver and opens it.

View Source
var OpenDriver = internal.OpenDriver

OpenDriver opens a memory driver by explicit name.

View Source
var RegisteredDrivers = internal.RegisteredDrivers

RegisteredDrivers lists the seated memory driver names (blank-import sdk/drivers/prod to seat the production set).

View Source
var SnapshotFromConfig = internal.SnapshotFromConfig

SnapshotFromConfig projects the operator config block into the resolved ConfigSnapshot Open consumes.

View Source
var WithStore = internal.WithStore

WithStore returns a child context carrying the store.

Functions

This section is empty.

Types

type ConfigSnapshot

type ConfigSnapshot = internal.ConfigSnapshot

ConfigSnapshot is the resolved memory configuration.

type ConversationTurn

type ConversationTurn = internal.ConversationTurn

ConversationTurn is an administrator-supplied conversational note.

type Deps

type Deps = internal.Deps

Deps carries the shared StateStore, event bus and redactor.

type Health

type Health = internal.Health

Health is the store's degradation state.

type Inspection added in v1.32.0

type Inspection = internal.Inspection

Inspection is the bounded administrative view of execution memory.

type Item added in v1.32.0

type Item = internal.Item

Item is one source-keyed committed memory projection.

type MemoryStore

type MemoryStore = internal.MemoryStore

MemoryStore is the identity-mandatory memory store interface.

type Strategy

type Strategy = internal.Strategy

Strategy names the memory compaction strategy.

Jump to

Keyboard shortcuts

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