Files
hetty/pkg/reqlog/repo.go

18 lines
553 B
Go
Raw Normal View History

2020-09-26 23:36:48 +02:00
package reqlog
import (
"context"
2022-01-21 11:45:54 +01:00
"github.com/oklog/ulid"
2020-09-26 23:36:48 +02:00
2020-10-01 21:46:35 +02:00
"github.com/dstotijn/hetty/pkg/scope"
2020-09-26 23:36:48 +02:00
)
type Repository interface {
2022-01-21 11:45:54 +01:00
FindRequestLogs(ctx context.Context, filter FindRequestsFilter, scope *scope.Scope) ([]RequestLog, error)
2025-01-13 23:15:18 +01:00
FindRequestLogByID(ctx context.Context, projectID, id ulid.ULID) (RequestLog, error)
2022-01-21 11:45:54 +01:00
StoreRequestLog(ctx context.Context, reqLog RequestLog) error
2025-01-13 23:15:18 +01:00
StoreResponseLog(ctx context.Context, projectID, reqLogID ulid.ULID, resLog ResponseLog) error
2022-01-21 11:45:54 +01:00
ClearRequestLogs(ctx context.Context, projectID ulid.ULID) error
2020-09-26 23:36:48 +02:00
}