- Restructure handlers into file_commands/file_queries/file_handlers - Add gRPC auth client, JWT middleware, rate limiting, request ID - Add common utilities: logger, sanitizer, s3_errors - Add unit tests for config, mediator, auth, request_id, sanitize - Add proto definitions and generated code - Remove old web UI pages - Add .dockerignore and .env.example
27 lines
389 B
Go
27 lines
389 B
Go
package handlers
|
|
|
|
import "time"
|
|
|
|
type DownloadFileQuery struct {
|
|
BucketName string
|
|
ObjectKey string
|
|
}
|
|
|
|
type ListFilesQuery struct {
|
|
BucketName string
|
|
Prefix string
|
|
MaxKeys int32
|
|
Token *string
|
|
}
|
|
|
|
type GetFilePreviewQuery struct {
|
|
BucketName string
|
|
ObjectKey string
|
|
Expiry time.Duration
|
|
}
|
|
|
|
type GetFileContentQuery struct {
|
|
BucketName string
|
|
ObjectKey string
|
|
}
|