Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iter ¶
type Iter struct {
// contains filtered or unexported fields
}
Iter defines an iterator type that is returned by list methods. It's intended to be embedded in a domain specific iterator struct.
func NewIter ¶
NewIter returns a new initialized iterator. This method automatically makes the first query to populate the results. List methods should use this helper method when building domain specific iterators.
type ListResponse ¶
type ListResponse interface {
// NextPage returns a URL for retrieving the next page of list results.
NextPage() string
}
ListResponse defines an interface that list API responses must implement.
type Query ¶
type Query func(string) (ListResponse, []interface{}, error)
Query defines a closure that domain specific iterators must implement. The implementation should include a call to the API and should return the API response with a separate slice of the results.
Click to show internal directories.
Click to hide internal directories.