Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
307
func
IsSessionKey(key string) bool {
308
return
len(key) > len(KeyPrefixSession) && key[:len(KeyPrefixSession)] == KeyPrefixSession
309
}
Callers
2
getScope
Function · 0.92
TestIsSessionKey
Function · 0.85
Calls
no outgoing calls
Tested by
1
TestIsSessionKey
Function · 0.68