Documentation ¶
Index ¶
Constants ¶
View Source
const PAGINATION_DEFAULT_LIMIT = 100
View Source
const PAGINATION_MAX_LIMIT = 1000
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PaginatedResponse ¶
type PaginatedResponse struct { Items []render.Renderer `json:"items"` TotalCount int `json:"total_count"` PageCount int `json:"page_count"` NextPageOffset int `json:"next_page_offset"` PreviousPageOffset int `json:"previous_page_offset"` }
func (*PaginatedResponse) Render ¶
func (logEntry *PaginatedResponse) Render(writer http.ResponseWriter, request *http.Request) error
Click to show internal directories.
Click to hide internal directories.