tokenStore

package
v1.19.3 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Point

type Point[C any] struct {
	// contains filtered or unexported fields
}

func (Point[C]) Destroy

func (a Point[C]) Destroy(ctx context.Context) error

func (Point[C]) Get

func (a Point[C]) Get(ctx context.Context, claims *C) error

func (Point[C]) GetAndDestroy

func (a Point[C]) GetAndDestroy(ctx context.Context, claims *C) error

type TokenStore

type TokenStore[C any] struct {
	// contains filtered or unexported fields
}

func NewTokenStore

func NewTokenStore[C any](Client *redis.Client, keyPrefix string) TokenStore[C]

func (TokenStore[C]) CreateStorePoint

func (a TokenStore[C]) CreateStorePoint(ctx context.Context, valid time.Duration, claims *C) (uint64, error)

func (TokenStore[C]) CreateStorePointWithID added in v1.17.36

func (a TokenStore[C]) CreateStorePointWithID(ctx context.Context, id uint64, valid time.Duration, claims *C) error

func (TokenStore[C]) NewStorePoint

func (a TokenStore[C]) NewStorePoint(id uint64) Point[C]

Jump to

Keyboard shortcuts

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