grpctest

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package grpctest provides client-side RPC inspection for transport tests. It complements emulator tests without implementing Spanner server behavior.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inspect

func Inspect(inspect func(method string, request any) error) []grpc.DialOption

Inspect calls inspect before each unary request or stream message is sent. Returning a non-nil gRPC status error prevents that message from being sent. The callback may run concurrently; it must not mutate or retain the message without copying it. Returning nil preserves the actual server response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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