http

package
v0.6.1-hr Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// HeaderUser represents the the key of user in request header.
	HeaderUser = "X-User"
)

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