claude-code-proxy/proxy/internal/service/storage.go

19 lines
670 B
Go
Raw Normal View History

2025-06-29 19:27:00 -04:00
package service
import (
"github.com/seifghazi/claude-code-monitor/internal/config"
"github.com/seifghazi/claude-code-monitor/internal/model"
)
type StorageService interface {
SaveRequest(request *model.RequestLog) (string, error)
GetRequests(page, limit int) ([]model.RequestLog, int, error)
ClearRequests() (int, error)
UpdateRequestWithGrading(requestID string, grade *model.PromptGrade) error
UpdateRequestWithResponse(request *model.RequestLog) error
EnsureDirectoryExists() error
GetRequestByShortID(shortID string) (*model.RequestLog, string, error)
GetConfig() *config.StorageConfig
GetAllRequests(modelFilter string) ([]*model.RequestLog, error)
}