mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Add dump and restore functionality for internal DBs
This commit is contained in:
committed by
Dan Christian Bogos
parent
17248c5dde
commit
a168f262e2
@@ -143,6 +143,9 @@ type DataDB interface {
|
||||
SetBackupSessionsDrv(nodeID string, tenant string, sessions []*StoredSession) error
|
||||
GetSessionsBackupDrv(nodeID string, tenant string) ([]*StoredSession, error)
|
||||
RemoveSessionsBackupDrv(nodeID, tenant, cgrid string) error
|
||||
DumpDataDB() error
|
||||
RewriteDataDB() error
|
||||
BackupDataDB(string, bool) error
|
||||
}
|
||||
|
||||
type StorDB interface {
|
||||
@@ -220,6 +223,9 @@ type LoadWriter interface {
|
||||
SetTPChargers([]*utils.TPChargerProfile) error
|
||||
SetTPDispatcherProfiles([]*utils.TPDispatcherProfile) error
|
||||
SetTPDispatcherHosts([]*utils.TPDispatcherHost) error
|
||||
DumpStorDB() error
|
||||
RewriteStorDB() error
|
||||
BackupStorDB(string, bool) error
|
||||
}
|
||||
|
||||
// NewMarshaler returns the marshaler type selected by mrshlerStr
|
||||
|
||||
Reference in New Issue
Block a user