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

Method applyMaxBytesOption

options/parser/apply.go:287–289  ·  view source on GitHub ↗
(ctx context.Context, o *options.Options, args []string)

Source from the content-addressed store, hash-verified

285}
286
287func (p *Parser) applyMaxBytesOption(ctx context.Context, o *options.Options, args []string) error {
288 return p.parsePositiveInt(ctx, o, keys.MaxBytes, args...)
289}
290
291func (p *Parser) applyBackgroundOption(ctx context.Context, o *options.Options, args []string) error {
292 switch len(args) {

Callers 1

applyURLOptionMethod · 0.95

Calls 1

parsePositiveIntMethod · 0.95

Tested by

no test coverage detected