middleware

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// BestCompression provides the highest-level of compression
	BestCompression = gzip.BestCompression

	// BestSpeed focuses on speed rather than space saving
	BestSpeed = gzip.BestSpeed

	// DefaultCompression is the middle ground between speed and space
	DefaultCompression = gzip.DefaultCompression

	// NoCompression leaves the data as is
	NoCompression = gzip.NoCompression
)

Variables

This section is empty.

Functions

func Gzip

func Gzip(level int) gin.HandlerFunc

Gzip compresses the response data

func Logger

func Logger(l log.Logger) gin.HandlerFunc

Logger is middleware which logs every request. It does not record the client IP on purpose.

Types

This section is empty.

Jump to

Keyboard shortcuts

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