Improve history purging
This commit is contained in:
@@ -40,8 +40,8 @@ type (
|
||||
// the bandwidth data to the history database.
|
||||
UpdateBandwidth(ctx context.Context, enableHistory bool, processKey string, connID string, bytesReceived uint64, bytesSent uint64) error
|
||||
|
||||
// CleanupHistoryData applies data retention to the history database.
|
||||
CleanupHistoryData(ctx context.Context) error
|
||||
// PurgeOldHistory deletes data outside of the retention time frame from the history database.
|
||||
PurgeOldHistory(ctx context.Context) error
|
||||
|
||||
// Close closes the connection store. It must not be used afterwards.
|
||||
Close() error
|
||||
|
||||
Reference in New Issue
Block a user