Documentation ¶
Index ¶
- Constants
- func TestPing(client TestClient, getStatus func(error) (codes.Code, string)) error
- func TestPingBidiStream(client TestClient, getStatus func(error) (codes.Code, string)) error
- func TestPingClientStream(client TestClient, getStatus func(error) (codes.Code, string)) error
- func TestPingList(client TestClient, getStatus func(error) (codes.Code, string)) error
- type FailureType
- type Request
- type Response
- type TestClient
- type TestPingBidiStreamClient
- type TestPingBidiStreamErrorClient
- type TestPingClientStreamClient
- type TestPingClientStreamErrorClient
- type TestPingListClient
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 TestPingBidiStream ¶ added in v0.6.0
func TestPingClientStream ¶ added in v0.6.0
func TestPingList ¶ added in v0.6.0
Types ¶
type TestClient ¶ added in v0.6.0
type TestClient interface { Ping(context.Context, *Request, *metadata.MD, *metadata.MD) (*Response, error) PingError(context.Context, *Request) error PingList(context.Context, *Request, *metadata.MD, *metadata.MD) (TestPingListClient, error) PingClientStream(context.Context, *metadata.MD, *metadata.MD) (TestPingClientStreamClient, error) PingClientStreamError(context.Context) (TestPingClientStreamErrorClient, error) PingBidiStream(context.Context, *metadata.MD, *metadata.MD) (TestPingBidiStreamClient, error) PingBidiStreamError(context.Context) (TestPingBidiStreamErrorClient, error) }
type TestPingBidiStreamClient ¶ added in v0.6.0
type TestPingBidiStreamErrorClient ¶ added in v0.6.0
type TestPingClientStreamClient ¶ added in v0.6.0
type TestPingClientStreamErrorClient ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.