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

Function keyValid

kv.go:579–584  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

577}
578
579func keyValid(key string) bool {
580 if len(key) == 0 || key[0] == '.' || key[len(key)-1] == '.' {
581 return false
582 }
583 return validKeyRe.MatchString(key)
584}
585
586func searchKeyValid(key string) bool {
587 if len(key) == 0 || key[0] == '.' || key[len(key)-1] == '.' {

Callers 4

getMethod · 0.70
PutMethod · 0.70
UpdateMethod · 0.70
DeleteMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected