Documentation
¶
Overview ¶
Package api is the HTTP layer: routing and handlers. It depends on the files service only; it never reaches into storage or metadata directly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Deps ¶
type Deps struct {
Files *files.Service
ReadyCheck ReadyFunc
Logger *slog.Logger
PresignTTL time.Duration
MaxUploadBytes int64
}
Deps are the collaborators the HTTP layer needs, injected at the composition root. ReadyCheck reports whether downstream dependencies are reachable; it is nil-safe (a nil check means "always ready"). Logger and PresignTTL fall back to sensible defaults when zero. MaxUploadBytes caps upload body size; zero means uncapped.
Click to show internal directories.
Click to hide internal directories.