Imgproxy holds all the components needed for imgproxy to function.
| 41 | |
| 42 | // Imgproxy holds all the components needed for imgproxy to function. |
| 43 | type 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. |
| 62 | func New(ctx context.Context, config *Config) (*Imgproxy, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected