Documentation ¶
Overview ¶
Package test is a generated protocol buffer package.
It is generated from these files:
test.proto
It has these top-level messages:
UnaryRequest UnaryResponse StreamInputRequest StreamInputResponse StreamOutputRequest StreamOutputResponse BidirectionalRequest BidirectionalResponse
Index ¶
- func RegisterTestServer(s *grpc.Server, srv TestServer)
- type BidirectionalRequest
- type BidirectionalResponse
- type StreamInputRequest
- type StreamInputResponse
- type StreamOutputRequest
- type StreamOutputResponse
- type TestClient
- type TestServer
- type Test_BidirectionalClient
- type Test_BidirectionalServer
- type Test_StreamInputClient
- type Test_StreamInputServer
- type Test_StreamOutputClient
- type Test_StreamOutputServer
- type UnaryRequest
- type UnaryResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTestServer ¶
func RegisterTestServer(s *grpc.Server, srv TestServer)
Types ¶
type BidirectionalRequest ¶
type BidirectionalRequest struct { }
func (*BidirectionalRequest) Descriptor ¶
func (*BidirectionalRequest) Descriptor() ([]byte, []int)
func (*BidirectionalRequest) ProtoMessage ¶
func (*BidirectionalRequest) ProtoMessage()
func (*BidirectionalRequest) Reset ¶
func (m *BidirectionalRequest) Reset()
func (*BidirectionalRequest) String ¶
func (m *BidirectionalRequest) String() string
type BidirectionalResponse ¶
type BidirectionalResponse struct {
Ok bool `protobuf:"varint,1,opt,name=ok" json:"ok,omitempty"`
}
func (*BidirectionalResponse) Descriptor ¶
func (*BidirectionalResponse) Descriptor() ([]byte, []int)
func (*BidirectionalResponse) GetOk ¶
func (m *BidirectionalResponse) GetOk() bool
func (*BidirectionalResponse) ProtoMessage ¶
func (*BidirectionalResponse) ProtoMessage()
func (*BidirectionalResponse) Reset ¶
func (m *BidirectionalResponse) Reset()
func (*BidirectionalResponse) String ¶
func (m *BidirectionalResponse) String() string
type StreamInputRequest ¶
type StreamInputRequest struct { }
func (*StreamInputRequest) Descriptor ¶
func (*StreamInputRequest) Descriptor() ([]byte, []int)
func (*StreamInputRequest) ProtoMessage ¶
func (*StreamInputRequest) ProtoMessage()
func (*StreamInputRequest) Reset ¶
func (m *StreamInputRequest) Reset()
func (*StreamInputRequest) String ¶
func (m *StreamInputRequest) String() string
type StreamInputResponse ¶
type StreamInputResponse struct {
Ok bool `protobuf:"varint,1,opt,name=ok" json:"ok,omitempty"`
}
func (*StreamInputResponse) Descriptor ¶
func (*StreamInputResponse) Descriptor() ([]byte, []int)
func (*StreamInputResponse) GetOk ¶
func (m *StreamInputResponse) GetOk() bool
func (*StreamInputResponse) ProtoMessage ¶
func (*StreamInputResponse) ProtoMessage()
func (*StreamInputResponse) Reset ¶
func (m *StreamInputResponse) Reset()
func (*StreamInputResponse) String ¶
func (m *StreamInputResponse) String() string
type StreamOutputRequest ¶
type StreamOutputRequest struct { }
func (*StreamOutputRequest) Descriptor ¶
func (*StreamOutputRequest) Descriptor() ([]byte, []int)
func (*StreamOutputRequest) ProtoMessage ¶
func (*StreamOutputRequest) ProtoMessage()
func (*StreamOutputRequest) Reset ¶
func (m *StreamOutputRequest) Reset()
func (*StreamOutputRequest) String ¶
func (m *StreamOutputRequest) String() string
type StreamOutputResponse ¶
type StreamOutputResponse struct {
Ok bool `protobuf:"varint,1,opt,name=ok" json:"ok,omitempty"`
}
func (*StreamOutputResponse) Descriptor ¶
func (*StreamOutputResponse) Descriptor() ([]byte, []int)
func (*StreamOutputResponse) GetOk ¶
func (m *StreamOutputResponse) GetOk() bool
func (*StreamOutputResponse) ProtoMessage ¶
func (*StreamOutputResponse) ProtoMessage()
func (*StreamOutputResponse) Reset ¶
func (m *StreamOutputResponse) Reset()
func (*StreamOutputResponse) String ¶
func (m *StreamOutputResponse) String() string
type TestClient ¶
type TestClient interface { Unary(ctx context.Context, in *UnaryRequest, opts ...grpc.CallOption) (*UnaryResponse, error) StreamInput(ctx context.Context, opts ...grpc.CallOption) (Test_StreamInputClient, error) StreamOutput(ctx context.Context, in *StreamOutputRequest, opts ...grpc.CallOption) (Test_StreamOutputClient, error) Bidirectional(ctx context.Context, opts ...grpc.CallOption) (Test_BidirectionalClient, error) }
func NewTestClient ¶
func NewTestClient(cc *grpc.ClientConn) TestClient
type TestServer ¶
type TestServer interface { Unary(context.Context, *UnaryRequest) (*UnaryResponse, error) StreamInput(Test_StreamInputServer) error StreamOutput(*StreamOutputRequest, Test_StreamOutputServer) error Bidirectional(Test_BidirectionalServer) error }
type Test_BidirectionalClient ¶
type Test_BidirectionalClient interface { Send(*BidirectionalRequest) error Recv() (*BidirectionalResponse, error) grpc.ClientStream }
type Test_BidirectionalServer ¶
type Test_BidirectionalServer interface { Send(*BidirectionalResponse) error Recv() (*BidirectionalRequest, error) grpc.ServerStream }
type Test_StreamInputClient ¶
type Test_StreamInputClient interface { Send(*StreamInputRequest) error CloseAndRecv() (*StreamInputResponse, error) grpc.ClientStream }
type Test_StreamInputServer ¶
type Test_StreamInputServer interface { SendAndClose(*StreamInputResponse) error Recv() (*StreamInputRequest, error) grpc.ServerStream }
type Test_StreamOutputClient ¶
type Test_StreamOutputClient interface { Recv() (*StreamOutputResponse, error) grpc.ClientStream }
type Test_StreamOutputServer ¶
type Test_StreamOutputServer interface { Send(*StreamOutputResponse) error grpc.ServerStream }
type UnaryRequest ¶
type UnaryRequest struct { }
func (*UnaryRequest) Descriptor ¶
func (*UnaryRequest) Descriptor() ([]byte, []int)
func (*UnaryRequest) ProtoMessage ¶
func (*UnaryRequest) ProtoMessage()
func (*UnaryRequest) Reset ¶
func (m *UnaryRequest) Reset()
func (*UnaryRequest) String ¶
func (m *UnaryRequest) String() string
type UnaryResponse ¶
type UnaryResponse struct {
Ok bool `protobuf:"varint,1,opt,name=ok" json:"ok,omitempty"`
}
func (*UnaryResponse) Descriptor ¶
func (*UnaryResponse) Descriptor() ([]byte, []int)
func (*UnaryResponse) GetOk ¶
func (m *UnaryResponse) GetOk() bool
func (*UnaryResponse) ProtoMessage ¶
func (*UnaryResponse) ProtoMessage()
func (*UnaryResponse) Reset ¶
func (m *UnaryResponse) Reset()
func (*UnaryResponse) String ¶
func (m *UnaryResponse) String() string
Click to show internal directories.
Click to hide internal directories.