middleware

package
v0.0.0-...-7dc6c5b Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cors

func Cors() gin.HandlerFunc

Cors creates cors middleware.

func CorsConfig

func CorsConfig() cors.Config

CorsConfig creates cors config.

func Gzip

func Gzip() gin.HandlerFunc

Gzip creates gzip middleware.

func GzipLevel

func GzipLevel() int

GzipLevel returns gzip level.

func Static

func Static(path string) gin.HandlerFunc

Static creates static middleware.

Types

This section is empty.

Jump to

Keyboard shortcuts

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