http

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadQueryParamsFromRequest added in v0.3.0

func DownloadQueryParamsFromRequest(request *restful.Request) (bool, error)

DownloadQueryParamsFromRequest reads the query param whether download pipeline record logs from request.

func QueryParamsFromRequest

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

QueryParamsFromRequest reads the query params from request.

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.

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