Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterEchoServiceServer(s grpc.ServiceRegistrar, srv EchoServiceServer)
- func RegisterEmptyServiceServer(s grpc.ServiceRegistrar, srv EmptyServiceServer)
- func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
- type Echo
- type EchoServiceClient
- type EchoServiceServer
- type Empty
- type EmptyServiceClient
- type EmptyServiceServer
- type EmptyService_EmptyStreamClient
- type EmptyService_EmptyStreamServer
- type TestServiceClient
- type TestServiceServer
- type UnimplementedEchoServiceServer
- type UnimplementedEmptyServiceServer
- type UnimplementedTestServiceServer
- type UnsafeEchoServiceServer
- type UnsafeEmptyServiceServer
- type UnsafeTestServiceServer
Constants ¶
const ( EmptyService_EmptyCall_FullMethodName = "/EmptyService/EmptyCall" EmptyService_EmptyStream_FullMethodName = "/EmptyService/EmptyStream" )
const (
EchoService_EchoCall_FullMethodName = "/EchoService/EchoCall"
)
const (
TestService_EmptyCall_FullMethodName = "/TestService/EmptyCall"
)
Variables ¶
var EchoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "EchoService", HandlerType: (*EchoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "EchoCall", Handler: _EchoService_EchoCall_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "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: "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: "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_test_proto protoreflect.FileDescriptor
var TestService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "TestService", HandlerType: (*TestServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "EmptyCall", Handler: _TestService_EmptyCall_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "test.proto", }
TestService_ServiceDesc is the grpc.ServiceDesc for TestService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterEchoServiceServer ¶
func RegisterEchoServiceServer(s grpc.ServiceRegistrar, srv EchoServiceServer)
func RegisterEmptyServiceServer ¶
func RegisterEmptyServiceServer(s grpc.ServiceRegistrar, srv EmptyServiceServer)
func RegisterTestServiceServer ¶
func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
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://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 ¶
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 TestServiceClient ¶
type TestServiceClient interface {
EmptyCall(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
}
TestServiceClient is the client API for TestService 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 NewTestServiceClient ¶
func NewTestServiceClient(cc grpc.ClientConnInterface) TestServiceClient
type TestServiceServer ¶
type TestServiceServer interface {
EmptyCall(context.Context, *Empty) (*Empty, error)
// contains filtered or unexported methods
}
TestServiceServer is the server API for TestService service. All implementations must embed UnimplementedTestServiceServer for forward compatibility.
type UnimplementedEchoServiceServer ¶
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 ¶
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 ¶
func (UnimplementedEmptyServiceServer) EmptyStream(grpc.BidiStreamingServer[Empty, Empty]) error
type UnimplementedTestServiceServer ¶
type UnimplementedTestServiceServer struct{}
UnimplementedTestServiceServer 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 UnsafeEchoServiceServer ¶
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 ¶
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.
type UnsafeTestServiceServer ¶
type UnsafeTestServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTestServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestServiceServer will result in compilation errors.