Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RevocationCache ¶
type RevocationCache interface {
IsTokenRevoked(ctx context.Context, jti string) (revoked bool, found bool)
SetTokenRevoked(ctx context.Context, jti string, ttl time.Duration) error
GetSubjectCutoff(ctx context.Context, subject string) (cutoff time.Time, found bool)
SetSubjectCutoff(ctx context.Context, subject string, cutoff time.Time, ttl time.Duration) error
DeleteTokenRevocation(ctx context.Context, jti string) error
}
RevocationCache defines the contract for accelerating revocation checks. Cache is performance-oriented; Store remains the definitive source of truth.
func New ¶
func New(c corecache.Cache) RevocationCache
New wraps a core cache.Cache into a domain-specific RevocationCache.
Click to show internal directories.
Click to hide internal directories.