Documentation
¶
Overview ¶
Package connecttest serves single RPCs through a connect.Server so server interceptors can be tested without a transport.
Index ¶
Constants ¶
View Source
const Procedure = "/test.v1.TestService/Method"
Procedure is the procedure Serve registers and calls.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Call ¶
type Call struct {
// StreamType of the registered method; the zero value is unary.
StreamType connect.StreamType
// Header holds the request headers the client sent.
Header map[string]string
// Handler serves the RPC behind the interceptors.
Handler connect.ServerFunc
}
Call describes the RPC that Serve dispatches.
Click to show internal directories.
Click to hide internal directories.