cache

package
v0.0.0-...-9139af7 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TokenValidator is the cache token validator
	TokenValidator gojwtcache.TokenValidator

	// SetTokenToCache sets the token to the cache
	SetTokenToCache func(
		token gojwttoken.Token,
		id int64,
		expiresAt time.Time,
		isValid bool,
	)

	// RevokeTokenFromCache revokes the token from the cache
	RevokeTokenFromCache func(
		token gojwttoken.Token,
		id int64,
	)

	// RevokeRefreshTokenFromCache revokes the refresh token from the cache
	RevokeRefreshTokenFromCache func(
		userRefreshTokenID int64,
	)

	// RevokeUserRefreshTokensFromCache revokes the user refresh tokens from the cache
	RevokeUserRefreshTokensFromCache func(userID int64)
)

Functions

func Load

func Load(mode *goflagsmode.Flag)

Load initializes the cache

Types

This section is empty.

Jump to

Keyboard shortcuts

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