MCPcopy
hub / github.com/nats-io/nats.go / keyValid

Function keyValid

jetstream/kv.go:908–913  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

906}
907
908func keyValid(key string) bool {
909 if len(key) == 0 || key[0] == '.' || key[len(key)-1] == '.' {
910 return false
911 }
912 return validKeyRe.MatchString(key)
913}
914
915func searchKeyValid(key string) bool {
916 if len(key) == 0 || key[0] == '.' || key[len(key)-1] == '.' {

Callers 5

getMethod · 0.70
PutMethod · 0.70
updateRevisionMethod · 0.70
DeleteMethod · 0.70
TestKV_keyValidFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestKV_keyValidFunction · 0.56