testing

package
v0.0.0-...-585cd1b Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetadataReplyHeaders  = "reply-with-headers"
	MetadataReplyTrailers = "reply-with-trailers"
	MetadataFailEarly     = "fail-early"
	MetadataFailLate      = "fail-late"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TestServer

type TestServer struct{}

func (TestServer) EmptyCall

One empty request followed by one empty response.

func (TestServer) FullDuplexCall

A sequence of requests with each request served by the server immediately. As one request could lead to multiple responses, this interface demonstrates the idea of full duplexing.

func (TestServer) HalfDuplexCall

A sequence of requests followed by a sequence of responses. The server buffers all the client requests and then serves them in order. A stream of responses are returned to the client when the server starts with first request.

func (TestServer) StreamingInputCall

A sequence of requests followed by one response (streamed upload). The server returns the aggregated size of client payload as the result.

func (TestServer) StreamingOutputCall

One request followed by a sequence of responses (streamed download). The server returns the payload with client desired type and sizes.

func (TestServer) UnaryCall

One request followed by one response. The server returns the client payload as-is.

Jump to

Keyboard shortcuts

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