Documentation ¶
Overview ¶
Package idempotency implements methods to maintain idempotency with the commands received
Index ¶
Constants ¶
View Source
const (
// Name represents idempotency name
Name = "Idempotency"
)
Variables ¶
This section is empty.
Functions ¶
func CleanupOldIdempotencyEntries ¶
CleanupOldIdempotencyEntries deletes the commands in idempotency folder after persistenceTimeout minutes
func CreateIdempotencyDirectory ¶
CreateIdempotencyDirectory creates idempotency directory and logs warn message if could not be created This function passes if the directory is already present
func CreateIdempotencyEntry ¶
func CreateIdempotencyEntry(idemCtx context.T, message *contracts.DocumentState) error
CreateIdempotencyEntry writes command id to the idempotency directory
func IsDocumentAlreadyReceived ¶
func IsDocumentAlreadyReceived(idemCtx context.T, message *contracts.DocumentState) bool
IsDocumentAlreadyReceived checks whether the document was received already
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.