Add StorDB service

Add StorDB to config and services.

Put back the store_cdrs option under cdrs and update the CDRs
service to depend on StorDB.

Define the StorDB interface and add a constructor for it.

Add a constructor for postgres storage.

Add a config sanity check to validate SSL modes for postgres.

Update cgr-engine to consider StorDB on startup.
This commit is contained in:
ionutboangiu
2023-04-27 14:59:27 -04:00
committed by Dan Christian Bogos
parent 0cd4ee5ca8
commit df1dc5e838
22 changed files with 782 additions and 37 deletions

View File

@@ -40,6 +40,7 @@ type SQLImpl interface {
type SQLStorage struct {
DB *sql.DB
db *gorm.DB
StorDB
SQLImpl
}