handler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package handler contains a set of http handlers to address: decode: DDAPI requests decoding exec: DML execution params: query/statement parameters validation query: DQL execution session: JWT/session introspection signature: query/statement signature checking

Index

Constants

View Source
const (
	DecodedRequest contextKey = iota
	DecodedParams
)

DecodedRequest context key

Variables

This section is empty.

Functions

func CheckParams

func CheckParams(pc check.ParamsChecker, next http.Handler) http.Handler

CheckParams validates the parameters in an incoming request

func CheckSignatures

func CheckSignatures(sc check.SignatureChecker, next http.Handler) http.Handler

CheckSignatures checks the signatures for a given request

func DecodeFormRequest added in v0.2.0

func DecodeFormRequest(next http.Handler) http.Handler

DecodeFormRequest decodes an incoming request and adds it to the context

func DecodeJSONRequest added in v0.2.0

func DecodeJSONRequest(next http.Handler) http.Handler

DecodeJSONRequest decodes an incoming request and adds it to the context deprecated: use DecodeFormRequest instead since it's more developer friendly

func NewExec

NewExec returns a new DDApi exec handler

func NewQuery

NewQuery returns a new DDApi query handler

func ReadSession

func ReadSession(s session.Reader, next http.Handler) http.Handler

ReadSession copies the session params from the session into the parameters collection

func ValidateFormRequest added in v0.2.0

func ValidateFormRequest(next http.Handler) http.Handler

ValidateFormRequest validates an incoming request

Types

This section is empty.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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