idempotency

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedResponse

type CachedResponse struct {
	Code int
	Body json.RawMessage
}

type IdempotencyKey

type IdempotencyKey struct {
	ID             string
	IdempotencyKey string
	NewStatus      IdempotencyKeyNewStatus
	FinishedStatus IdempotencyKeyFinishedStatus
	LockedStatus   IdempotencyKeyLockedStatus
	LastRunAt      time.Time
	LockOwner      *string
	CachedResponse *CachedResponse
}

A representation of an idempotency key that may be used by any other service to track the status of an idempotent request.

type IdempotencyKeyFinishedStatus

type IdempotencyKeyFinishedStatus string
const (
	IdempotencyKeyFinishedStatusIncomplete IdempotencyKeyFinishedStatus = "incomplete"
	IdempotencyKeyFinishedStatusFinished   IdempotencyKeyFinishedStatus = "finished"
)

type IdempotencyKeyLockedStatus

type IdempotencyKeyLockedStatus string
const (
	IdempotencyKeyLockedStatusUnlocked IdempotencyKeyLockedStatus = "unlocked"
	IdempotencyKeyLockedStatusLocked   IdempotencyKeyLockedStatus = "locked"
)

type IdempotencyKeyNewStatus

type IdempotencyKeyNewStatus string
const (
	IdempotencyKeyNewStatusExisting IdempotencyKeyNewStatus = "existing"
	IdempotencyKeyNewStatusNew      IdempotencyKeyNewStatus = "new"
)

type RecoveryPoint

type RecoveryPoint string
const (
	RecoveryPointStarted  RecoveryPoint = "started"
	RecoveryPointFinished RecoveryPoint = "finished"
)

func (RecoveryPoint) String

func (r RecoveryPoint) String() string

Jump to

Keyboard shortcuts

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