Skip to content

Commit a0be303

Browse files
committed
remove offset pagination stuff
1 parent 091357a commit a0be303

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

zendesk/zendesk.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,6 @@ type (
4141
Delete(ctx context.Context, path string) error
4242
}
4343

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-
6544
// CursorPagination contains options for using cursor pagination.
6645
// Cursor pagination is preferred where possible.
6746
CursorPagination struct {

0 commit comments

Comments
 (0)