package httpmaster

import "github.com/mesos/mesos-go/api/v1/lib/httpcli/httpmaster"

Index

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(*master.Call) (client.ResponseClass, error)

ResponseClassifier determines the appropriate response class for the given call.

Source Files

gen.go httpmaster_generated.go util.go

Version
v0.0.11 (latest)
Published
May 15, 2020
Platform
linux/amd64
Imports
7 packages
Last checked
3 hours ago

Tools for package owners.