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

Method doAudit

rest.go:192–201  ·  view source on GitHub ↗
(req *http.Request, path string)

Source from the content-addressed store, hash-verified

190}
191
192func (c *AuthVersionHandler) doAudit(req *http.Request, path string) {
193 if c.adtSvc == nil {
194 return
195 }
196 eventId, ok := restAuditMap[req.Method+":"+path]
197 if ok {
198 d := GetAuditEventData(eventId, req)
199 go c.adtSvc.Write(eventId, d)
200 }
201}
202
203// -----------------------------------------------------------------------------
204

Callers 1

ServeHTTPMethod · 0.95

Calls 2

GetAuditEventDataFunction · 0.85
WriteMethod · 0.45

Tested by

no test coverage detected