package
0.0.11
Repository: https://github.com/mesos/mesos-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

BasicAuth generates a functional config option that sets HTTP Basic authentication for a Client.
Close returns a RequestOpt that determines whether to close the underlying connection after sending the request.
Codec returns an Opt that sets a Client's Codec.
Context returns a RequestOpt that sets the request's Context (ctx must be non-nil).
DefaultHeader returns an Opt that adds a header to an Client's headers.
Do returns an Opt that sets a Client's DoFunc.
Endpoint returns an Opt that sets a Client's URL.
ErrorMapper returns am Opt that overrides the existing error mapping behavior of the client.
HandleResponse returns a functional config option to set the HTTP response handler of the client.
Header returns an RequestOpt that adds a header value to an HTTP requests's header.
New returns a new Client with the given Opts applied.
RequestOptions returns an Opt that applies the given set of options to every Client request.
RoundTripper returns a ConfigOpt that sets a Config's round-tripper.
Timeout returns an ConfigOpt that sets a Config's response header timeout, tls handshake timeout, and dialer timeout.
TLSConfig returns a ConfigOpt that sets a Config's TLS configuration.
Transport returns a ConfigOpt that allows tweaks of the default Config's http.Transport.
With returns a DoFunc that executes HTTP round-trips.
WrapDoer returns an Opt that decorates a Client's DoFunc.
WrapRoundTripper allows a caller to customize a configuration's HTTP exchanger.

# Variables

No description provided by the author
DefaultConfigOpt represents the default client config options.
No description provided by the author
No description provided by the author

# Structs

A Client is a Mesos HTTP APIs client.
No description provided by the author
HTTPRequestHelper wraps an http.Request and provides utility funcs to simplify code elsewhere.
Response captures the output of a Mesos HTTP API operation.

# Type aliases

No description provided by the author
DoFunc sends an HTTP request and returns an HTTP response.
ErrorMapperFunc generates an error for the given response.
No description provided by the author
No description provided by the author
ProtocolError is returned when we receive a response from Mesos that is outside of the HTTP API specification.
RequestOpt defines a functional option for an http.Request.
RequestOpts is a convenience type.
ResponseHandler is invoked to process an HTTP response.