Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
- type Msg
- type TestServiceClient
- type TestServiceServer
- type TestService_BidiStreamClient
- type TestService_BidiStreamServer
- type TestService_ClientStreamClient
- type TestService_ClientStreamServer
- type TestService_ServerStreamClient
- type TestService_ServerStreamServer
- type TestService_ServerStreamThatSleepsClient
- type TestService_ServerStreamThatSleepsServer
- type UnimplementedTestServiceServer
- func (UnimplementedTestServiceServer) BidiStream(grpc.BidiStreamingServer[Msg, Msg]) error
- func (UnimplementedTestServiceServer) ClientStream(grpc.ClientStreamingServer[Msg, Msg]) error
- func (UnimplementedTestServiceServer) ServerStream(*Msg, grpc.ServerStreamingServer[Msg]) error
- func (UnimplementedTestServiceServer) ServerStreamThatSleeps(*Msg, grpc.ServerStreamingServer[Msg]) error
- func (UnimplementedTestServiceServer) Unary(context.Context, *Msg) (*Msg, error)
- type UnsafeTestServiceServer
Constants ¶
const ( TestService_Unary_FullMethodName = "/grpcwebsockets.TestService/Unary" TestService_BidiStream_FullMethodName = "/grpcwebsockets.TestService/BidiStream" TestService_ServerStream_FullMethodName = "/grpcwebsockets.TestService/ServerStream" TestService_ServerStreamThatSleeps_FullMethodName = "/grpcwebsockets.TestService/ServerStreamThatSleeps" TestService_ClientStream_FullMethodName = "/grpcwebsockets.TestService/ClientStream" )
Variables ¶
var File_testproto_test_proto protoreflect.FileDescriptor
var TestService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpcwebsockets.TestService", HandlerType: (*TestServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Unary", Handler: _TestService_Unary_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "BidiStream", Handler: _TestService_BidiStream_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "ServerStream", Handler: _TestService_ServerStream_Handler, ServerStreams: true, }, { StreamName: "ServerStreamThatSleeps", Handler: _TestService_ServerStreamThatSleeps_Handler, ServerStreams: true, }, { StreamName: "ClientStream", Handler: _TestService_ClientStream_Handler, ClientStreams: true, }, }, Metadata: "testproto/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 RegisterTestServiceServer ¶
func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
Types ¶
type Msg ¶
type Msg struct { Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Msg) Descriptor
deprecated
func (*Msg) ProtoMessage ¶
func (*Msg) ProtoMessage()
func (*Msg) ProtoReflect ¶
func (x *Msg) ProtoReflect() protoreflect.Message
type TestServiceClient ¶
type TestServiceClient interface { Unary(ctx context.Context, in *Msg, opts ...grpc.CallOption) (*Msg, error) BidiStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[Msg, Msg], error) ServerStream(ctx context.Context, in *Msg, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Msg], error) ServerStreamThatSleeps(ctx context.Context, in *Msg, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Msg], error) ClientStream(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[Msg, Msg], 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 { Unary(context.Context, *Msg) (*Msg, error) BidiStream(grpc.BidiStreamingServer[Msg, Msg]) error ServerStream(*Msg, grpc.ServerStreamingServer[Msg]) error ServerStreamThatSleeps(*Msg, grpc.ServerStreamingServer[Msg]) error ClientStream(grpc.ClientStreamingServer[Msg, Msg]) error }
TestServiceServer is the server API for TestService service. All implementations should embed UnimplementedTestServiceServer for forward compatibility.
type TestService_BidiStreamClient ¶
type TestService_BidiStreamClient = grpc.BidiStreamingClient[Msg, Msg]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type TestService_BidiStreamServer ¶
type TestService_BidiStreamServer = grpc.BidiStreamingServer[Msg, Msg]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type TestService_ClientStreamClient ¶
type TestService_ClientStreamClient = grpc.ClientStreamingClient[Msg, Msg]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type TestService_ClientStreamServer ¶
type TestService_ClientStreamServer = grpc.ClientStreamingServer[Msg, Msg]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type TestService_ServerStreamClient ¶
type TestService_ServerStreamClient = grpc.ServerStreamingClient[Msg]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type TestService_ServerStreamServer ¶
type TestService_ServerStreamServer = grpc.ServerStreamingServer[Msg]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type TestService_ServerStreamThatSleepsClient ¶ added in v0.1.3
type TestService_ServerStreamThatSleepsClient = grpc.ServerStreamingClient[Msg]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type TestService_ServerStreamThatSleepsServer ¶ added in v0.1.3
type TestService_ServerStreamThatSleepsServer = grpc.ServerStreamingServer[Msg]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type UnimplementedTestServiceServer ¶
type UnimplementedTestServiceServer struct{}
UnimplementedTestServiceServer should 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 (UnimplementedTestServiceServer) BidiStream ¶
func (UnimplementedTestServiceServer) BidiStream(grpc.BidiStreamingServer[Msg, Msg]) error
func (UnimplementedTestServiceServer) ClientStream ¶
func (UnimplementedTestServiceServer) ClientStream(grpc.ClientStreamingServer[Msg, Msg]) error
func (UnimplementedTestServiceServer) ServerStream ¶
func (UnimplementedTestServiceServer) ServerStream(*Msg, grpc.ServerStreamingServer[Msg]) error
func (UnimplementedTestServiceServer) ServerStreamThatSleeps ¶ added in v0.1.3
func (UnimplementedTestServiceServer) ServerStreamThatSleeps(*Msg, grpc.ServerStreamingServer[Msg]) error
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.