transcoder

package
v0.0.0-...-472d2b4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: ISC Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SupportsWebP

func SupportsWebP(headers http.Header) bool

Types

type Gif

type Gif struct{}

func (*Gif) Transcode

func (t *Gif) Transcode(w *proxy.ResponseWriter, r *proxy.ResponseReader, headers http.Header) error

type Identity

type Identity struct{}

func (*Identity) Transcode

func (i *Identity) Transcode(w *proxy.ResponseWriter, r *proxy.ResponseReader, headers http.Header) error

type Jpeg

type Jpeg struct {
	// contains filtered or unexported fields
}

func NewJpeg

func NewJpeg(quality int) *Jpeg

func (*Jpeg) Transcode

func (t *Jpeg) Transcode(w *proxy.ResponseWriter, r *proxy.ResponseReader, headers http.Header) error

type Minifier

type Minifier struct {
	// contains filtered or unexported fields
}

func NewMinifier

func NewMinifier() *Minifier

func (*Minifier) Transcode

func (t *Minifier) Transcode(w *proxy.ResponseWriter, r *proxy.ResponseReader, headers http.Header) error

type Png

type Png struct{}

func (*Png) Transcode

func (t *Png) Transcode(w *proxy.ResponseWriter, r *proxy.ResponseReader, headers http.Header) error

type Zip

type Zip struct {
	proxy.Transcoder
	BrotliCompressionLevel int
	GzipCompressionLevel   int
	SkipCompressed         bool
}

func (*Zip) Transcode

func (t *Zip) Transcode(w *proxy.ResponseWriter, r *proxy.ResponseReader, headers http.Header) error

Jump to

Keyboard shortcuts

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