@kathondvla/sri4node-audit-broadcast
v2.0.5
Published
A module for sri4node to register sri-audit-broadcast messages.
Downloads
3
Maintainers
Keywords
Readme
##Requirements
- An sri4node api
- A sri-audit-broadcast server
##To Start
- Run the script in your sri4node database
##Usage
###Timer Initialize the sri4node-audit-broadcast module
var audit = require('sri4node-audit-broadcast');
audit.init(pg, {
timeout: 10000,
host: {
baseUrl: configuration.audit.host,
headers: {
headerName: "value"
},
auth: {
user: "username",
pass: "password"
}
}
});
###After read functions Add the after read functions.
{
...,
afterupdate[audit.update],
afterinsert[audit.create],
afterdelete[audit.delete],
...
}