idempotent

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewIdempotent)

Functions

This section is empty.

Types

type Idempotent

type Idempotent struct {
	// contains filtered or unexported fields
}

func NewIdempotent

func NewIdempotent(redis redis.UniversalClient) (idt *Idempotent, err error)

NewIdempotent is initialize idempotent from config.

func (Idempotent) Check

func (idt Idempotent) Check(ctx context.Context, token string) bool

func (Idempotent) Token

func (idt Idempotent) Token(ctx context.Context) string

Jump to

Keyboard shortcuts

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