grpctest

package
v0.0.0-...-68fadb2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartTestGRPCTestServer

func StartTestGRPCTestServer(ctx context.Context, t *testing.T, baseServer *grpc.Server) grpc.DialOption

Mock transport for GRPC: This sets up a grpc server using bufcon transport for testing., it takes in a server and it will start listening with that server, it will clean up with t.Cleanup or on the given ctx cancel This returns a DialOption that will set the Dialer to connect to this server, for use with NewClient

Types

This section is empty.

Jump to

Keyboard shortcuts

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