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

Function WithPrefix

errctx/options.go:5–13  ·  view source on GitHub ↗
(prefix string)

Source from the content-addressed store, hash-verified

3type Option func(*ErrorContext)
4
5func WithPrefix(prefix string) Option {
6 return func(ec *ErrorContext) {
7 if len(ec.prefix) > 0 {
8 ec.prefix = prefix + ": " + ec.prefix
9 return
10 }
11 ec.prefix = prefix
12 }
13}
14
15func WithStatusCode(code int) Option {
16 return func(ec *ErrorContext) {

Callers 6

newRequestCanceledErrorFunction · 0.92
newRequestTimeoutErrorFunction · 0.92
createBucketClientMethod · 0.92
newTypeDetectionErrorFunction · 0.92
NewResponseWriteErrorFunction · 0.92
wrapDownloadErrorFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected