mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 07:16:38 +00:00
14 lines
446 B
Go
14 lines
446 B
Go
package accesslogs
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Manager interface {
|
|
SaveAccessLog(ctx context.Context, proxyLog *AccessLogEntry) error
|
|
GetAllAccessLogs(ctx context.Context, accountID, userID string, filter *AccessLogFilter) ([]*AccessLogEntry, int64, error)
|
|
CleanupOldAccessLogs(ctx context.Context, retentionDays int) (int64, error)
|
|
StartPeriodicCleanup(ctx context.Context, retentionDays, cleanupIntervalHours int)
|
|
StopPeriodicCleanup()
|
|
}
|