Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRequestFailed = errors.New("request failed")
View Source
var ErrResponseIncomplete = errors.New("response incomplete")
Functions ¶
Types ¶
type Options ¶
type Options struct { // URL of the server to connect to. Address string Logger Logger // Customize the User-Agent header sent to the server. UserAgent string // Client is used to make HTTP requests. If not provided http.DefaultClient // is used. Client *http.Client }
Options defines the options for a new client.
Click to show internal directories.
Click to hide internal directories.