Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAlreadyConnected = errors.New("IDEMPOTENCY.ALREADY_CONNECTED.ERROR") ErrNotConnected = errors.New("IDEMPOTENCY.NOT_CONNECTED.ERROR") ErrConflict = errors.New("IDEMPOTENCY.CONFLICT.ERROR") ErrKeyEmpty = errors.New("IDEMPOTENCY.KEY.EMPTY.ERROR") )
View Source
var CtxKey ctxkey = "idempotency.key"
Functions ¶
Types ¶
type Idempotency ¶
func New ¶
func New(conf *config.Config) (Idempotency, error)
New creates a new idempotency instance based on the provided configuration. The idempotency instance is initialized based on the URI scheme. Supported schemes are: - memory:// - redis:// If the URI scheme is not supported, an error is returned.
Click to show internal directories.
Click to hide internal directories.