httpbinder

package module
v0.0.0-...-fc517b4 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: MIT Imports: 10 Imported by: 0

README

gohttpbinder

Simple go library to bind http request to struct

Documentation

Index

Constants

This section is empty.

Variables

Functions

func BindFormBody

func BindFormBody(req *http.Request, outPtr interface{}) error

func BindHeader

func BindHeader(req *http.Request, outPtr interface{}) error

func BindJSONBody

func BindJSONBody(req *http.Request, outPtr interface{}) error

func BindQuery

func BindQuery(req *http.Request, outPtr interface{}) error

Types

type BindFunc

type BindFunc func(req *http.Request, outPtr interface{}) error

func BindMultipartFormBody

func BindMultipartFormBody(maxMemory int64) BindFunc

func BindParam

func BindParam(paramExtractor ParamExtractor) BindFunc

func Compose

func Compose(fns ...BindFunc) BindFunc

type ParamExtractor

type ParamExtractor func(req *http.Request, name string) string

Jump to

Keyboard shortcuts

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