mridempotency

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	Validate(key string) error
	Lock(ctx context.Context, key string) (unlock func(), err error)
	Get(ctx context.Context, key string) (Responser, error)
	Store(ctx context.Context, key string, response Responser) error
}

Provider - провайдер для управления идемпотентностью запроса.

type Responser added in v0.18.0

type Responser interface {
	StatusCode() int
	Body() []byte
}

Responser - интерфейс возвращения результата провайдером идемпотентности.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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