tokenStore

package
v1.16.21 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 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 struct {
	// contains filtered or unexported fields
}

func (Point) Destroy

func (a Point) Destroy(ctx context.Context) error

func (Point) Get

func (a Point) Get(ctx context.Context, iat time.Time, claims interface{}) error

func (Point) GetAndDestroy

func (a Point) GetAndDestroy(ctx context.Context, iat time.Time, claims interface{}) error

type StorePointData

type StorePointData struct {
	Iat    int64       `json:"iat"`
	Claims interface{} `json:"claims,omitempty"`
}

type TokenStore

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

func NewTokenStore

func NewTokenStore(Client *redis.Client, keyPrefix string) TokenStore

func (TokenStore) CreateStorePoint

func (a TokenStore) CreateStorePoint(ctx context.Context, iat time.Time, valid time.Duration, claims interface{}) (uint64, error)

func (TokenStore) NewStorePoint

func (a TokenStore) NewStorePoint(id uint64) Point

Jump to

Keyboard shortcuts

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