MCPcopy Create free account

hub / github.com/DMarby/picsum-photos / functions

Functions185 in github.com/DMarby/picsum-photos

↓ 1 callersFunctionloadPage
(page)
internal/web/embed/assets/js/images.js:33
↓ 1 callersFunctionloadPageFromhHash
()
internal/web/embed/assets/js/images.js:10
↓ 1 callersFunctionnewHandler
(healthChecker *health.Checker)
internal/handler/health.go:15
↓ 1 callersFunctionparseLinkHeader
(header)
internal/web/embed/assets/js/images.js:89
↓ 1 callersFunctionreadFile
(path string)
internal/imageapi/api_test.go:258
↓ 1 callersFunctionresizeImage
resizeImage loads an image from a byte buffer, resizes it and returns an Image object for further use Note that it does not use the processor worker q
internal/image/vips/image.go:12
↓ 1 callersMethodsaveToJpegBuffer
saveToJpegBuffer returns the image as a JPEG byte buffer
internal/image/vips/image.go:54
↓ 1 callersMethodsaveToWebPBuffer
saveToWebPBuffer returns the image as a WebP byte buffer
internal/image/vips/image.go:65
↓ 1 callersMethodsetUserComment
setUserComment sets the exif usercomment
internal/image/vips/image.go:49
↓ 1 callersFunctiontaskProcessor
(cache *image.Cache, tracer *tracing.Tracer)
internal/image/vips/vips.go:80
↓ 1 callersFunctionvalidateImageParams
(p *params.Params)
internal/api/params.go:21
↓ 1 callersMethodworker
()
internal/queue/queue.go:54
FunctionBenchmarkVips
(b *testing.B)
internal/image/vips/vips_test.go:67
MethodGet
(ctx context.Context, key string)
internal/cache/cache.go:13
MethodGet
Get returns an object from the cache if it exists
internal/cache/memory/memory.go:24
MethodGet
Get returns an object from the cache if it exists
internal/cache/mock/mock.go:14
MethodGet
(ctx context.Context, id string)
internal/database/database.go:19
MethodGet
Get returns the image data for an image id
internal/database/file/file.go:67
MethodGet
Get returns the image data for an image id
internal/database/mock/mock.go:15
MethodGet
Get returns the image data for an image id
internal/storage/file/file.go:30
MethodGet
Get returns the image data for an image id
internal/storage/mock/mock.go:12
MethodGetRandom
GetRandom returns a random image ID
internal/database/file/file.go:77
MethodGetRandom
GetRandom returns a random image
internal/database/mock/mock.go:20
MethodGetRandomWithSeed
GetRandomWithSeed returns a random image ID based on the given seed
internal/database/file/file.go:85
MethodGetRandomWithSeed
GetRandomWithSeed returns a random image based on the given seed
internal/database/mock/mock.go:25
MethodList
List returns a list of all the images with an offset/limit
internal/database/file/file.go:98
MethodList
List returns a list of all the images with an offset/limit
internal/database/mock/mock.go:35
MethodListAll
ListAll returns a list of all the images
internal/database/file/file.go:93
MethodListAll
ListAll returns a list of all the images
internal/database/mock/mock.go:30
MethodMatch
Match returns the mux route name of a given request, falling back to the path template if not set
internal/handler/route_matcher.go:20
FunctionNew
(ctx context.Context, log *logger.Logger, serviceName string)
internal/tracing/tracing.go:32
FunctionNewAPI
NewAPI creates a new API instance with initialized caches
internal/imageapi/api.go:37
FunctionPrintDebugInfo
PrintDebugInfo prints libvips debug info to stdout
internal/vips/vips.go:82
MethodProcessImage
ProcessImage loads an image from a byte buffer, processes it, and returns a buffer containing the processed image
internal/image/vips/vips.go:55
MethodProcessImage
ProcessImage returns an error instead of process an image
internal/image/mock/mock.go:15
MethodSet
Set adds an object to the cache
internal/cache/memory/memory.go:37
MethodSet
Set adds an object to the cache
internal/cache/mock/mock.go:27
MethodShutdown
Shutdown shuts down the cache
internal/cache/memory/memory.go:46
MethodShutdown
Shutdown shuts down the cache
internal/cache/mock/mock.go:36
MethodShutdown
Shutdown shuts down the image processor and deinitialises vips
internal/image/vips/vips.go:150
MethodShutdown
(ctx context.Context)
internal/tracing/tracing.go:62
FunctionTestAPI
(t *testing.T)
internal/imageapi/api_test.go:34
FunctionTestAPI
(t *testing.T)
internal/api/api_test.go:31
FunctionTestAuto
(t *testing.T)
internal/cache/cache_test.go:23
FunctionTestFile
(t *testing.T)
internal/database/file/file_test.go:29
FunctionTestFile
(t *testing.T)
internal/storage/file/file_test.go:14
FunctionTestFixtures
Utility function for regenerating the fixtures
internal/vips/vips_test.go:168
FunctionTestFixtures
Utility function for regenerating the fixtures
internal/image/vips/vips_test.go:85
FunctionTestFixtures
Utility function for regenerating the fixtures
internal/imageapi/api_test.go:194
FunctionTestHMAC
(t *testing.T)
internal/hmac/hmac_test.go:12
FunctionTestHandler
(t *testing.T)
internal/handler/handler_test.go:13
FunctionTestHealth
(t *testing.T)
internal/health/health_test.go:22
FunctionTestInvalidJson
(t *testing.T)
internal/database/file/file_test.go:115
FunctionTestMemory
(t *testing.T)
internal/cache/memory/memory_test.go:11
FunctionTestMissingMetadata
(t *testing.T)
internal/database/file/file_test.go:108
FunctionTestProcess
(t *testing.T)
internal/queue/queue_test.go:18
FunctionTestRecovery
(t *testing.T)
internal/handler/recovery_test.go:13
FunctionTestShutdown
(t *testing.T)
internal/queue/queue_test.go:36
FunctionTestTaskWithCancelledContext
(t *testing.T)
internal/queue/queue_test.go:62
FunctionTestTaskWithError
(t *testing.T)
internal/queue/queue_test.go:49
FunctionTestVips
(t *testing.T)
internal/vips/vips_test.go:17
FunctionTestVips
(t *testing.T)
internal/image/vips/vips_test.go:26
FunctionVarzHandler
(w http.ResponseWriter, r *http.Request)
internal/handler/metrics.go:47
FunctionbadRequestHandler
(rw http.ResponseWriter, req *http.Request)
internal/handler/handler_test.go:76
MethoddeprecatedImageHandler
Handles deprecated image routes
internal/api/deprecated.go:68
MethoddeprecatedListHandler
(w http.ResponseWriter, r *http.Request)
internal/api/deprecated.go:29
MethoddeprecatedParams
deprecatedParams is a handler to handle deprecated query params for regular routes
internal/api/deprecated.go:100
FunctionerrorHandler
(rw http.ResponseWriter, req *http.Request)
internal/handler/handler_test.go:72
FunctionhandleNavigationButton
(event)
internal/web/embed/assets/js/images.js:20
MethodimageHandler
(w http.ResponseWriter, r *http.Request)
internal/imageapi/image.go:26
MethodimageRedirectHandler
(w http.ResponseWriter, r *http.Request)
internal/api/image.go:24
MethodinfoHandler
Returns info about an image
internal/api/list.go:30
MethodinfoSeedHandler
Returns info about an image based on the seed
internal/api/list.go:54
Functioninit
()
internal/handler/metrics.go:43
MethodlistHandler
Paginated list, with `page` and `limit` query parameters
internal/api/list.go:79
Functionlog_callback
log_callback catches logs from libvips export log_callback
internal/vips/vips.go:72
Functionmain
()
cmd/image-manifest/main.go:23
Functionmain
()
cmd/picsum-photos/main.go:44
Functionmain
()
cmd/image-service/main.go:48
MethodnotFoundHandler
(w http.ResponseWriter, r *http.Request)
internal/imageapi/api.go:105
MethodnotFoundHandler
(w http.ResponseWriter, r *http.Request)
internal/api/api.go:122
FunctionpanicHandler
(rw http.ResponseWriter, req *http.Request)
internal/handler/recovery_test.go:31
MethodrandomImageRedirectHandler
(w http.ResponseWriter, r *http.Request)
internal/api/image.go:43
FunctionreadFile
(path string)
internal/api/api_test.go:465
MethodseedImageRedirectHandler
(w http.ResponseWriter, r *http.Request)
internal/api/image.go:61
← previous101–185 of 185, ranked by callers