 Documentation
      ¶
      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.
 Click to show internal directories. 
   Click to hide internal directories.