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

services

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewWithAudit

func NewWithAudit(l model.Ledger, a model.Authorizer, e model.EvidenceStore, options model.AuditOptions) (*Service, error)

func NewWithReads

func NewWithReads(l model.Ledger, a model.Authorizer, e model.EvidenceStore, options model.ReadOptions) (*Service, error)

func (*Service) AcceptFact

func (s *Service) AcceptFact(ctx context.Context, c model.Caller, r model.Approval) (observationResult model.CommitResult, observationErr error)

func (*Service) AcceptMemory

func (s *Service) AcceptMemory(ctx context.Context, c model.Caller, r model.Approval) (observationResult model.CommitResult, observationErr error)

func (*Service) ApproveFact

func (s *Service) ApproveFact(ctx context.Context, c model.Caller, r model.Approval) (observationResult model.CommitResult, observationErr error)

func (*Service) ApproveMemory

func (s *Service) ApproveMemory(ctx context.Context, c model.Caller, r model.Approval) (observationResult model.CommitResult, observationErr error)

func (*Service) CleanupProjection

func (*Service) CreateFactSnapshot

func (s *Service) CreateFactSnapshot(ctx context.Context, c model.Caller, r model.FactSnapshotRequest) (model.FactSnapshot, error)

func (*Service) DisposeAttestation

func (*Service) DisposeBatch

func (*Service) DisposeContext

func (*Service) DisposeConversation

func (*Service) DisposeEvidence

func (*Service) DisposeExtraction

func (*Service) DisposeOrphanEvidence

func (*Service) DisposeSnapshot

func (*Service) DisposeVersion

func (*Service) DisputeFact

func (*Service) DisputeMemory

func (*Service) GetAuditExport

func (*Service) GetCalculationReceipt

func (s *Service) GetCalculationReceipt(ctx context.Context, c model.Caller, q model.CalculationQuery) (model.CalculationRecord, error)

func (*Service) GetContextManifest

func (s *Service) GetContextManifest(ctx context.Context, c model.Caller, q model.ContextQuery) (model.ContextManifest, error)

func (*Service) GetConversation

func (*Service) GetDecisionReceipt

func (s *Service) GetDecisionReceipt(ctx context.Context, c model.Caller, q model.DecisionQuery) (model.DecisionRecord, error)

func (*Service) GetEvidenceContent

func (s *Service) GetEvidenceContent(ctx context.Context, c model.Caller, q model.EvidenceQuery) (observationResult model.EvidenceContent, observationErr error)

func (*Service) GetEvidenceMetadata

func (s *Service) GetEvidenceMetadata(ctx context.Context, c model.Caller, q model.EvidenceQuery) (model.Evidence, error)

func (*Service) GetExtractionRun

func (s *Service) GetExtractionRun(ctx context.Context, c model.Caller, q model.ExtractionRunQuery) (model.ExtractionRun, error)

func (*Service) GetFact

func (*Service) GetFactHistory

func (s *Service) GetFactHistory(ctx context.Context, c model.Caller, q model.HistoryQuery) (model.HistoryResult, error)

func (*Service) GetFactSnapshot

func (s *Service) GetFactSnapshot(ctx context.Context, c model.Caller, q model.SnapshotQuery) (model.FactSnapshot, error)

func (*Service) GetJob

func (*Service) GetMemory

func (*Service) GetMemoryHistory

func (s *Service) GetMemoryHistory(ctx context.Context, c model.Caller, q model.HistoryPageQuery) (model.HistoryPage, error)

func (*Service) GetMemoryVersion

func (s *Service) GetMemoryVersion(ctx context.Context, c model.Caller, q model.MemoryVersionQuery) (model.MemoryVersion, error)

func (*Service) GetProjectionStatus

func (*Service) GetRetentionStatus

func (*Service) GetScope

func (*Service) GetSubject

func (*Service) IngestConversation

func (s *Service) IngestConversation(ctx context.Context, c model.Caller, r model.ConversationRequest) (observationResult model.ConversationRecord, observationErr error)

func (*Service) ListChanges

ListChanges is scope-authorized replay, not a consumer acknowledgement API.

func (*Service) ListFactHistory

func (s *Service) ListFactHistory(ctx context.Context, c model.Caller, q model.HistoryPageQuery) (model.HistoryPage, error)

func (*Service) ListFacts

func (s *Service) ListFacts(ctx context.Context, c model.Caller, q model.FactsQuery) (model.FactsPage, error)

func (*Service) ListMemories

func (s *Service) ListMemories(ctx context.Context, c model.Caller, q model.MemoriesQuery) (model.MemoriesPage, error)

ListMemories pages through one scope's memory records in record-ID order and returns each one as GetMemory would resolve it at the pinned revision. Records without a version selected at ValidAt (pending, rejected, expired) and retracted memories are skipped, so a page may hold fewer than Limit items, or none, and still carry a NextPageToken.

func (*Service) LookupSubject

func (*Service) PlaceLegalHold

func (s *Service) PlaceLegalHold(ctx context.Context, c model.Caller, r model.LegalHoldRequest) (model.CommitResult, error)

func (*Service) PlanExtractionChunks

func (*Service) PrepareContext

func (s *Service) PrepareContext(ctx context.Context, c model.Caller, r model.ContextRequest) (observationResult model.ContextManifest, observationErr error)

