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 UnimplementedTestServiceServer
- func (UnimplementedTestServiceServer) BidiStream(TestService_BidiStreamServer) error
- func (UnimplementedTestServiceServer) ClientStream(TestService_ClientStreamServer) error
- func (UnimplementedTestServiceServer) ServerStream(*Msg, TestService_ServerStreamServer) 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_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: "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) (TestService_BidiStreamClient, error) ServerStream(ctx context.Context, in *Msg, opts ...grpc.CallOption) (TestService_ServerStreamClient, error) ClientStream(ctx context.Context, opts ...grpc.CallOption) (TestService_ClientStreamClient, 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(TestService_BidiStreamServer) error ServerStream(*Msg, TestService_ServerStreamServer) error ClientStream(TestService_ClientStreamServer) error }
TestServiceServer is the server API for TestService service. All implementations should embed UnimplementedTestServiceServer for forward compatibility
type TestService_ServerStreamClient ¶
type TestService_ServerStreamClient interface { Recv() (*Msg, error) grpc.ClientStream }
type TestService_ServerStreamServer ¶
type TestService_ServerStreamServer interface { Send(*Msg) error grpc.ServerStream }
type UnimplementedTestServiceServer ¶
type UnimplementedTestServiceServer struct { }
UnimplementedTestServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedTestServiceServer) BidiStream ¶
func (UnimplementedTestServiceServer) BidiStream(TestService_BidiStreamServer) error
func (UnimplementedTestServiceServer) ClientStream ¶
func (UnimplementedTestServiceServer) ClientStream(TestService_ClientStreamServer) error
func (UnimplementedTestServiceServer) ServerStream ¶
func (UnimplementedTestServiceServer) ServerStream(*Msg, TestService_ServerStreamServer) 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.