gzip

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2017 License: MIT Imports: 10 Imported by: 0

README

gzip

Go Report Card GoDoc

Gzip Middleware for Golang

Documentation

Index

Constants

View Source
const (
	NoCompression      = gzip.NoCompression
	BestSpeed          = gzip.BestSpeed
	BestCompression    = gzip.BestCompression
	DefaultCompression = gzip.DefaultCompression
	HuffmanOnly        = gzip.HuffmanOnly
)

Copy from compress/gzip

Variables

View Source
var DefaultConfig = Config{
	Skipper: middleware.DefaultSkipper,
	Level:   DefaultCompression,
}

DefaultConfig use default compression level

Functions

func New

func New(config Config) middleware.Middleware

New creates new gzip middleware

Types

type Config

type Config struct {
	Skipper middleware.Skipper
	Level   int
}

Config is the gzip middleware config

Jump to

Keyboard shortcuts

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