summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/nlopes/slack/pagination.go
blob: 87dd136a4b035d94046315355d2291448941858c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package slack

// Paging contains paging information
type Paging struct {
	Count int `json:"count"`
	Total int `json:"total"`
	Page  int `json:"page"`
	Pages int `json:"pages"`
}

// Pagination contains pagination information
// This is different from Paging in that it contains additional details
type Pagination struct {
	TotalCount int `json:"total_count"`
	Page       int `json:"page"`
	PerPage    int `json:"per_page"`
	PageCount  int `json:"page_count"`
	First      int `json:"first"`
	Last       int `json:"last"`
}