Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListResponse ¶
type ListResponse struct { Metadata ListMeta `json:"metadata"` Items interface{} `json:"items"` }
ListResponse describes a list
func NewListResponse ¶
func NewListResponse(total int, items interface{}) *ListResponse
NewListResponse create a ListResponse of a list.
type Pagination ¶
type Pagination struct { Start int64 `source:"query,start,default=0"` Limit int64 `source:"query,limit,default=99999"` }
Pagination describes pagination of request, start and limit defined.
Click to show internal directories.
Click to hide internal directories.