package httpexec
import "github.com/mesos/mesos-go/api/v1/lib/httpcli/httpexec"
Index ¶
- Variables
- func NewSender(cf ClientFunc, ro ...httpcli.RequestOpt) calls.Sender
- type ClientFunc
- type ResponseClassifier
Variables ¶
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.
Source Files ¶
gen.go httpexec_generated.go util.go
- Version
- v0.0.11 (latest)
- Published
- May 15, 2020
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 7 hours ago –
Tools for package owners.