testpb

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmptyService_EmptyCall_FullMethodName   = "/testpb.EmptyService/EmptyCall"
	EmptyService_EmptyStream_FullMethodName = "/testpb.EmptyService/EmptyStream"
)
View Source
const (
	EchoService_EchoCall_FullMethodName = "/testpb.EchoService/EchoCall"
)

Variables

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

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

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Echo.ProtoReflect.Descriptor instead.

func (*Echo) GetPayload

func (x *Echo) GetPayload() []byte

func (*Echo) ProtoMessage

func (*Echo) ProtoMessage()

func (*Echo) ProtoReflect added in v0.7.0

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

func (*Echo) Reset

func (x *Echo) Reset()

func (*Echo) String

func (x *Echo) String() string

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect added in v0.7.0

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

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.

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.

func (UnimplementedEchoServiceServer) EchoCall added in v0.7.0

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) EmptyCall added in v0.7.0

func (UnimplementedEmptyServiceServer) EmptyStream added in v0.7.0

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.

Jump to

Keyboard shortcuts

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