httpmaster

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

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(*master.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