grpc

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package grpc provides utilities to test the gRPC server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeRequest

func MakeRequest(addr, name string, tlsConfig *tls.Config) error

MakeRequest makes a test request to the Echo endpoint.

func NewStreamMiddleware

func NewStreamMiddleware(i *atomic.Int64) grpc.StreamServerInterceptor

NewStreamMiddleware creates a new stream test middleware.

func NewUnaryMiddlware

func NewUnaryMiddlware(i *atomic.Int64) grpc.UnaryServerInterceptor

NewUnaryMiddlware creates a new unary test middleware.

func SetupServer

func SetupServer(opts ...server.Option) (server.Entrypoint, func(t *testing.T), error)

SetupServer will create a gRPC test server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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