image

package
v0.0.0-...-77ed03d Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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