mridempotency

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 4 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) (mrlock.UnlockFunc, error)
	Get(ctx context.Context, key string) (Response, error)
	Store(ctx context.Context, key string, response Response) error
}

func NewNopProvider

func NewNopProvider() Provider

type Response

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

Jump to

Keyboard shortcuts

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