RustBreachAlerts.sys.mjs
- class RustBreachAlerts.sys.BreachAlertsApiError()
Errors returned via the public (FFI) interface.
- class RustBreachAlerts.sys.BreachAlertsStore()
A store for managing breach alert data. It manages an underlying database connection and exposes methods for reading and writing breach alert dismissals.
An application should create only one store, and manage the instance as a singleton.
- RustBreachAlerts.sys.BreachAlertsStore.clearAllBreachAlertDismissals()
clearAllBreachAlertDismissals
- RustBreachAlerts.sys.BreachAlertsStore.clearBreachAlertDismissals(breachNames)
clearBreachAlertDismissals
- Arguments:
breachNames (Array.<string>)
- RustBreachAlerts.sys.BreachAlertsStore.close()
close
- RustBreachAlerts.sys.BreachAlertsStore.getBreachAlertDismissals(breachNames)
getBreachAlertDismissals
- Arguments:
breachNames (Array.<string>)
- Returns:
Promise.<Array.<BreachAlertDismissal>> – }
- RustBreachAlerts.sys.BreachAlertsStore.setBreachAlertDismissals(dismissals)
setBreachAlertDismissals
- Arguments:
dismissals (Array.<BreachAlertDismissal>)
- static RustBreachAlerts.sys.BreachAlertsStore.newStore(dbPath)
newStore
- Arguments:
dbPath (string)
- Returns:
Promise.<BreachAlertsStore> – }
- class RustBreachAlerts.sys.Unexpected()
Unexpected