Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultTimeout = 30 * time.Second
DefaultTimeout bounds a whole request including retries.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIError ¶
type Options ¶
type Options struct {
BaseURL string
APIKey string
Version string
Debug bool
// Zero means DefaultTimeout. Without it a stalled connection can hang forever.
Timeout time.Duration
// DebugOut receives --debug dumps. Never stdout: data goes to stdout so that
// `--output json > file` stays clean.
DebugOut io.Writer
}
Click to show internal directories.
Click to hide internal directories.