Documentation ¶
Overview ¶
Shared models for Spanreed ecosystem.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PagingReq ¶
type PagingReq struct { // How far to offset the page. Offset int // Maximum item count to return. Limit int }
Paging parameters for request.
func PagingReqFromParams ¶
func PagingReqFromParams( headers valueFetcher, defaultLimit int, ) (pagingReq *PagingReq, err error)
Generates a PagingReq object from request parameters.
type PagingResp ¶
type PagingResp struct { *PagingReq TotalItems int TotalPages int CurrentPage int Next string Previous string }
func PagingRespFromHeaders ¶
func PagingRespFromHeaders( params valueFetcher, defaultLimit int, ) (pagingResp *PagingResp, err error)
PagingRespFromHeaders generates a PagingResp object from response headers.
func (*PagingResp) ToHeaders ¶
func (pagingResp *PagingResp) ToHeaders(headers valueSetter)
type SpanErrorType ¶
type SpanErrorType = spanerrors.SpanErrorType
Alias to errors_api.SpanErrorType
Click to show internal directories.
Click to hide internal directories.