context

package
v0.9.3-beta Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHTTPRequest added in v0.9.3

func GetHTTPRequest(ctx context.Context) *http.Request

GetHTTPRequest gets request from context.

func GetHTTPResponseWriter added in v0.9.3

func GetHTTPResponseWriter(ctx context.Context) http.ResponseWriter

GetHTTPResponseWriter gets response writer from context.

func GetHeaderParameter added in v0.9.2

func GetHeaderParameter(ctx context.Context, name string) (string, error)

GetHeaderParameter gets value from request.HeaderParameter.

func GetJSONPayload added in v0.9.3

func GetJSONPayload(ctx context.Context, entity interface{}) error

GetJSONPayload reads json payload from request and unmarshal it into entity.

func GetQueryParameters added in v0.9.2

func GetQueryParameters(ctx context.Context) (string, error)

GetQueryParameters gets values from request.QueryParameter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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