testutil

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunGRPCServer

func RunGRPCServer(t *testing.T, log *zap.Logger, opts ...ServerOption) grpc.ClientConnInterface

Types

type ServerOption

type ServerOption func(o *serverOpts)

ServerOption configures the settings when creating a test server.

func WithService

func WithService(f func(*grpc.Server)) ServerOption

WithService registers a function to be called in order to bind a service.

func WithStreamClientInterceptor

func WithStreamClientInterceptor(i grpc.StreamClientInterceptor) ServerOption

WithStreamClientInterceptor adds a stream client interceptor to the test client.

func WithStreamServerInterceptor

func WithStreamServerInterceptor(i grpc.StreamServerInterceptor) ServerOption

WithStreamServerInterceptor adds a stream server interceptor to the test client.

func WithUnaryClientInterceptor

func WithUnaryClientInterceptor(i grpc.UnaryClientInterceptor) ServerOption

WithUnaryClientInterceptor adds a unary client interceptor to the test client.

func WithUnaryServerInterceptor

func WithUnaryServerInterceptor(i grpc.UnaryServerInterceptor) ServerOption

WithUnaryServerInterceptor adds a unary server interceptor to the test client.

Jump to

Keyboard shortcuts

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