MCPcopy
hub / github.com/dropbox/godropbox / isValidKeyString

Function isValidKeyString

memcache/raw_binary_client.go:23–35  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

21}
22
23func isValidKeyString(key string) bool {
24 if len(key) > maxKeyLength {
25 return false
26 }
27
28 for _, char := range []byte(key) {
29 if !isValidKeyChar(char) {
30 return false
31 }
32 }
33
34 return true
35}
36
37func validateValue(value []byte, maxValueLength int) error {
38 if value == nil {

Callers 9

sendGetRequestMethod · 0.85
sendMutateRequestMethod · 0.85
sendDeleteRequestMethod · 0.85
sendCountRequestMethod · 0.85
StatMethod · 0.85
GetMultiMethod · 0.85
storeRequestsMethod · 0.85
DeleteMultiMethod · 0.85
countRequestMethod · 0.85

Calls 1

isValidKeyCharFunction · 0.85

Tested by

no test coverage detected