testproto

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var File_testproto_test_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Msg.ProtoReflect.Descriptor instead.

func (*Msg) GetValue

func (x *Msg) GetValue() int32

func (*Msg) ProtoMessage

func (*Msg) ProtoMessage()

func (*Msg) ProtoReflect

func (x *Msg) ProtoReflect() protoreflect.Message

func (*Msg) Reset

func (x *Msg) Reset()

func (*Msg) String

func (x *Msg) String() string

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)
	ServerStreamThatSleeps(ctx context.Context, in *Msg, opts ...grpc.CallOption) (TestService_ServerStreamThatSleepsClient, 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.

type TestServiceServer

type TestServiceServer interface {
	Unary(context.Context, *Msg) (*Msg, error)
	BidiStream(TestService_BidiStreamServer) error
	ServerStream(*Msg, TestService_ServerStreamServer) error
	ServerStreamThatSleeps(*Msg, TestService_ServerStreamThatSleepsServer) error
	ClientStream(TestService_ClientStreamServer) error
}

TestServiceServer is the server API for TestService service. All implementations should embed UnimplementedTestServiceServer for forward compatibility

type TestService_BidiStreamClient

type TestService_BidiStreamClient interface {
	Send(*Msg) error
	Recv() (*Msg, error)
	grpc.ClientStream
}

type TestService_BidiStreamServer

type TestService_BidiStreamServer interface {
	Send(*Msg) error
	Recv() (*Msg, error)
	grpc.ServerStream
}

type TestService_ClientStreamClient

type TestService_ClientStreamClient interface {
	Send(*Msg) error
	CloseAndRecv() (*Msg, error)
	grpc.ClientStream
}

type TestService_ClientStreamServer

type TestService_ClientStreamServer interface {
	SendAndClose(*Msg) error
	Recv() (*Msg, error)
	grpc.ServerStream
}

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 TestService_ServerStreamThatSleepsClient added in v0.1.3

type TestService_ServerStreamThatSleepsClient interface {
	Recv() (*Msg, error)
	grpc.ClientStream
}

type TestService_ServerStreamThatSleepsServer added in v0.1.3

type TestService_ServerStreamThatSleepsServer 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) ClientStream

func (UnimplementedTestServiceServer) ServerStream

func (UnimplementedTestServiceServer) ServerStreamThatSleeps added in v0.1.3

func (UnimplementedTestServiceServer) Unary

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL