Documentation
¶
Overview ¶
Package posters caches artwork on the local filesystem and serves it via HTTP. Keeps zero dependencies outside stdlib + otelx so the leaf can be imported by any package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface {
Fetch(ctx context.Context, kind string, id uint32, src string) error
Serve(w http.ResponseWriter, r *http.Request, kind string, id uint32)
Path(kind string, id uint32) string
}
Manager is the consumer-facing surface for the poster cache: fetch on movie add, serve on HTTP request, resolve cache paths.
Click to show internal directories.
Click to hide internal directories.