Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StreamInfo = &grpc.StreamServerInfo{ FullMethod: "TestServerInterceptor", IsServerStream: true, }
View Source
var UnaryInfo = &grpc.UnaryServerInfo{
FullMethod: "TestUnaryInterceptor",
}
Functions ¶
This section is empty.
Types ¶
type MockServerStream ¶
type MockServerStream struct { grpc.ServerStream // contains filtered or unexported fields }
func NewMockServerStream ¶
func NewMockServerStream(withMetada bool) *MockServerStream
func (*MockServerStream) Context ¶
func (m *MockServerStream) Context() context.Context
func (*MockServerStream) RecvMsg ¶
func (m *MockServerStream) RecvMsg(msg interface{}) error
func (*MockServerStream) SendMsg ¶
func (m *MockServerStream) SendMsg(msg interface{}) error
func (*MockServerStream) SetContext ¶
func (m *MockServerStream) SetContext(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.