Sida Chen
0c1b80b2ed
pgsql: Implement database queries for detector relationship
...
* Refactor layer and ancestry
* Add tests
* Fix bugs introduced when the queries were moved
6 years ago
Sida Chen
9c49d9dc55
pgsql: Move queries to corresponding files
...
Aggregate queries in their corresponding files instead of having the
single file for every queries because the database is more complicated.
6 years ago
Sida Chen
ff9303905b
database: changed Notification interface name
6 years ago
Jimmy Zelinskie
0565938956
pkg/pagination: add token type
...
This change pulls as much pagination logic out of the database
implementation as possible. Database implementations should now be able
to marshal whatever state they need into opaque tokens with the
utilities in the pagination package.
6 years ago
Jimmy Zelinskie
d193b46449
pkg/pagination: init
...
This change refactors a lot of the code dealing with pagination so that
fernet implementation details do not leak.
- Deletes database/pgsql/token
- Introduces a pagination package
- Renames idPageNumber to Page and add a constructor and method.
6 years ago
Sida Chen
a5c6400065
database: postgres implementation with tests.
7 years ago
Sida Chen
9306e99368
converted to structured logging by using logrus
...
changed from capnslog to logrus for logging JSON structured message.
finished issue #383
8 years ago
Jimmy Zelinskie
78cef02fda
pkg: cerrors -> commonerr
8 years ago
Quentin Machu
7a3dd5c817
pgsql: Disable hashjoins to get introducing layers for notifications
8 years ago
Quentin Machu
b99e2b50e2
database: Add some missing copyright headers
8 years ago
Quentin Machu
79ba99bbea
database: Fix invalid error message
9 years ago
Quentin Machu
84319507df
database: use constants to store queries
9 years ago
Quentin Machu
94ece7bf2b
database: fix notification design and add vulnerability history
9 years ago
Quentin Machu
8be18a0a01
database: write more of the notification system
9 years ago
Quentin Machu
baed60e19b
prometheus: add initial Prometheus support
9 years ago
Quentin Machu
ad0531acc7
notifier/database: refactor notification system and add initial Prometheus support
9 years ago
Quentin Machu
21f152c03e
database: fix keyvalue/notification tests
9 years ago
Quentin Machu
c60d0054fa
notifier/database: draft new notification system
9 years ago