MCPcopy Create free account
hub / github.com/couchbase/cbft / matchAnyFixedSuffixes

Function matchAnyFixedSuffixes

ns_server.go:818–825  ·  view source on GitHub ↗
(pointer string)

Source from the content-addressed store, hash-verified

816}
817
818func matchAnyFixedSuffixes(pointer string) bool {
819 for k := range fixedSuffixToStatNameMapping {
820 if strings.HasSuffix(pointer, "/"+k) {
821 return true
822 }
823 }
824 return false
825}
826
827func convertStatName(key string) string {
828 lastSlash := strings.LastIndex(key, "/")

Callers 1

massageStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected