Documentation
¶
Overview ¶
Package testsupport contains explicitly non-production dependencies used by framework tests. It is internal so external applications cannot mistake these implementations for durable governance adapters.
Index ¶
- type DirectTransactions
- type DiscardAudit
- type MemoryIdempotencyStore
- func (store *MemoryIdempotencyStore) Abort(_ context.Context, record actionpersistence.IdempotencyRecord) error
- func (store *MemoryIdempotencyStore) Complete(_ context.Context, record actionpersistence.IdempotencyRecord) error
- func (store *MemoryIdempotencyStore) Lookup(_ context.Context, record actionpersistence.IdempotencyRecord) (*actionpersistence.IdempotencyRecord, error)
- func (store *MemoryIdempotencyStore) Reserve(_ context.Context, record actionpersistence.IdempotencyRecord) (*actionpersistence.IdempotencyRecord, error)
- type MemoryPlanStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirectTransactions ¶
type DirectTransactions struct{}
DirectTransactions is a non-atomic test transaction manager.
func (DirectTransactions) WithinTransaction ¶
type MemoryIdempotencyStore ¶
type MemoryIdempotencyStore struct {
// contains filtered or unexported fields
}
MemoryIdempotencyStore is a non-durable test IdempotencyStore.
func NewMemoryIdempotencyStore ¶
func NewMemoryIdempotencyStore() *MemoryIdempotencyStore
func (*MemoryIdempotencyStore) Abort ¶
func (store *MemoryIdempotencyStore) Abort(_ context.Context, record actionpersistence.IdempotencyRecord) error
func (*MemoryIdempotencyStore) Complete ¶
func (store *MemoryIdempotencyStore) Complete(_ context.Context, record actionpersistence.IdempotencyRecord) error
func (*MemoryIdempotencyStore) Lookup ¶
func (store *MemoryIdempotencyStore) Lookup(_ context.Context, record actionpersistence.IdempotencyRecord) (*actionpersistence.IdempotencyRecord, error)
func (*MemoryIdempotencyStore) Reserve ¶
func (store *MemoryIdempotencyStore) Reserve(_ context.Context, record actionpersistence.IdempotencyRecord) (*actionpersistence.IdempotencyRecord, error)
type MemoryPlanStore ¶
type MemoryPlanStore struct {
// contains filtered or unexported fields
}
MemoryPlanStore is a non-durable test PlanStore.
func NewMemoryPlanStore ¶
func NewMemoryPlanStore() *MemoryPlanStore
func (*MemoryPlanStore) DeleteExpired ¶
Click to show internal directories.
Click to hide internal directories.