Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DMarby/picsum-photos
/ types & classes
Types & classes
37 in github.com/DMarby/picsum-photos
⨍
Functions
185
◇
Types & classes
37
↓ 17 callers
FuncType
Handler
Handler wraps a http handler and deals with responding to errors
internal/handler/handler.go:41
Struct
API
API is a http api
internal/imageapi/api.go:26
Struct
API
API is a http api
internal/api/api.go:22
Struct
Auto
Auto is a cache that automatically attempts to load objects if they don't exist
internal/cache/cache.go:22
Struct
Checker
Checker is a periodic health checker
internal/health/health.go:18
Struct
DeprecatedImage
DeprecatedImage contains info about an image, in the old deprecated /list style
internal/api/deprecated.go:18
Struct
Error
Error is the message and http status code to return
internal/handler/handler.go:9
Struct
HMAC
HMAC is a utility for creating and verifying HMACs
internal/hmac/hmac.go:10
Struct
Image
Image contains metadata about an image
internal/database/database.go:9
TypeAlias
Image
Image is a representation of the *C.VipsImage type
internal/vips/vips.go:20
Struct
ListImage
ListImage contains metadata and download information about an image
internal/api/list.go:24
FuncType
LoaderFunc
LoaderFunc is a function for loading data into a cache
internal/cache/cache.go:19
Struct
Logger
Logger is a logger
internal/logger/logger.go:13
Struct
MuxRouteMatcher
MuxRouteMatcher maxes routes for a mux router
internal/handler/route_matcher.go:15
TypeAlias
OutputFormat
OutputFormat is the image format to output to
internal/image/task.go:16
Struct
Params
Params contains all the parameters for a request
internal/params/params.go:21
Interface
Processor
Processor is an image processor
internal/image/image.go:6
Struct
Processor
Processor is an image processor that uses vips to process images
internal/image/vips/vips.go:19
Struct
Processor
Processor implements a mock image processor
internal/image/mock/mock.go:11
Interface
Provider
Provider is an interface for getting and setting cached objects
internal/cache/cache.go:12
Interface
Provider
Provider is an interface for listing and retrieving images
internal/database/database.go:18
Interface
Provider
Provider is an interface for retrieving images
internal/storage/storage.go:9
Struct
Provider
Provider implements a simple in-memory cache
internal/cache/memory/memory.go:11
Struct
Provider
Provider is a mock cache
internal/cache/mock/mock.go:11
Struct
Provider
Provider implements a file-based image storage
internal/database/file/file.go:17
Struct
Provider
Provider implements a mock image storage
internal/database/mock/mock.go:11
Struct
Provider
Provider implements a file-based image storage
internal/storage/file/file.go:14
Struct
Provider
Provider implements a mock image storage
internal/storage/mock/mock.go:8
Struct
Queue
Queue is a worker queue with a fixed amount of workers
internal/queue/queue.go:14
Interface
RouteMatcher
RouteMatcher matches routes
internal/handler/route_matcher.go:10
Struct
Status
Status contains the healtcheck status
internal/health/health.go:29
Struct
Task
Task is an image processing task
internal/image/task.go:4
Struct
Tracer
internal/tracing/tracing.go:22
Struct
httpErrorLog
internal/logger/logger.go:52
Struct
job
internal/queue/queue.go:21
Struct
jobResult
internal/queue/queue.go:27
Struct
resizedImage
resizedImage is a resized image
internal/image/vips/image.go:6