http

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryParamsFromRequest

func QueryParamsFromRequest(request *restful.Request) (qp api.QueryParams, err error)

QueryParamsFromRequest reads the query params from request body.

func ReadEntityFromRequest

func ReadEntityFromRequest(request *restful.Request, entityPointer interface{}) error

ReadEntityFromRequest reads the entity from request body.

func RecordCountQueryParamsFromRequest

func RecordCountQueryParamsFromRequest(request *restful.Request) (recentCount, recentSuccessCount, recentFailedCount int, err error)

RecordCountQueryParamsFromRequest reads the query params of pipeline record count from request body.

func ResponseWithError

func ResponseWithError(response *restful.Response, err error)

ResponseWithError responses the request with error.

func ResponseWithList

func ResponseWithList(list interface{}, total int) api.ListResponse

ResponseWithList responses list with metadata.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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