mirror of
https://github.com/dstotijn/hetty.git
synced 2025-07-01 18:47:29 -04:00
Add initial (rough) database support
This commit is contained in:
14
pkg/reqlog/repo.go
Normal file
14
pkg/reqlog/repo.go
Normal file
@ -0,0 +1,14 @@
|
||||
package reqlog
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type Repository interface {
|
||||
FindAllRequestLogs(ctx context.Context) ([]Request, error)
|
||||
FindRequestLogByID(ctx context.Context, id uuid.UUID) (Request, error)
|
||||
AddRequestLog(ctx context.Context, reqLog Request) error
|
||||
AddResponseLog(ctx context.Context, resLog Response) error
|
||||
}
|
Reference in New Issue
Block a user