(resp *github.Response)
| 443 | } |
| 444 | |
| 445 | func buildPageInfo(resp *github.Response) pageInfo { |
| 446 | return pageInfo{ |
| 447 | HasNextPage: resp.After != "", |
| 448 | HasPreviousPage: resp.Before != "", |
| 449 | NextCursor: resp.After, |
| 450 | PrevCursor: resp.Before, |
| 451 | } |
| 452 | } |
| 453 | |
| 454 | // ToGraphQLParams converts cursor pagination parameters to GraphQL-specific parameters. |
| 455 | func (p CursorPaginationParams) ToGraphQLParams() (*GraphQLPaginationParams, error) { |
no outgoing calls
no test coverage detected