MCPcopy Index your code
hub / github.com/InferCore/InferCore / Store

Interface Store

internal/requests/store.go:12–19  ·  view source on GitHub ↗

Store persists requests and steps (ledger).

Source from the content-addressed store, hash-verified

10
11// Store persists requests and steps (ledger).
12type Store interface {
13 CreateRequest(ctx context.Context, row RequestRow) error
14 UpdateRequest(ctx context.Context, requestID string, patch RequestPatch) error
15 AppendStep(ctx context.Context, step StepRow) error
16 GetRequest(ctx context.Context, requestID string) (RequestRow, error)
17 ListSteps(ctx context.Context, requestID string) ([]StepRow, error)
18 Close() error
19}
20
21// RequestPatch updates mutable request fields.
22type RequestPatch struct {

Callers 25

TestReplay_UnknownModeFunction · 0.65
createLedgerRequestMethod · 0.65
updateLedgerFailedMethod · 0.65
updateLedgerPolicyMethod · 0.65
markLedgerSuccessMethod · 0.65
RunMethod · 0.65

Implementers 3

sqliteStoreinternal/requests/sqlite.go
postgresStoreinternal/requests/postgres.go
memoryStoreinternal/requests/memory.go

Calls

no outgoing calls

Tested by

no test coverage detected