Documentation ¶
Index ¶
- func QueryParamsFromRequest(request *restful.Request) (qp api.QueryParams, err error)
- func ReadEntityFromRequest(request *restful.Request, entityPointer interface{}) error
- func RecordCountQueryParamsFromRequest(request *restful.Request) (recentCount, recentSuccessCount, recentFailedCount int, err error)
- func ResponseWithError(response *restful.Response, err error)
- func ResponseWithList(list interface{}, total int) api.ListResponse
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.
Click to show internal directories.
Click to hide internal directories.