page

package
Version: v0.0.0-...-bf65384 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package page provides an utility to fetch paginated resources

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(
	httpClient client.HTTPClient,
	firstPageRequest http.Request,
	target interface{},
	pageLimit int,
) error

All fetches multiple pages given only a request for the first one and unmarshals them into `target`. JSON of each response must be an array and `target` must be a pointer to a slice of the according type.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL