Paging parameters for request.
type PagingReq struct { // How far to offset the page. Offset int // Maximum item count to return. Limit int }
func PagingReqFromParams( headers valueFetcher, defaultLimit int, ) (pagingReq *PagingReq, err error)
Generates a PagingReq object from request parameters.
func (pagingReq *PagingReq) ToParams(params valueSetter)
Dumps paging information to request URL params.
type PagingResp struct { *PagingReq TotalItems int TotalPages int CurrentPage int Next string Previous string }
func PagingRespFromHeaders( params valueFetcher, defaultLimit int, ) (pagingResp *PagingResp, err error)
PagingRespFromHeaders generates a PagingResp object from response headers.
func (pagingResp *PagingResp) ToHeaders(headers valueSetter)
Alias to errors_api.SpanError
type SpanError = spanerrors.SpanError
Alias to errors_api.SpanErrorType
type SpanErrorType = spanerrors.SpanErrorType