handler

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 5 Imported by: 0

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

func Ping

func Ping() http.HandlerFunc

Ping handler is used for health check purpose

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL