MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / hash

Function hash

utils.go:80–84  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

78}
79
80func hash(s string) uint32 {
81 h := fnv.New32a()
82 h.Write([]byte(s))
83 return h.Sum32()
84}
85
86func getQuerySnippetFromBody(req *http.Request) string {
87 if req.Body == nil {

Callers 2

getReplicaStickyMethod · 0.85
getHostStickyMethod · 0.85

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected