idempotency

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lookup

func Lookup(db *sql.DB, key, command string) (map[string]any, error)

Lookup returns a cached result envelope for key+command, or nil if absent. Mismatched command for the same key returns *safety.BadArgs. Mirrors tgcli.idempotency.lookup.

func Record

func Record(db *sql.DB, key, command, requestID string, result map[string]any) error

Record persists a successful write result envelope for later replay. No-op when key is empty. Mirrors tgcli.idempotency.record.

Types

This section is empty.

Jump to

Keyboard shortcuts

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