grpc_testing
v0.0.0-20170609214715-11d0a25b4919
grpc.go4.org/stats/grpc_testing
Documentation
pkg.go.dev ↗Package grpc_testing is a generated protocol buffer package.
It is generated from these files:
test.proto
It has these top-level messages:
SimpleRequest SimpleResponse
Functions
RegisterTestServiceServer
func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer)
Types
SimpleRequest
type SimpleRequest struct {
Id int32 `protobuf:"varint,2,opt,name=id" json:"id,omitempty"`
}
Unary request.
SimpleRequest.Descriptor
func (*SimpleRequest) Descriptor() ([]byte, []int)
SimpleRequest.ProtoMessage
func (*SimpleRequest) ProtoMessage()
SimpleRequest.Reset
func (m *SimpleRequest) Reset()
SimpleRequest.String
func (m *SimpleRequest) String() string
SimpleResponse
type SimpleResponse struct {
Id int32 `protobuf:"varint,3,opt,name=id" json:"id,omitempty"`
}
Unary response, as configured by the request.
SimpleResponse.Descriptor
func (*SimpleResponse) Descriptor() ([]byte, []int)
SimpleResponse.ProtoMessage
func (*SimpleResponse) ProtoMessage()
SimpleResponse.Reset
func (m *SimpleResponse) Reset()
SimpleResponse.String
func (m *SimpleResponse) String() string
TestServiceClient
type TestServiceClient interface {
// One request followed by one response.
// The server returns the client id as-is.
UnaryCall(ctx context.Context, in *SimpleRequest, opts ...grpc.CallOption) (*SimpleResponse, error)
// A sequence of requests with each request served by the server immediately.
// As one request could lead to multiple responses, this interface
// demonstrates the idea of full duplexing.
FullDuplexCall(ctx context.Context, opts ...grpc.CallOption) (TestService_FullDuplexCallClient, error)
}
NewTestServiceClient
func NewTestServiceClient(cc *grpc.ClientConn) TestServiceClient
TestServiceServer
type TestServiceServer interface {
// One request followed by one response.
// The server returns the client id as-is.
UnaryCall(context.Context, *SimpleRequest) (*SimpleResponse, error)
// A sequence of requests with each request served by the server immediately.
// As one request could lead to multiple responses, this interface
// demonstrates the idea of full duplexing.
FullDuplexCall(TestService_FullDuplexCallServer) error
}
TestService_FullDuplexCallClient
type TestService_FullDuplexCallClient interface {
Send(*SimpleRequest) error
Recv() (*SimpleResponse, error)
grpc.ClientStream
}
TestService_FullDuplexCallServer
type TestService_FullDuplexCallServer interface {
Send(*SimpleResponse) error
Recv() (*SimpleRequest, error)
grpc.ServerStream
}