store

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoOpTransactionRecorder

type NoOpTransactionRecorder struct{}

NoOpTransactionRecorder is the default recorder when metrics are not configured.

func (NoOpTransactionRecorder) IncrementTransactionCommit

func (NoOpTransactionRecorder) IncrementTransactionCommit(string)

func (NoOpTransactionRecorder) IncrementTransactionError

func (NoOpTransactionRecorder) IncrementTransactionError(string, string)

func (NoOpTransactionRecorder) IncrementTransactionRollback

func (NoOpTransactionRecorder) IncrementTransactionRollback(string)

func (NoOpTransactionRecorder) RecordTransactionDuration

func (NoOpTransactionRecorder) RecordTransactionDuration(string, string, time.Duration)

type Repositories

type Repositories struct {
	Surfaces     surface.SurfaceRepository
	Agents       agent.AgentRepository
	Profiles     authority.ProfileRepository
	Grants       authority.GrantRepository
	Envelopes    envelope.EnvelopeRepository
	Audit        audit.AuditEventRepository
	ControlAudit controlaudit.Repository
	// Outbox is the transactional outbox repository. It is nil-safe at the
	// orchestrator level: callers must check for nil before appending events,
	// which preserves existing behaviour when the outbox is not configured.
	Outbox outbox.Repository
	// LocalUsers and LocalSessions are nil when local platform IAM is disabled.
	LocalUsers    localiam.UserRepository
	LocalSessions localiam.SessionRepository
}

type TransactionRecorder

type TransactionRecorder interface {
	RecordTransactionDuration(operation string, outcome string, d time.Duration)
	IncrementTransactionCommit(operation string)
	IncrementTransactionRollback(operation string)
	IncrementTransactionError(operation string, stage string)
}

TransactionRecorder tracks database transaction outcomes. Implementations should be safe for concurrent use.

Duration Semantics: RecordTransactionDuration measures transaction lifecycle latency at the persistence boundary, including begin, callback execution, and commit/rollback.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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