Documentation ¶
Overview ¶
Package image provides imageserver/http.Parser implementations for imageserver/image.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormatParser ¶
type FormatParser struct{}
FormatParser is a imageserver/http.Parser implementation for imageserver/image.
It takes the string "format" param from the HTTP URL query.
func (*FormatParser) Parse ¶
func (parser *FormatParser) Parse(req *http.Request, params imageserver.Params) error
Parse implements imageserver/http.Parser.
func (*FormatParser) Resolve ¶
func (parser *FormatParser) Resolve(param string) string
Resolve implements imageserver/http.Parser.
type QualityParser ¶
type QualityParser struct{}
QualityParser is a imageserver/http.Parser implementation for imageserver/image.
It takes the integer "quality" param from the HTTP URL query.
func (*QualityParser) Parse ¶
func (parser *QualityParser) Parse(req *http.Request, params imageserver.Params) error
Parse implements imageserver/http.Parser.
func (*QualityParser) Resolve ¶
func (parser *QualityParser) Resolve(param string) string
Resolve implements imageserver/http.Parser.
Click to show internal directories.
Click to hide internal directories.