Documentation
¶
Overview ¶
Package inspect is a read-only window into a memmy Neo4j database used by the eval harness to capture per-node state (weight, last touch, edge degree) before and after a query.
It opens its own bolt driver against the same Neo4j the live memmy service writes to. Reads run as managed read transactions and never interfere with the writer's session pool. This separation keeps memmy.MemoryService out of the harness's path and preserves the stateless-service contract (CLAUDE.md §0 #3).
Index ¶
- type Connection
- type NodeState
- type Reader
- func (r *Reader) Close() error
- func (r *Reader) ListNodes(ctx context.Context, tenant string) ([]string, error)
- func (r *Reader) ListTenants(ctx context.Context) ([]Tenant, error)
- func (r *Reader) NodeState(ctx context.Context, tenant, id string) (NodeState, bool, error)
- func (r *Reader) NodeStates(ctx context.Context, tenant string, ids []string) ([]NodeState, error)
- type Tenant
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
Connection bundles the Neo4j connection settings.
type NodeState ¶
type NodeState struct {
NodeID string
TenantID string
Weight float64
LastTouched time.Time
AccessCount uint64
EdgeCountOut int
EdgeCountIn int
}
NodeState is the slice of per-node metadata the harness cares about.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader is the read-only window. Open one against the same Neo4j instance the live service writes to.
func (*Reader) ListTenants ¶
ListTenants returns every tenant registered in the db.