Versions in this module Expand all Collapse all v1 v1.0.1 Mar 28, 2019 Changes in this version + func ContentTypeFilter(in *Response) (*Response, *FilterError) + func HeaderFilter(in *Response) (*Response, *FilterError) + func Proxy(config *Configuration, w http.ResponseWriter, r *Request) + type Configuration struct + AllowedHosts []string + func (c *Configuration) AllowsHost(host string) bool + func (c *Configuration) LoadEnvironmentVariables() + type CropType string + const CropTypeBottom + const CropTypeBottomLeft + const CropTypeBottomRight + const CropTypeCenter + const CropTypeLeft + const CropTypeRight + const CropTypeTop + const CropTypeTopLeft + const CropTypeTopRight + func (c *CropType) Anchor() *imaging.Anchor + func (c *CropType) CamelCase() string + type Dimensions struct + Height int + Width int + type Filter func(*Response) (*Response, *FilterError) + func JPEGFilter(quality int) Filter + func RasterizeFilter(scalingFunction ScalingFunction) Filter + func ScalingFilter(opts *ScalingOptions) Filter + type FilterError struct + Error error + StatusCode int + type Request struct + Filters []Filter + OriginURL *url.URL + func NewRequestFromURL(url *url.URL) (*Request, error) + type Response struct + Body io.Reader + Header http.Header + type ScalingFunction func(width, height int, allowUpscaling bool) (int, int) + func ScaleToFill(fillWidth, fillHeight int) ScalingFunction + func ScaleToFit(fitWidth, fitHeight int) ScalingFunction + type ScalingOptions struct + Crop *CropType + Fill *Dimensions + Fit *Dimensions + func (o *ScalingOptions) IsValid() bool