Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ContentLengthHeader is the response header key used to set content length ContentLengthHeader = "Content-Length" // CacheControlHeader is the response header key used to set cache control CacheControlHeader = "Cache-Control" // VaryHeader is the response header key used to indicate the CDN that the response should depend on client's accept header // Ref: https://tools.ietf.org/html/rfc7231#section-7.1.4 VaryHeader = "Vary" // StorageGetErrorKey is the key used while pushing metrics update to statsd StorageGetErrorKey = "storage_get_error" // ProcessorErrorKey is the key used while pushing metrics update to statsd ProcessorErrorKey = "processor_error" )
Variables ¶
This section is empty.
Functions ¶
func ImageHandler ¶
func ImageHandler(deps *service.Dependencies) http.HandlerFunc
ImageHandler is responsible for fetching the path from the storage backend and processing it if required
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.