package
0.4.0
Repository: https://github.com/vapiai/server-sdk-go.git
Documentation: pkg.go.dev

# Functions

NewAPIError constructs a new API error.
NewRequestOptions returns a new *RequestOptions value.

# Variables

ErrNoPages is a sentinel error used to signal that no pages remain.

# Structs

APIError is a lightweight wrapper around the standard error interface that preserves the status code from the RPC, if any.
BaseURLOption implements the RequestOption interface.
BodyPropertiesOption implements the RequestOption interface.
HTTPClientOption implements the RequestOption interface.
HTTPHeaderOption implements the RequestOption interface.
MaxAttemptsOption implements the RequestOption interface.
Page represents a single page of results.
PageIterator is an auto-iterator for paginated endpoints.
QueryParametersOption implements the RequestOption interface.
RequestOptions defines all of the possible request options.
TokenOption implements the RequestOption interface.

# Interfaces

HTTPClient is an interface for a subset of the *http.Client.
RequestOption adapts the behavior of the client or an individual request.