Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UnaryInfo = &grpc.UnaryServerInfo{ FullMethod: "TestService.UnaryMethod", } StreamInfo = &grpc.StreamServerInfo{ FullMethod: "TestService.StreamMethod", IsClientStream: false, IsServerStream: true, } )
Functions ¶
Types ¶
type TestServerStream ¶
type TestServerStream struct { grpc.ServerStream // contains filtered or unexported fields }
func ServerStream ¶
func ServerStream(ctx context.Context) *TestServerStream
func (*TestServerStream) Context ¶
func (ts *TestServerStream) Context() context.Context
func (*TestServerStream) Method ¶
func (ts *TestServerStream) Method() string
func (*TestServerStream) RecvMsg ¶
func (ts *TestServerStream) RecvMsg(m interface{}) error
func (*TestServerStream) SendMsg ¶
func (ts *TestServerStream) SendMsg(m interface{}) error
type TestServerTransportStream ¶
type TestServerTransportStream struct {
// contains filtered or unexported fields
}
func ServerTransportStream ¶
func ServerTransportStream(method string) *TestServerTransportStream
func (*TestServerTransportStream) Method ¶
func (ts *TestServerTransportStream) Method() string
func (*TestServerTransportStream) SendHeader ¶
func (ts *TestServerTransportStream) SendHeader(md metadata.MD) error
func (*TestServerTransportStream) SetHeader ¶
func (ts *TestServerTransportStream) SetHeader(md metadata.MD) error
func (*TestServerTransportStream) SetTrailer ¶
func (ts *TestServerTransportStream) SetTrailer(md metadata.MD) error
Click to show internal directories.
Click to hide internal directories.