httpexec

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2017 License: Apache-2.0 Imports: 6 Imported by: 10 modules, 8 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultResponseClassifier = ResponseClassifier(classifyResponse)

DefaultResponseClassifier is a pluggable classifier.

Functions

func NewSender

func NewSender(cf ClientFunc, ro ...httpcli.RequestOpt) calls.Sender

NewSender generates a sender that uses the Mesos v1 HTTP API for encoding/decoding requests/responses. The ResponseClass is inferred from the first object generated by the given Request.

Types

type ClientFunc

type ClientFunc func(client.Request, client.ResponseClass, ...httpcli.RequestOpt) (mesos.Response, error)

ClientFunc sends a Request to Mesos and returns the generated Response.

type ResponseClassifier

type ResponseClassifier func(*executor.Call) (client.ResponseClass, error)

ResponseClassifier determines the appropriate response class for the given call.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL