shared

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTP1Server           = ":9090"
	EmptyHTTP1Server      = ":9095"
	HTTP2Server           = ":9100"
	EmptyHTTP2Server      = ":9105"
	GopherJSServer        = ":8080"
	ClientMDTestKey       = "HeaderTestKey1"
	ClientMDTestValue     = "ClientValue1"
	ServerMDTestKey1      = "HeaderTestKey1"
	ServerTrailerTestKey1 = "TrailerTestKey1"
	ServerMDTestValue1    = "ServerValue1"
	ServerTrailerTestKey2 = "TrailerTestKey2"
	ServerMDTestKey2      = "HeaderTestKey2"
	ServerMDTestValue2    = "ServerValue2"
)

Addresses for the various servers

Variables

This section is empty.

Functions

func TestPing added in v0.6.0

func TestPing(client TestClient, getStatus func(error) (codes.Code, string)) error

func TestPingBidiStream added in v0.6.0

func TestPingBidiStream(client TestClient, getStatus func(error) (codes.Code, string)) error

func TestPingClientStream added in v0.6.0

func TestPingClientStream(client TestClient, getStatus func(error) (codes.Code, string)) error

func TestPingList added in v0.6.0

func TestPingList(client TestClient, getStatus func(error) (codes.Code, string)) error

Types

type FailureType added in v0.6.0

type FailureType int
const (
	NONE FailureType = iota
	CODE
	DROP
)

type Request added in v0.6.0

type Request struct {
	Value             string
	ResponseCount     int32
	ErrorCodeReturned uint32
	FailureType       FailureType
	CheckMetadata     bool
	SendHeaders       bool
	SendTrailers      bool
	MessageLatencyMs  int32
}

type Response added in v0.6.0

type Response struct {
	Value   string
	Counter int32
}

type TestPingBidiStreamClient added in v0.6.0

type TestPingBidiStreamClient interface {
	Send(*Request) error
	Recv() (*Response, error)
	CloseSend() error
	Trailer() metadata.MD
	Header() (metadata.MD, error)
}

type TestPingBidiStreamErrorClient added in v0.6.0

type TestPingBidiStreamErrorClient interface {
	Send(*Request) error
	Recv() (*Response, error)
	CloseSend() error
}

type TestPingClientStreamClient added in v0.6.0

type TestPingClientStreamClient interface {
	Send(*Request) error
	CloseAndRecv() (*Response, error)
	Trailer() metadata.MD
	Header() (metadata.MD, error)
}

type TestPingClientStreamErrorClient added in v0.6.0

type TestPingClientStreamErrorClient interface {
	Send(*Request) error
	CloseAndRecv() (*Response, error)
}

type TestPingListClient added in v0.6.0

type TestPingListClient interface {
	Recv() (*Response, error)
	Trailer() metadata.MD
	Header() (metadata.MD, error)
}

Jump to

Keyboard shortcuts

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