MCPcopy
hub / github.com/LyricTian/gin-admin / Storer

Interface Storer

pkg/jwtx/store.go:9–14  ·  view source on GitHub ↗

Storer is the interface that storage the token.

Source from the content-addressed store, hash-verified

7
8// Storer is the interface that storage the token.
9type Storer interface {
10 Set(ctx context.Context, tokenStr string, expiration time.Duration) error
11 Delete(ctx context.Context, tokenStr string) error
12 Check(ctx context.Context, tokenStr string) (bool, error)
13 Close(ctx context.Context) error
14}
15
16type storeOptions struct {
17 CacheNS string // default "jwt"

Callers 22

CopyBodyWithConfigFunction · 0.65
TraceWithConfigFunction · 0.65
StateLogMethod · 0.65
SetMethod · 0.65
SetMethod · 0.65
DestroyTokenMethod · 0.65
ResJSONFunction · 0.65
syncToCasbinMethod · 0.65
DeleteMethod · 0.65
DeleteMethod · 0.65
DeleteMethod · 0.65
UpdateMethod · 0.65

Implementers 1

storeImplpkg/jwtx/store.go

Calls

no outgoing calls

Tested by

no test coverage detected