middlewares

package
v0.0.0-...-828e842 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2015 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthHandler

func AuthHandler(next *ctx.Handler) *ctx.Handler

AuthHandler middleware This handler handles auth based on the assertion that the request is valid JSON Verifies for access, blocks handlers chain if access denied

func EnforceJSONHandler

func EnforceJSONHandler(next *ctx.Handler) *ctx.Handler

EnforceJSONHandler middleware This handler can handle raw requests This handler checks for detected content type as well as content-type header

func ValidateEventTrackingPayloadHandler

func ValidateEventTrackingPayloadHandler(next *ctx.FinalHandler) *ctx.Handler

ValidateEventTrackingPayloadHandler validates that the payload has a valid JSON Schema Uses a FinalHandler as next because it consumes the request's body

Types

This section is empty.

Jump to

Keyboard shortcuts

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