File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -41,27 +41,6 @@ type (
41
41
Delete (ctx context.Context , path string ) error
42
42
}
43
43
44
- // OffsetPagination contains options for using offset pagination.
45
- // Many endpoints support cursor pagination, which is preferred as
46
- // it is more performant on large datasets.
47
- OffsetPagination struct {
48
- // Page is the page number to request.
49
- Page int `url:"page,omitempty"`
50
-
51
- // PerPage is the number of results desired on each page.
52
- // Most endpoints support up to 100 records per page.
53
- PerPage int `url:"per_page,omitempty"`
54
- }
55
-
56
- // OffsetPaginationMeta contains next and previous page pointers.
57
- OffsetPaginationMeta struct {
58
- // NextPage is a link to the next page of results, nil if none left.
59
- NextPage string `json:"next_page,omitempty"`
60
-
61
- // PreviousPage is a link to the previous page of results, nil if on first page.
62
- PreviousPage string `json:"previous_page,omitempty"`
63
- }
64
-
65
44
// CursorPagination contains options for using cursor pagination.
66
45
// Cursor pagination is preferred where possible.
67
46
CursorPagination struct {
You can’t perform that action at this time.
0 commit comments