Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/imgproxy/imgproxy
/ functions
Functions
1,844 in github.com/imgproxy/imgproxy
⨍
Functions
1,844
◇
Types & classes
321
↓ 10 callers
Method
appendStringRaw
appendStringRaw appends a string value to the buffer without escaping.
logger/buffer.go:70
↓ 10 callers
Method
parsePositiveInt
parsePositiveInt parses a positive integer option value
options/parser/parse.go:160
↓ 9 callers
Method
CopyMemory
()
vips/vips.go:836
↓ 9 callers
Method
Delete
Delete removes an option by its key.
options/options.go:149
↓ 9 callers
Method
Enabled
Enabled checks if the hook is enabled for the given log level.
logger/handler.go:43
↓ 9 callers
Function
IsSVG
(r bufreader.ReadPeeker, _, _ string)
imagetype/svg.go:17
↓ 9 callers
Function
MinNonZero
(a, b int)
imath/imath.go:5
↓ 9 callers
Function
NewOptionsBuilder
NewOptionsBuilder creates a new OptionsBuilder.
testutil/options_builder.go:36
↓ 9 callers
Function
ReadersEqual
ReadersEqual compares two io.Reader contents in a streaming manner. It fails the test if contents differ or if reading fails.
testutil/readers_equal.go:17
↓ 9 callers
Method
Shutdown
Shutdown gracefully shuts down the server
server/server.go:78
↓ 9 callers
Method
Stop
(ctx context.Context)
monitoring/monitoring.go:18
↓ 9 callers
Method
String
String returns the string representation of the options, joining them with '/'.
testutil/options_builder.go:52
↓ 9 callers
Method
Type
Type returns the current colorspace interpretation of the image.
vips/vips.go:720
↓ 9 callers
Method
VerifySignature
(ctx context.Context, signature, path string)
security/signature.go:12
↓ 9 callers
Method
appendKey
appendKey appends an attribute key to the buffer.
logger/formatter_json.go:134
↓ 9 callers
Method
execute
( imageURL string, header http.Header, o *options.Options, )
handlers/stream/handler_test.go:148
↓ 9 callers
Function
newInvalidURLError
(ctx context.Context, format string, args ...any)
options/parser/errors.go:22
↓ 9 callers
Method
newParser
(presets ...string)
options/parser/presets_test.go:79
↓ 8 callers
Method
CopyValue
CopyValue copies a value from one option key to another.
options/options.go:174
↓ 8 callers
Method
ErrorEmpty
ErrorEmpty formats an error message for empty env var
env/desc.go:70
↓ 8 callers
Method
ErrorNegative
ErrorNegative formats an error message for negative env var
env/desc.go:85
↓ 8 callers
Method
Has
Has checks if an option key exists.
options/options.go:181
↓ 8 callers
Method
IsVector
IsVector checks if the image type is a vector format.
imagetype/type.go:61
↓ 8 callers
Method
Lazy
()
testutil/lasy_suite.go:41
↓ 8 callers
Function
NewHandler
NewHandler creates a new [Handler] instance.
logger/handler.go:67
↓ 8 callers
Method
Path
Path returns the absolute path to a file in the testdata directory
testutil/test_data_provider.go:75
↓ 8 callers
Method
RegisterDetector
RegisterDetector registers a custom detector function on this registry instance
imagetype/registry.go:135
↓ 8 callers
Method
appendKey
appendKey appends an attribute key to the buffer.
logger/formatter_structured.go:104
↓ 8 callers
Method
free
free truncates the buffer and returns it to the pool.
logger/buffer.go:38
↓ 8 callers
Function
newOptionArgumentError
(ctx context.Context, key, format string, args ...any)
options/parser/errors.go:55
↓ 7 callers
Function
DocsBaseURL
DocsBaseURL returns documentation base url set for context or default
errctx/docs_base_url.go:10
↓ 7 callers
Method
ErrorRange
ErrorRange formats an error message for out of range env var
env/desc.go:75
↓ 7 callers
Method
FileEqualsToReader
FileEqualsToReader compares the contents of a test data file with the contents of the given reader
testutil/test_data_provider.go:95
↓ 7 callers
Function
NewFromBytesWithFormat
NewFromBytesWithFormat creates a new ImageData instance from the provided format and byte slice.
imagedata/factory.go:44
↓ 7 callers
Function
NewLatch
NewLatch creates a new Latch.
asyncbuffer/latch.go:14
↓ 7 callers
Function
NewRoundTripper
NewRoundTripper creates a new RoundTripper
fetcher/transport/round_tripper.go:18
↓ 7 callers
Function
NewTestDataProvider
NewTestDataProvider creates a new TestDataProvider
testutil/test_data_provider.go:28
↓ 7 callers
Method
Peek
(n int)
bufreader/bufreader.go:13
↓ 7 callers
Method
Read
Read reads data into p from the buffered reader.
bufreader/bufreader.go:35
↓ 7 callers
Method
Rotate
()
processing/options.go:93
↓ 7 callers
Method
Seek
Seek sets the position of the reader to the given offset and returns the new position
asyncbuffer/reader.go:26
↓ 7 callers
Method
SetOriginHeaders
SetOriginHeaders sets the origin headers for the request.
httpheaders/conditionalheaders/request.go:34
↓ 7 callers
Method
Trim
(threshold float64, smart bool, color color.RGB, equalHor bool, equalVer bool)
vips/vips.go:680
↓ 7 callers
Method
maxAgeValue
maxAgeValue parses max-age from cache-control
handlers/stream/handler_test.go:492
↓ 6 callers
Method
AddAttribute
(key string, value any)
monitoring/newrelic/newrelic.go:20
↓ 6 callers
Method
AddChild
AddChild creates a new child Options that inherits from the current Options. If the current Options already has a child, it returns the existing child
options/options.go:66
↓ 6 callers
Method
BytesRead
()
asyncbuffer/buffer_test.go:43
↓ 6 callers
Function
CheckTimeout
CheckTimeout checks if the request context has timed out or cancelled and returns wrapped error.
server/timer.go:32
↓ 6 callers
Function
CopyAll
CopyAll copies all headers from one header to another.
httpheaders/copy.go:18
↓ 6 callers
Method
Cursor
Cursor returns the current cursor value. Capture this before checking your condition, then pass it to Wait().
asyncbuffer/cond.go:40
↓ 6 callers
Method
Detect
Detect runs image format detection
imagetype/registry.go:167
↓ 6 callers
Function
ErrorType
ErrorType returns the type name of the given error. If the error is [WrappedError], it returns the type of the inner error.
errctx/error.go:39
↓ 6 callers
Method
Filter
Filter creates a copy of Meta with only the specified keys.
monitoring/meta.go:20
↓ 6 callers
Method
Level
Level returns the minimum log level for the handler.
logger/handler.go:88
↓ 6 callers
Function
LogResponse
( reqID string, r *http.Request, status int, err errctx.Error, additional ...slog.Attr, )
server/logging.go:27
↓ 6 callers
Method
NestedMap
NestedMap returns Options as a nested map[string]any. Each key is split by dots (.) and the resulting keys are used to create a nested structure. If t
options/options.go:331
↓ 6 callers
Function
NewObjectOK
NewObjectOK creates a new Reader with a 200 OK status.
storage/reader.go:36
↓ 6 callers
Function
NewWrappedError
NewWrappedError creates a new [WrappedError] with the given error and options. It wraps the provided even if it already is an [WrappedError] and alway
errctx/wrapped_error.go:18
↓ 6 callers
Function
RoundToEven
(a float64)
imath/imath.go:20
↓ 6 callers
Method
SetExpires
SetExpires sets the TTL from time
server/responsewriter/writer.go:66
↓ 6 callers
Method
Size
Format returns the image format from the metadata (shortcut)
imagedata/image_data.go:24
↓ 6 callers
Method
StartSpan
( ctx context.Context, name string, meta map[string]any, )
monitoring/monitoring.go:24
↓ 6 callers
Method
Stats
Stats returns the stats instance
monitoring/monitoring.go:96
↓ 6 callers
Method
Tick
Tick signals that an event has occurred by closing the channel and incrementing cursor.
asyncbuffer/cond.go:27
↓ 6 callers
Function
WithPrefix
(prefix string)
errctx/options.go:5
↓ 6 callers
Function
WrapWithStackSkip
WrapWithStackSkip creates a new [WrappedError] with the given error and options. It the first stackSkip frames from the call stack. If the provided e
errctx/wrapped_error.go:45
↓ 6 callers
Method
appendString
appendString appends a string value to the buffer, applying quoting rules as necessary.
logger/formatter_common.go:88
↓ 6 callers
Method
calcHash
( filename string, hashType testutil.ImageHashType, )
testutil/image_hash_test.go:221
↓ 6 callers
Method
checkNextEntry
(lvl, msg string)
logger/formatter_structured_test.go:63
↓ 6 callers
Method
checkNextEntry
(lvl, msg string)
logger/formatter_pretty_test.go:317
↓ 6 callers
Method
mustReadByte
mustReadByte reads a single byte from the reader. If an error occurs, it sets d.err and returns false. If io.EOF is encountered, it sets d.err to a mo
xmlparser/decoder.go:714
↓ 6 callers
Function
newInvalidArgsError
newInvalidArgsError creates a standardized error for invalid arguments
options/parser/errors.go:83
↓ 6 callers
Function
newIptcError
(format string, args ...any)
imagemeta/iptc/errors.go:12
↓ 6 callers
Function
testNestedOptions
()
options/options_test.go:210
↓ 6 callers
Function
withDefaultTimeout
(config *Config, timeout time.Duration)
monitoring/otel/builders.go:233
↓ 6 callers
Function
wrapDownloadError
(err error, desc string)
imagedata/errors.go:23
↓ 5 callers
Function
AppendToSlice
AppendToSlice appends a value to a slice option. If the option does not exist, it creates a new slice with the value.
options/options.go:108
↓ 5 callers
Method
Cancel
Cancel cancels the request context
fetcher/request.go:111
↓ 5 callers
Method
Clear
()
vips/vips.go:394
↓ 5 callers
Method
Descendants
Descendants returns an iterator over the child Options if any.
options/options.go:49
↓ 5 callers
Function
Detect
Detect attempts to detect the image type from a reader. It first tries magic byte detection, then custom detectors in registration order
imagetype/registry.go:130
↓ 5 callers
Function
DurationMillis
DurationMillis defines duration env var descriptor. Parses an integer as milliseconds.
env/types.go:100
↓ 5 callers
Method
Error
Error returns the error that occurred during reading data in background.
asyncbuffer/buffer.go:184
↓ 5 callers
Method
GetEnv
GetEnv returns the value of the env variable
env/desc.go:26
↓ 5 callers
Function
GetTypeByName
GetTypeByName returns all registered image types.
imagetype/registry.go:73
↓ 5 callers
Method
IsSecurityOptionsAllowed
(ctx context.Context)
options/parser/parser.go:33
↓ 5 callers
Method
Map
Map returns a copy of the Options as a map[string]any If the Options has a child, it combines the main and child maps, prepending each key with the op
options/options.go:298
↓ 5 callers
Function
NewDefaultConfig
()
logger/config.go:43
↓ 5 callers
Function
NewDocument
(r io.Reader)
xmlparser/document.go:11
↓ 5 callers
Function
NewImageHash
NewImageHash creates a new hash from an image reader
testutil/image_hash.go:38
↓ 5 callers
Function
NewObjectNotModified
NewObjectNotModified creates a new Reader with a 304 Not Modified status.
storage/reader.go:71
↓ 5 callers
Method
NewWriter
NewWriter wraps [http.ResponseWriter] into [Writer].
server/responsewriter/factory.go:19
↓ 5 callers
Method
RegisterProtocol
RegisterProtocol registers a new transport protocol with the transport
fetcher/transport/transport.go:64
↓ 5 callers
Method
RequestsInProgress
RequestsInProgress returns the current number of requests in progress
monitoring/stats/stats.go:22
↓ 5 callers
Method
Resize
(wscale, hscale float64)
vips/vips.go:578
↓ 5 callers
Method
SetStatusCode
SetStatusCode sets the status code that will be returned by the server
testutil/test_server.go:70
↓ 5 callers
Function
SliceContains
SliceContains checks if a slice option contains a specific value. If the option does not exist, it returns false. If the value exists but is of a diff
options/options.go:125
↓ 5 callers
Method
WithReportError
WithReportError handles error reporting. It should be placed after `WithMonitoring`, but before `WithPanic`.
server/middlewares.go:94
↓ 5 callers
Method
WorkersUtilization
WorkersUtilization returns the current workers utilization percentage
monitoring/stats/stats.go:52
↓ 5 callers
Method
WriteTo
(w TokenWriter)
xmlparser/tokens.go:10
← previous
next →
101–200 of 1,844, ranked by callers