middleware

package
v0.0.0-...-17ece98 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encoder

func Encoder(next http.HandlerFunc) http.HandlerFunc

Encoder injects required response encoder to the request context.

func Pixel

func Pixel(next http.HandlerFunc) http.HandlerFunc

Pixel writes transparent 1x1 GIF if it found pixel key in query params.

Types

type EncoderKey

type EncoderKey struct{}

EncoderKey is used as a context key to store a Schema encoder.

Jump to

Keyboard shortcuts

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