Documentation ¶
Overview ¶
Package rest provides common functions for consuming REST APIs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rest ¶
type Rest struct { // HTTPClient abstracts the http client for testing purposes. HTTPClient httpClient // tokenGetter abstracts getting default oauth2 access token for testing purposes. TokenGetter defaultTokenGetter }
Rest is a struct for making REST API calls.
Click to show internal directories.
Click to hide internal directories.