gift

package
v0.0.0-...-b98e79d Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 4 Imported by: 10

Documentation

Overview

Package gift provides imageserver/http.Parser implementations for imageserver/image/gift.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResizeParser

type ResizeParser struct{}

ResizeParser is a imageserver/http.Parser implementation for imageserver/image/gift.ResizeProcessor.

It takes the params from the HTTP URL query and stores them in a Params. This Params is added to the given Params at the key "gift_resize".

See imageserver/image/gift.ResizeProcessor for params list.

func (*ResizeParser) Parse

func (prs *ResizeParser) Parse(req *http.Request, params imageserver.Params) error

Parse implements imageserver/http.Parser.

func (*ResizeParser) Resolve

func (prs *ResizeParser) Resolve(param string) string

Resolve implements imageserver/http.Parser.

type RotateParser

type RotateParser struct{}

RotateParser is a imageserver/http.Parser implementation for imageserver/image/gift.RotateProcessor.

It takes the params from the HTTP URL query and stores them in a Params. This Params is added to the given Params at the key "gift_rotate".

See imageserver/image/gift.RotateProcessor for params list.

func (*RotateParser) Parse

func (prs *RotateParser) Parse(req *http.Request, params imageserver.Params) error

Parse implements imageserver/http.Parser.

func (*RotateParser) Resolve

func (prs *RotateParser) 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