MCPcopy Create free account
hub / github.com/coder/coder / NewAuditor

Function NewAuditor

enterprise/audit/audit.go:33–42  ·  view source on GitHub ↗
(db database.Store, filter Filter, backends ...Backend)

Source from the content-addressed store, hash-verified

31}
32
33func NewAuditor(db database.Store, filter Filter, backends ...Backend) audit.Auditor {
34 return &auditor{
35 db: db,
36 filter: filter,
37 backends: backends,
38 Differ: audit.Differ{DiffFn: func(old, newVal any) audit.Map {
39 return diffValues(old, newVal, AuditableResources)
40 }},
41 }
42}
43
44// auditor is the enterprise implementation of the Auditor interface.
45type auditor struct {

Callers 3

TestAuditLoggingFunction · 0.92
TestAuditorFunction · 0.92
ServerMethod · 0.92

Calls 1

diffValuesFunction · 0.85

Tested by 2

TestAuditLoggingFunction · 0.74
TestAuditorFunction · 0.74