common

package
v0.0.0-...-d482384 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetID

func GetID(r *http.Request, paramName string) (_ int, extErr exterrors.ExtError)

func GetSizeAndPage

func GetSizeAndPage(urlQuery url.Values) (_, _ int, extErr exterrors.ExtError)

func ProcessRequestBody

func ProcessRequestBody(w http.ResponseWriter, r *http.Request, body interface{}) error

func SendExtError

func SendExtError(w http.ResponseWriter, extError exterrors.ExtError)

func SendExtErrors

func SendExtErrors(w http.ResponseWriter, httpCode int, httpErrors exterrors.ExtErrors)

func SendRawResponse

func SendRawResponse(w http.ResponseWriter, statusCode int, binBody []byte)

func SendResponse

func SendResponse(w http.ResponseWriter, statusCode int, respBody interface{})

func UnmarshalRequestBody

func UnmarshalRequestBody(r *http.Request, body interface{}) exterrors.ExtError

func ValidateRequestBody

func ValidateRequestBody(r *http.Request, body interface{}) exterrors.ExtErrors

Types

This section is empty.

Jump to

Keyboard shortcuts

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