Function
NewAuditor
(db database.Store, filter Filter, backends ...Backend)
Source from the content-addressed store, hash-verified
| 31 | } |
| 32 | |
| 33 | func 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. |
| 45 | type auditor struct { |