MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / auditEventForDocumentUpsert

Function auditEventForDocumentUpsert

rest/doc_api.go:889–898  ·  view source on GitHub ↗
(ctx context.Context, docid string, revid string, isNewDoc bool)

Source from the content-addressed store, hash-verified

887}
888
889func auditEventForDocumentUpsert(ctx context.Context, docid string, revid string, isNewDoc bool) {
890 auditEvent := base.AuditIDDocumentUpdate
891 if isNewDoc {
892 auditEvent = base.AuditIDDocumentCreate
893 }
894 base.Audit(ctx, auditEvent, base.AuditFields{
895 base.AuditFieldDocID: docid,
896 base.AuditFieldDocVersion: revid,
897 })
898}
899
900// HTTP handler for a DELETE of a _local document
901func (h *handler) handleDelLocalDoc() error {

Callers 2

handlePutLocalDocMethod · 0.85
handleBulkDocsMethod · 0.85

Calls 1

AuditFunction · 0.92

Tested by

no test coverage detected