Skip to content

Commit

Permalink
feat: add interface
Browse files Browse the repository at this point in the history
  • Loading branch information
boodyvo committed Sep 13, 2024
1 parent 2f34eed commit 74d62a1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions clients/database/interface.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package database

import "context"

type MetricsDatabase interface {
SaveProxiedRequestMetric(ctx context.Context, prm *ProxiedRequestMetric) error
ListProxiedRequestMetricsWithPagination(ctx context.Context, cursor int64, limit int) ([]ProxiedRequestMetric, int64, error)
CountAttachedProxiedRequestMetricPartitions(ctx context.Context) (int64, error)
GetLastCreatedAttachedProxiedRequestMetricsPartitionName(ctx context.Context) (string, error)
DeleteProxiedRequestMetricsOlderThanNDays(ctx context.Context, days int) error
}

0 comments on commit 74d62a1

Please sign in to comment.