client

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request interface {
	Marshaler() encoding.Marshaler
}

Request is a non-streaming request from the client to the server. Marshaler always returns the same object; the object is sent once to the server and then a response is expected.

func RequestSingleton

func RequestSingleton(m encoding.Marshaler) Request

RequestSingleton generates a non-streaming Request that always returns the same marshaler

type RequestFunc

type RequestFunc func() encoding.Marshaler

func (RequestFunc) Marshaler

func (f RequestFunc) Marshaler() encoding.Marshaler

type RequestStreaming

type RequestStreaming interface {
	Request
	IsStreaming()
}

RequestStreaming is a streaming request from the client to the server. Marshaler returns a new object for upon each invocation, nil when there are no more objects to send. Client implementations are expected to differentiate between Request and RequestStreaming either by type-switching or by attempting interface conversion.

type RequestStreamingFunc

type RequestStreamingFunc func() encoding.Marshaler

func (RequestStreamingFunc) IsStreaming

func (f RequestStreamingFunc) IsStreaming()

func (RequestStreamingFunc) Marshaler

func (f RequestStreamingFunc) Marshaler() encoding.Marshaler

type ResponseClass

type ResponseClass int

ResponseClass indicates the kind of response that a caller is expecting from Mesos.

const (
	ResponseClassSingleton ResponseClass = iota
	ResponseClassStreaming
	ResponseClassNoData

	// ResponseClassAuto should be used with versions of Mesos prior to 1.2.x.
	// Otherwise, this type is deprecated and callers should use ResponseClassSingleton
	// or ResponseClassStreaming instead.
	ResponseClassAuto
)

Jump to

Keyboard shortcuts

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