# Functions
EncodeURL encodes the given arguments into the URL, escaping values as needed.
ExtractExtraProperties extracts any extra properties from the given value.
MarshalJSONWithExtraProperties marshals the given value to JSON, including any extra properties.
MarshalJSONWithExtraProperty marshals the given value to JSON, including the extra property.
MergeHeaders merges the given headers together, where the right takes precedence over the left.
NewCaller returns a new *Caller backed by the given parameters.
NewCursorPager constructs a new Pager that fetches pages from a paginated endpoint.
NewDate returns a new *Date.
NewDateTime returns a new *DateTime.
NewErrorDecoder returns a new ErrorDecoder backed by the given error codes.
NewMultipartWriter creates a new multipart writer.
NewOffsetPager constructs a new Pager that fetches pages from an offset paginated endpoint.
NewOptionalDate returns a new *Date.
NewOptionalDateTime returns a new *DateTime.
NewRetrier constructs a new *Retrier with the given options, if any.
QueryValues encodes url.Values from request objects.
ResolveBaseURL resolves the base URL from the given arguments, preferring the first non-empty value.
StringifyJSON returns a pretty JSON string representation of the given value.
WithDefaultContentType sets the default Content-Type for the part written to the MultipartWriter.
WithMaxAttempts configures the maximum number of attempts of the *Retrier.
# Constants
The available set of pagination modes.
The available set of pagination modes.
# Structs
Caller calls APIs and deserializes their response, if any.
CallerParams represents the parameters used to constrcut a new *Caller.
CallParams represents the parameters used to issue an API call.
DateTime wraps time.Time and adapts its JSON representation to conform to a RFC3339 date (e.g.
DateTime wraps time.Time and adapts its JSON representation to conform to a RFC3339 date-time (e.g.
MultipartWriter writes multipart/form-data requests.
Pager is the primary abstraction used to call paginated APIs.
PageRequest represents the information required to identify a single page.
PageResponse represents the information associated with a single page.
Retrier retries failed requests a configurable number of times with an exponential back-off between each retry.
# Interfaces
ContentTyped is implemented by types that define a Content-Type.
HTTPClient is an interface for a subset of the *http.Client.
Named is implemented by types that define a name.
QueryEncoder is an interface implemented by any type that wishes to encode itself into URL values in a non-standard way.
# Type aliases
ErrorCodes maps HTTP status codes to error constructors.
ErrorDecoder decodes *http.Response errors and returns a typed API error (e.g.
PageRequestFunc prepares the *CallParams from the given page request.
PageResponseFunc extracts the next page information from the response.
PagerMode represents the different types of pagination modes.
RetryFunc is a retriable HTTP function call (i.e.
RetryOption adapts the behavior the *Retrier.
WriteMultipartOption adapts the behavior of the multipart writer.