2020-09-26 23:36:48 +02:00
|
|
|
package reqlog
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2020-10-01 21:46:35 +02:00
|
|
|
"github.com/dstotijn/hetty/pkg/scope"
|
2020-09-26 23:36:48 +02:00
|
|
|
"github.com/google/uuid"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Repository interface {
|
2020-10-01 21:46:35 +02:00
|
|
|
FindRequestLogs(ctx context.Context, opts FindRequestsOptions, scope *scope.Scope) ([]Request, error)
|
2020-09-26 23:36:48 +02:00
|
|
|
FindRequestLogByID(ctx context.Context, id uuid.UUID) (Request, error)
|
|
|
|
AddRequestLog(ctx context.Context, reqLog Request) error
|
|
|
|
AddResponseLog(ctx context.Context, resLog Response) error
|
|
|
|
}
|