MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / Imgproxy

Struct Imgproxy

imgproxy.go:43–59  ·  view source on GitHub ↗

Imgproxy holds all the components needed for imgproxy to function.

Source from the content-addressed store, hash-verified

41
42// Imgproxy holds all the components needed for imgproxy to function.
43type Imgproxy struct {
44 workers *workers.Workers
45 fallbackImage auximageprovider.Provider
46 watermarkImage auximageprovider.Provider
47 fetcher *fetcher.Fetcher
48 imageDataFactory *imagedata.Factory
49 clientFeaturesDetector *clientfeatures.Detector
50 handlers ImgproxyHandlers
51 securityChecker *security.Checker
52 optionsParser *optionsparser.Parser
53 processor *processing.Processor
54 cookies *cookies.Cookies
55 monitoring *monitoring.Monitoring
56 config *Config
57 errorReporter *errorreport.Reporter
58 conditionalHeaders *conditionalheaders.Factory
59}
60
61// New creates a new imgproxy instance.
62func New(ctx context.Context, config *Config) (*Imgproxy, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected