interop
v1.10.0
Documentation
pkg.go.dev ↗Functions
ClientNewPayload
func ClientNewPayload(t testpb.PayloadType, size int) *testpb.Payload
ClientNewPayload returns a payload of the given type and size.
DoCancelAfterBegin
func DoCancelAfterBegin(tc testpb.TestServiceClient, args ...grpc.CallOption)
DoCancelAfterBegin cancels the RPC after metadata has been sent but before payloads are sent.
DoCancelAfterFirstResponse
func DoCancelAfterFirstResponse(tc testpb.TestServiceClient, args ...grpc.CallOption)
DoCancelAfterFirstResponse cancels the RPC after receiving the first message from the server.
DoClientStreaming
func DoClientStreaming(tc testpb.TestServiceClient, args ...grpc.CallOption)
DoClientStreaming performs a client streaming RPC.
DoComputeEngineCreds
func DoComputeEngineCreds(tc testpb.TestServiceClient, serviceAccount, oauthScope string)
DoComputeEngineCreds performs a unary RPC with compute engine auth.
DoCustomMetadata
func DoCustomMetadata(tc testpb.TestServiceClient, args ...grpc.CallOption)
DoCustomMetadata checks that metadata is echoed back to the client.
DoEmptyStream
func DoEmptyStream(tc testpb.TestServiceClient, args ...grpc.CallOption)
DoEmptyStream sets up a bi-directional streaming with zero message.
DoEmptyUnaryCall
func DoEmptyUnaryCall(tc testpb.TestServiceClient, args ...grpc.CallOption)
DoEmptyUnaryCall performs a unary RPC with empty request and response messages.
DoJWTTokenCreds
func DoJWTTokenCreds(tc testpb.TestServiceClient, serviceAccountKeyFile string)
DoJWTTokenCreds performs a unary RPC with JWT token auth.
DoLargeUnaryCall
func DoLargeUnaryCall(tc testpb.TestServiceClient, args ...grpc.CallOption)
DoLargeUnaryCall performs a unary RPC with large payload in the request and response.
DoOauth2TokenCreds
func DoOauth2TokenCreds(tc testpb.TestServiceClient, serviceAccountKeyFile, oauthScope string)
DoOauth2TokenCreds performs a unary RPC with OAUTH2 token auth.
DoPerRPCCreds
func DoPerRPCCreds(tc testpb.TestServiceClient, serviceAccountKeyFile, oauthScope string)
DoPerRPCCreds performs a unary RPC with per RPC OAUTH2 token.
DoPingPong
func DoPingPong(tc testpb.TestServiceClient, args ...grpc.CallOption)
DoPingPong performs ping-pong style bi-directional streaming RPC.
DoServerStreaming
func DoServerStreaming(tc testpb.TestServiceClient, args ...grpc.CallOption)
DoServerStreaming performs a server streaming RPC.
DoServiceAccountCreds
func DoServiceAccountCreds(tc testpb.TestServiceClient, serviceAccountKeyFile, oauthScope string)
DoServiceAccountCreds performs a unary RPC with service account auth.
DoStatusCodeAndMessage
func DoStatusCodeAndMessage(tc testpb.TestServiceClient, args ...grpc.CallOption)
DoStatusCodeAndMessage checks that the status code is propagated back to the client.
DoTimeoutOnSleepingServer
func DoTimeoutOnSleepingServer(tc testpb.TestServiceClient, args ...grpc.CallOption)
DoTimeoutOnSleepingServer performs an RPC on a sleep server which causes RPC timeout.
DoUnimplementedMethod
func DoUnimplementedMethod(cc *grpc.ClientConn)
DoUnimplementedMethod attempts to call an unimplemented method.
DoUnimplementedService
func DoUnimplementedService(tc testpb.UnimplementedServiceClient)
DoUnimplementedService attempts to call a method from an unimplemented service.
GetToken
func GetToken(serviceAccountKeyFile string, oauthScope string) *oauth2.Token
GetToken obtains an OAUTH token from the input.
NewTestServer
func NewTestServer() testpb.TestServiceServer
NewTestServer creates a test server for test service.