Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterEchoServiceServer(s grpc.ServiceRegistrar, srv EchoServiceServer)
- func RegisterEmptyServiceServer(s grpc.ServiceRegistrar, srv EmptyServiceServer)
- type Echo
- type EchoServiceClient
- type EchoServiceServer
- type Empty
- type EmptyServiceClient
- type EmptyServiceServer
- type EmptyService_EmptyStreamClient
- type EmptyService_EmptyStreamServer
- type UnimplementedEchoServiceServer
- type UnimplementedEmptyServiceServer
- type UnsafeEchoServiceServer
- type UnsafeEmptyServiceServer
Constants ¶
const ( EmptyService_EmptyCall_FullMethodName = "/testpb.EmptyService/EmptyCall" EmptyService_EmptyStream_FullMethodName = "/testpb.EmptyService/EmptyStream" )
const (
EchoService_EchoCall_FullMethodName = "/testpb.EchoService/EchoCall"
)
Variables ¶
var EchoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "testpb.EchoService", HandlerType: (*EchoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "EchoCall", Handler: _EchoService_EchoCall_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "platform/view/services/grpc/testpb/test.proto", }
EchoService_ServiceDesc is the grpc.ServiceDesc for EchoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var EmptyService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "testpb.EmptyService", HandlerType: (*EmptyServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "EmptyCall", Handler: _EmptyService_EmptyCall_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "EmptyStream", Handler: _EmptyService_EmptyStream_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "platform/view/services/grpc/testpb/test.proto", }
EmptyService_ServiceDesc is the grpc.ServiceDesc for EmptyService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_platform_view_services_grpc_testpb_test_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEchoServiceServer ¶
func RegisterEchoServiceServer(s grpc.ServiceRegistrar, srv EchoServiceServer)
func RegisterEmptyServiceServer ¶
func RegisterEmptyServiceServer(s grpc.ServiceRegistrar, 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 ¶ added in v0.7.0
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEchoServiceClient ¶
func NewEchoServiceClient(cc grpc.ClientConnInterface) EchoServiceClient
type EchoServiceServer ¶
type EchoServiceServer interface {
EchoCall(context.Context, *Echo) (*Echo, error)
// contains filtered or unexported methods
}
EchoServiceServer is the server API for EchoService service. All implementations must embed UnimplementedEchoServiceServer for forward compatibility.
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶ added in v0.7.0
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) (grpc.BidiStreamingClient[Empty, Empty], error)
}
EmptyServiceClient is the client API for EmptyService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEmptyServiceClient ¶
func NewEmptyServiceClient(cc grpc.ClientConnInterface) EmptyServiceClient
type EmptyServiceServer ¶
type EmptyServiceServer interface {
EmptyCall(context.Context, *Empty) (*Empty, error)
EmptyStream(grpc.BidiStreamingServer[Empty, Empty]) error
// contains filtered or unexported methods
}
EmptyServiceServer is the server API for EmptyService service. All implementations must embed UnimplementedEmptyServiceServer for forward compatibility.
type EmptyService_EmptyStreamClient ¶
type EmptyService_EmptyStreamClient = grpc.BidiStreamingClient[Empty, Empty]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EmptyService_EmptyStreamServer ¶
type EmptyService_EmptyStreamServer = grpc.BidiStreamingServer[Empty, Empty]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type UnimplementedEchoServiceServer ¶ added in v0.7.0
type UnimplementedEchoServiceServer struct{}
UnimplementedEchoServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
type UnimplementedEmptyServiceServer ¶ added in v0.7.0
type UnimplementedEmptyServiceServer struct{}
UnimplementedEmptyServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedEmptyServiceServer) EmptyStream ¶ added in v0.7.0
func (UnimplementedEmptyServiceServer) EmptyStream(grpc.BidiStreamingServer[Empty, Empty]) error
type UnsafeEchoServiceServer ¶ added in v0.7.0
type UnsafeEchoServiceServer interface {
// contains filtered or unexported methods
}
UnsafeEchoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EchoServiceServer will result in compilation errors.
type UnsafeEmptyServiceServer ¶ added in v0.7.0
type UnsafeEmptyServiceServer interface {
// contains filtered or unexported methods
}
UnsafeEmptyServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EmptyServiceServer will result in compilation errors.