MCPcopy Create free account
hub / github.com/astercloud/aster / IsSessionKey

Function IsSessionKey

pkg/session/session.go:307–309  ·  view source on GitHub ↗

IsSessionKey 判断是否为会话级 key

(key string)

Source from the content-addressed store, hash-verified

305
306// IsSessionKey 判断是否为会话级 key
307func IsSessionKey(key string) bool {
308 return len(key) > len(KeyPrefixSession) && key[:len(KeyPrefixSession)] == KeyPrefixSession
309}

Callers 2

getScopeFunction · 0.92
TestIsSessionKeyFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsSessionKeyFunction · 0.68