PostgresAuditor is a Postgres SQL DB implementation of the Auditor interface. It persists the audit event by writing a row to the 'audit_event' table. Errors with writing to the database will output a log message and the process will exit with status set to 1
| 110 | // Errors with writing to the database will output a log message and the |
| 111 | // process will exit with status set to 1 |
| 112 | type PostgresAuditor struct { |
| 113 | DB *sql.DB |
| 114 | } |
| 115 | |
| 116 | // NewPostgresAuditor is the constructor for a new PostgresAuditor struct |
| 117 | // initialized with the given db connection string |
nothing calls this directly
no outgoing calls
no test coverage detected