type

Pagination

Stable page metadata independent of document type.

Properties

PropertyTypeDescription
PageintThe Page value.
LimitintThe Limit value.
TotalDocs*intThe TotalDocs value.
TotalPages*intThe TotalPages value.
HasNextPageboolThe HasNextPage value.
HasPrevPageboolThe HasPrevPage value.

Full signature

type Pagination struct { Page int `json:"page"` Limit int `json:"limit"` TotalDocs *int `json:"totalDocs,omitempty"` TotalPages *int `json:"totalPages,omitempty"` HasNextPage bool `json:"hasNextPage"` HasPrevPage bool `json:"hasPrevPage"` }

Source protocol/envelope.go:265