MCPcopy Index your code
hub / github.com/PatchMon/PatchMon / fingerprint

Function fingerprint

server-source-code/internal/notifications/emitter.go:386–391  ·  view source on GitHub ↗
(ev Event, destinationID string)

Source from the content-addressed store, hash-verified

384}
385
386func fingerprint(ev Event, destinationID string) string {
387 bucket := time.Now().Unix() / 120
388 raw := fmt.Sprintf("%s|%s|%s|%d", ev.Type, ev.ReferenceID, destinationID, bucket)
389 h := sha256.Sum256([]byte(raw))
390 return hex.EncodeToString(h[:])
391}
392
393func tenantRedisKey(tenantHost, suffix string) string {
394 if tenantHost != "" {

Callers 2

emitMethod · 0.85
EnqueueToDestinationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected