Skip to content

Commit

Permalink
Merge pull request #92 from cve-search/pubsub
Browse files Browse the repository at this point in the history
Pub/Sub mechanism
  • Loading branch information
cedricbonhomme authored Dec 9, 2024
2 parents 3a813c8 + 028c42f commit 6d86c95
Show file tree
Hide file tree
Showing 32 changed files with 3,334 additions and 493 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
poetry run pip install -e PyVulnerabilityLookup/
cp config/website.py.sample config/website.py
cp config/generic.json.sample config/generic.json
cp config/stream.json.sample config/stream.json
cp config/logging.json.sample config/logging.json
poetry run flask --app website.app db_init
poetry run flask --app website.app db stamp head
Expand Down
17 changes: 17 additions & 0 deletions config/stream.json.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"register_listeners": true,
"pubsub_bp": true,
"global_subscription": false,
"channels": [
"vulnerability",
"comment",
"bundle",
"sighting"
],
"_notes": {
"register_listeners": "Register the listeners for comments, bundles, and sightings.",
"pubsub_bp": "Activate or deactivate the subscription Blueprint for specific clients.",
"channels": "The list of channels exposed by the Pub/Sub Blueprint.",
"global_subscription": "Activate or deactivate the global subsciption mechanism for server-side processing of messages."
}
}
Loading

0 comments on commit 6d86c95

Please sign in to comment.