grpc

package
v0.0.0-...-b87209e Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 14 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 MakeStreamRequest

func MakeStreamRequest(addr, name string, s int, tlsConfig *tls.Config) error

MakeStreamRequest makes a streaming 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 ...mgrpc.Option) (*mgrpc.ServerGRPC, 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