types

package
v0.9.3-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListMeta

type ListMeta struct {
	Total       int `json:"total"`
	ItemsLength int `json:"itemsLength"`
}

ListMeta describes the structure of list metadata

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL