MCPcopy Index your code
hub / github.com/ByteStorage/FlyDB / checkKey

Function checkKey

structure/zset.go:1099–1104  ·  view source on GitHub ↗

checkKey function that accepts a string parameter key and returns error if key is empty. # It returns nil otherwise Parameters: key : A string that is checked if empty Returns: error : _const.ErrKeyIsEmpty if key is empty, nil otherwise

(key string)

Source from the content-addressed store, hash-verified

1097//
1098// error : _const.ErrKeyIsEmpty if key is empty, nil otherwise
1099func checkKey(key string) error {
1100 if len(key) == 0 {
1101 return _const.ErrKeyIsEmpty
1102 }
1103 return nil
1104}
1105
1106// setZSetToDB writes a FZSet object to the database.
1107//

Callers 14

checkAndGetSetMethod · 0.85
existsMethod · 0.85
ZAddsMethod · 0.85
existsMethod · 0.85
ZRemMethod · 0.85
ZRemsMethod · 0.85
ZScoreMethod · 0.85
ZRankMethod · 0.85
ZRevRankMethod · 0.85
ZRangeMethod · 0.85
ZCountMethod · 0.85
ZRevRangeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected