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

Function IsAppKey

pkg/session/session.go:292–294  ·  view source on GitHub ↗

IsAppKey 判断是否为应用级 key

(key string)

Source from the content-addressed store, hash-verified

290
291// IsAppKey 判断是否为应用级 key
292func IsAppKey(key string) bool {
293 return len(key) > len(KeyPrefixApp) && key[:len(KeyPrefixApp)] == KeyPrefixApp
294}
295
296// IsUserKey 判断是否为用户级 key
297func IsUserKey(key string) bool {

Callers 2

getScopeFunction · 0.92
TestIsAppKeyFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsAppKeyFunction · 0.68