Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExitError ¶
type ExitError struct {
Code int
}
ExitError is returned by Run when --check-status is set and the response status code indicates an error. Callers can inspect Code to decide how to handle it instead of the process exiting.
type Options ¶
type Options struct {
// Transport is applied to the underlying HTTP client. Use to mock or
// intercept network traffic. If nil, http.DefaultTransport will be cloned.
Transport http.RoundTripper
// Stdin is used for request body input. If nil, os.Stdin is used.
Stdin io.Reader
// Stdout receives response output. If nil, os.Stdout is used.
Stdout io.Writer
// Stderr receives usage and informational output. If nil, os.Stderr is used.
Stderr io.Writer
}
Click to show internal directories.
Click to hide internal directories.
