From 1bc873c7afd231283c92f86e744f129f0a233d55 Mon Sep 17 00:00:00 2001 From: Vladyslav Budichenko Date: Fri, 13 Sep 2024 14:32:34 -0400 Subject: [PATCH] feat: add small comments --- clients/database/empty/database.go | 1 + clients/database/interface.go | 1 + 2 files changed, 2 insertions(+) diff --git a/clients/database/empty/database.go b/clients/database/empty/database.go index ce844dd..a60b799 100644 --- a/clients/database/empty/database.go +++ b/clients/database/empty/database.go @@ -5,6 +5,7 @@ import ( "github.com/kava-labs/kava-proxy-service/clients/database" ) +// Empty is a database client that does nothing type Empty struct{} func New() *Empty { diff --git a/clients/database/interface.go b/clients/database/interface.go index 2a8c0b5..666b6db 100644 --- a/clients/database/interface.go +++ b/clients/database/interface.go @@ -5,6 +5,7 @@ import ( "time" ) +// MetricsDatabase is an interface for interacting with the database type MetricsDatabase interface { SaveProxiedRequestMetric(ctx context.Context, metric *ProxiedRequestMetric) error ListProxiedRequestMetricsWithPagination(ctx context.Context, cursor int64, limit int) ([]*ProxiedRequestMetric, int64, error)