MCPcopy Create free account
hub / github.com/buggregator/server / labelForNode

Function labelForNode

modules/sentry/api_service_map.go:120–131  ·  view source on GitHub ↗
(address, opType string)

Source from the content-addressed store, hash-verified

118}
119
120func labelForNode(address, opType string) string {
121 switch opType {
122 case "db":
123 return "DB: " + address
124 case "cache":
125 return "Cache: " + address
126 case "queue":
127 return "Queue: " + address
128 default:
129 return address
130 }
131}
132
133func handleCounts(db *sql.DB) http.HandlerFunc {
134 return func(w http.ResponseWriter, r *http.Request) {

Callers 1

handleServiceMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected