MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / SetImageProcessor

Method SetImageProcessor

internal/server/server.go:760–762  ·  view source on GitHub ↗

SetImageProcessor wires the image processor that the upload handler uses to derive thumbnail variants (TASK-878). Optional — without it uploads still succeed but no thumbnails are generated; the download handler's variant fallback path returns the original blob. The capabilities endpoint reflects wh

(p attachments.Processor)

Source from the content-addressed store, hash-verified

758// download handler's variant fallback path returns the original blob.
759// The capabilities endpoint reflects whichever processor is wired.
760func (s *Server) SetImageProcessor(p attachments.Processor) {
761 s.imageProcessor = p
762}
763
764// markUploadInFlight increments the in-flight counter for a content
765// hash. Returns a release func the caller MUST defer; the release

Calls

no outgoing calls