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 QueryParams ¶
type QueryParams struct { Start int64 `source:"query,start,default=0"` Limit int64 `source:"query,limit,default=99999"` Filter string `source:"query,filter"` // Sort will sorts the results by metadata.creationTimestamp Sort bool `source:"query,sort"` // Ascending will sort the results by ascending order, otherwise by descending order Ascending bool `source:"query,ascending"` // Detail determines whether to return details of list items. Detail bool `source:"query,detail"` }
QueryParams describes pagination of request, start and limit defined.
Click to show internal directories.
Click to hide internal directories.