mirror of
https://github.com/dstotijn/hetty.git
synced 2025-07-01 10:37:30 -04:00
18 lines
553 B
Go
18 lines
553 B
Go
package reqlog
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/oklog/ulid"
|
|
|
|
"github.com/dstotijn/hetty/pkg/scope"
|
|
)
|
|
|
|
type Repository interface {
|
|
FindRequestLogs(ctx context.Context, filter FindRequestsFilter, scope *scope.Scope) ([]RequestLog, error)
|
|
FindRequestLogByID(ctx context.Context, projectID, id ulid.ULID) (RequestLog, error)
|
|
StoreRequestLog(ctx context.Context, reqLog RequestLog) error
|
|
StoreResponseLog(ctx context.Context, projectID, reqLogID ulid.ULID, resLog ResponseLog) error
|
|
ClearRequestLogs(ctx context.Context, projectID ulid.ULID) error
|
|
}
|