Documentation
¶
Index ¶
- type Options
- type Store
- func (s *Store) AddUsage(ctx context.Context, delta domain.UsageDelta) error
- func (s *Store) AppendAttemptTrace(ctx context.Context, trace domain.AttemptTrace) error
- func (s *Store) AppendAudit(ctx context.Context, item domain.AuditItem) error
- func (s *Store) AppendTranscript(ctx context.Context, item domain.TranscriptItem) error
- func (s *Store) Audit(ctx context.Context, id domain.SessionID, opts domain.ReadOptions) ([]domain.AuditItem, error)
- func (s *Store) CheckReadiness(ctx context.Context, policy domain.PolicyMetadata) error
- func (s *Store) Create(ctx context.Context, rec domain.CreateRecord) (domain.Record, error)
- func (s *Store) ListAttemptEvidence(ctx context.Context, id domain.SessionID, opts domain.ReadOptions) ([]domain.AttemptEvidence, error)
- func (s *Store) LoadByALegID(ctx context.Context, aLegID string) (domain.Record, error)
- func (s *Store) LoadByID(ctx context.Context, id domain.SessionID) (domain.Record, error)
- func (s *Store) LoadByResumeFingerprint(ctx context.Context, fp domain.TokenFingerprint) (domain.Record, error)
- func (s *Store) NextAuditSeq(ctx context.Context, id domain.SessionID) (int64, error)
- func (s *Store) NextTranscriptSeq(ctx context.Context, id domain.SessionID) (int64, error)
- func (s *Store) Quarantine(ctx context.Context, in domain.QuarantineInput) error
- func (s *Store) Summary(ctx context.Context, query domain.SummaryQuery) ([]domain.Summary, error)
- func (s *Store) TouchActivity(ctx context.Context, id domain.SessionID, at time.Time, ...) error
- func (s *Store) Transcript(ctx context.Context, id domain.SessionID, opts domain.ReadOptions) ([]domain.TranscriptItem, error)
- func (s *Store) UpdateAttemptOutcome(ctx context.Context, outcome domain.AttemptOutcome) error
- func (s *Store) UsageTokenTotals(ctx context.Context, id domain.SessionID) (int64, int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// ReadinessError, when non-nil, makes CheckReadiness return it (after policy checks).
ReadinessError error
// SimulateDurable treats the store as durable-ready for mandatory audit/durable policy gates.
SimulateDurable bool
}
Options configures the in-memory store (testing and non-durable runtime).
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a race-safe in-memory implementation of app.Store.
func (*Store) AppendAttemptTrace ¶
func (*Store) AppendAudit ¶
func (*Store) AppendTranscript ¶
func (*Store) CheckReadiness ¶
func (*Store) Create ¶
Create implements github.com/matdev83/go-llm-interactive-proxy/internal/core/securesession/app.Store.
func (*Store) ListAttemptEvidence ¶
func (s *Store) ListAttemptEvidence(ctx context.Context, id domain.SessionID, opts domain.ReadOptions) ([]domain.AttemptEvidence, error)
func (*Store) LoadByALegID ¶
func (*Store) LoadByResumeFingerprint ¶
func (*Store) NextAuditSeq ¶
func (*Store) NextTranscriptSeq ¶
func (*Store) Quarantine ¶
Quarantine marks a session terminal and appends a secret_guard blocked audit row.
func (*Store) TouchActivity ¶
func (*Store) Transcript ¶
func (s *Store) Transcript(ctx context.Context, id domain.SessionID, opts domain.ReadOptions) ([]domain.TranscriptItem, error)
func (*Store) UpdateAttemptOutcome ¶
Click to show internal directories.
Click to hide internal directories.