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

Function IsUserKey

pkg/session/session.go:297–299  ·  view source on GitHub ↗

IsUserKey 判断是否为用户级 key

(key string)

Source from the content-addressed store, hash-verified

295
296// IsUserKey 判断是否为用户级 key
297func IsUserKey(key string) bool {
298 return len(key) > len(KeyPrefixUser) && key[:len(KeyPrefixUser)] == KeyPrefixUser
299}
300
301// IsTempKey 判断是否为临时 key
302func IsTempKey(key string) bool {

Callers 2

getScopeFunction · 0.92
TestIsUserKeyFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsUserKeyFunction · 0.68