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

Function NewFactory

imagedata/factory.go:35–40  ·  view source on GitHub ↗

NewFactory creates a new factory

(fetcher *fetcher.Fetcher, monitoring *monitoring.Monitoring)

Source from the content-addressed store, hash-verified

33
34// NewFactory creates a new factory
35func NewFactory(fetcher *fetcher.Fetcher, monitoring *monitoring.Monitoring) *Factory {
36 return &Factory{
37 fetcher: fetcher,
38 monitoring: monitoring,
39 }
40}
41
42// NewFromBytesWithFormat creates a new ImageData instance from the provided format
43// and byte slice.

Callers 3

NewFunction · 0.92
SetupSuiteMethod · 0.92
SetupSuiteMethod · 0.92

Calls

no outgoing calls

Tested by 2

SetupSuiteMethod · 0.74
SetupSuiteMethod · 0.74