Documentation ¶
Index ¶
- Variables
- func RegisterEchoServiceServer(s *grpc.Server, srv EchoServiceServer)
- func RegisterEmptyServiceServer(s *grpc.Server, srv EmptyServiceServer)
- type Echo
- type EchoServiceClient
- type EchoServiceServer
- type Empty
- type EmptyServiceClient
- type EmptyServiceServer
- type EmptyService_EmptyStreamClient
- type EmptyService_EmptyStreamServer
- type UnimplementedEchoServiceServer
- type UnimplementedEmptyServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_test_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEchoServiceServer ¶
func RegisterEchoServiceServer(s *grpc.Server, srv EchoServiceServer)
func RegisterEmptyServiceServer ¶
func RegisterEmptyServiceServer(s *grpc.Server, srv EmptyServiceServer)
Types ¶
type Echo ¶
type Echo struct { Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*Echo) Descriptor
deprecated
func (*Echo) GetPayload ¶
func (*Echo) ProtoMessage ¶
func (*Echo) ProtoMessage()
func (*Echo) ProtoReflect ¶
func (x *Echo) ProtoReflect() protoreflect.Message
type EchoServiceClient ¶
type EchoServiceClient interface {
EchoCall(ctx context.Context, in *Echo, opts ...grpc.CallOption) (*Echo, error)
}
EchoServiceClient is the client API for EchoService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEchoServiceClient ¶
func NewEchoServiceClient(cc grpc.ClientConnInterface) EchoServiceClient
type EchoServiceServer ¶
EchoServiceServer is the server API for EchoService service.
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type EmptyServiceClient ¶
type EmptyServiceClient interface { EmptyCall(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) EmptyStream(ctx context.Context, opts ...grpc.CallOption) (EmptyService_EmptyStreamClient, error) }
EmptyServiceClient is the client API for EmptyService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEmptyServiceClient ¶
func NewEmptyServiceClient(cc grpc.ClientConnInterface) EmptyServiceClient
type EmptyServiceServer ¶
type EmptyServiceServer interface { EmptyCall(context.Context, *Empty) (*Empty, error) EmptyStream(EmptyService_EmptyStreamServer) error }
EmptyServiceServer is the server API for EmptyService service.
type UnimplementedEchoServiceServer ¶
type UnimplementedEchoServiceServer struct { }
UnimplementedEchoServiceServer can be embedded to have forward compatible implementations.
type UnimplementedEmptyServiceServer ¶
type UnimplementedEmptyServiceServer struct { }
UnimplementedEmptyServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedEmptyServiceServer) EmptyStream ¶
func (*UnimplementedEmptyServiceServer) EmptyStream(EmptyService_EmptyStreamServer) error