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

Method Main

options/options.go:35–41  ·  view source on GitHub ↗

Main returns the main Options if this is a child Options. If this is the main Options, it returns itself.

()

Source from the content-addressed store, hash-verified

33// Main returns the main Options if this is a child Options.
34// If this is the main Options, it returns itself.
35func (o *Options) Main() *Options {
36 if o.main == nil {
37 return o
38 }
39
40 return o.main
41}
42
43// Child returns the child Options if any.
44func (o *Options) Child() *Options {

Callers 14

AddChildMethod · 0.95
applyURLOptionMethod · 0.80
EnforceThumbnailMethod · 0.80
FormatMethod · 0.80
PreserveHDRMethod · 0.80
QualityMethod · 0.80
MaxBytesMethod · 0.80
StripMetadataMethod · 0.80
KeepCopyrightMethod · 0.80
StripColorProfileMethod · 0.80
MaxSrcResolutionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected