Documentation ¶
Overview ¶
Package grpc provides utilities to test the gRPC server.
Index ¶
- func MakeRequest(addr, name string, tlsConfig *tls.Config) error
- func MakeStreamRequest(addr, name string, s int, tlsConfig *tls.Config) error
- func NewStreamMiddleware(i *atomic.Int64) grpc.StreamServerInterceptor
- func NewUnaryMiddlware(i *atomic.Int64) grpc.UnaryServerInterceptor
- func SetupServer(opts ...mgrpc.Option) (*mgrpc.ServerGRPC, func(t *testing.T), error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeRequest ¶
MakeRequest makes a test request to the Echo endpoint.
func MakeStreamRequest ¶
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 ¶
SetupServer will create a gRPC test server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.