func (*Service) ProposeFact

func (s *Service) ProposeFact(ctx context.Context, c model.Caller, r model.FactProposal) (observationResult model.CommitResult, observationErr error)

func (*Service) ProposeMemory

func (s *Service) ProposeMemory(ctx context.Context, c model.Caller, r model.MemoryProposal) (observationResult model.CommitResult, observationErr error)

func (*Service) PutScope

func (*Service) PutSubject

func (*Service) RebuildIndex

func (*Service) Recall

func (s *Service) Recall(ctx context.Context, c model.Caller, q model.RecallRequest) (observationResult model.RecallResult, observationErr error)

func (*Service) RecallMemories

func (s *Service) RecallMemories(ctx context.Context, c model.Caller, q model.RecallRequest) (observationResult model.MemoryRecallResult, observationErr error)

RecallMemories returns only ledger-revalidated eligible memory versions. Index bodies, dependency metadata and eligibility claims are never authoritative.

func (*Service) RecordAttestation

func (s *Service) RecordAttestation(ctx context.Context, c model.Caller, r model.AttestationRequest) (model.CommitResult, error)

func (*Service) RecordCalculation

func (*Service) RecordDecision

func (*Service) RecordDelegatedAttestation

func (s *Service) RecordDelegatedAttestation(ctx context.Context, c model.Caller, r model.DelegatedAttestationRequest) (model.CommitResult, error)

func (*Service) RegisterAcceptancePolicy

func (s *Service) RegisterAcceptancePolicy(ctx context.Context, c model.Caller, r model.PolicyRequest) (model.CommitResult, error)

func (*Service) RegisterEvidence

func (s *Service) RegisterEvidence(ctx context.Context, c model.Caller, r model.EvidenceRequest) (model.CommitResult, error)

func (*Service) RegisterMemoryType

func (s *Service) RegisterMemoryType(ctx context.Context, c model.Caller, r model.MemoryTypeRequest) (model.CommitResult, error)

func (*Service) RegisterPredicateVersion

func (s *Service) RegisterPredicateVersion(ctx context.Context, c model.Caller, r model.PredicateRequest) (model.CommitResult, error)

func (*Service) RegisterRedactedEvidence

func (s *Service) RegisterRedactedEvidence(ctx context.Context, c model.Caller, r model.RedactedEvidenceRequest) (model.CommitResult, error)

func (*Service) RegisterRetentionPolicy

func (s *Service) RegisterRetentionPolicy(ctx context.Context, c model.Caller, r model.RetentionPolicyRequest) (model.CommitResult, error)

func (*Service) RejectFact

func (*Service) RejectMemory

func (*Service) ReleaseLegalHold

func (*Service) ResolveDispute

func (s *Service) ResolveDispute(ctx context.Context, c model.Caller, r model.LifecycleChange) (model.CommitResult, error)

func (*Service) ResolveMemoryDispute

func (s *Service) ResolveMemoryDispute(ctx context.Context, c model.Caller, r model.LifecycleChange) (model.CommitResult, error)

func (*Service) RetractFact

func (*Service) RetractMemory

func (*Service) RetryJob

func (*Service) RunAuditExport

func (s *Service) RunAuditExport(ctx context.Context, c model.Caller, q model.AuditExportQuery) (observationResult model.AuditExportResult, observationErr error)

RunAuditExport processes one durable request. The trusted worker must supply the original requester identity; permissions are checked again at execution. Failed/cancelled attempts are retried after the lease expires. No worker starts implicitly.

func (*Service) RunExtraction

func (s *Service) RunExtraction(ctx context.Context, c model.Caller, r model.ExtractionRunRequest) (observationResult model.JobStatus, observationErr error)

func (*Service) ScanMemoryRefresh

ScanMemoryRefresh is a bounded operational scan over the immutable event-time dependency inventory. Each page independently authorizes source and target.

func (*Service) ScanOrphanEvidence

func (s *Service) ScanOrphanEvidence(ctx context.Context, c model.Caller, q model.OrphanEvidenceQuery) ([]model.ObjectRef, error)

func (*Service) StartAuditExport

func (*Service) StartExtraction

func (s *Service) StartExtraction(ctx context.Context, c model.Caller, r model.ExtractionRequest) (model.JobStatus, error)

func (*Service) StartMemoryRefresh

func (s *Service) StartMemoryRefresh(ctx context.Context, c model.Caller, r model.MemoryRefreshRequest) (model.JobStatus, error)

func (*Service) StartMemoryRefreshSweep

func (s *Service) StartMemoryRefreshSweep(ctx context.Context, c model.Caller, r model.MemoryRefreshSweepRequest) (model.CommitResult, error)

func (*Service) SupersedeFact

func (s *Service) SupersedeFact(ctx context.Context, c model.Caller, r model.Supersession) (model.CommitResult, error)

func (*Service) SupersedeMemory

func (s *Service) SupersedeMemory(ctx context.Context, c model.Caller, r model.Supersession) (model.CommitResult, error)

func (*Service) WaitForProjection

func (*Service) WithdrawAttestation

func (s *Service) WithdrawAttestation(ctx context.Context, c model.Caller, r model.Withdrawal) (model.CommitResult, error)

Jump to

Keyboard shortcuts

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