rpctypes

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Status_GetStatus_FullMethodName = "/tests.rpctypes.message.v1.Status/GetStatus"
)

Variables

View Source
var File_example_api_tests_rpctypes_message_proto protoreflect.FileDescriptor
View Source
var Status_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "tests.rpctypes.message.v1.Status",
	HandlerType: (*StatusServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetStatus",
			Handler:    _Status_GetStatus_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "example/api/tests/rpctypes/message.proto",
}

Status_ServiceDesc is the grpc.ServiceDesc for Status service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterStatusServer

func RegisterStatusServer(s grpc.ServiceRegistrar, srv StatusServer)

func StatusServiceRoutes

func StatusServiceRoutes(svc StatusService, opts ...gors.Option) []gors.Route

Types

type StatusClient

type StatusClient interface {
	GetStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*status.Status, error)
}

StatusClient is the client API for Status 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 NewStatusClient

func NewStatusClient(cc grpc.ClientConnInterface) StatusClient

type StatusServer

type StatusServer interface {
	GetStatus(context.Context, *emptypb.Empty) (*status.Status, error)
	// contains filtered or unexported methods
}

StatusServer is the server API for Status service. All implementations must embed UnimplementedStatusServer for forward compatibility

type StatusService

type StatusService interface {
	GetStatus(context.Context, *emptypb.Empty) (*status.Status, error)
}

StatusService is the service API for Status service.

type UnimplementedStatusServer

type UnimplementedStatusServer struct {
}

UnimplementedStatusServer must be embedded to have forward compatible implementations.

func (UnimplementedStatusServer) GetStatus

type UnsafeStatusServer

type UnsafeStatusServer interface {
	// contains filtered or unexported methods
}

UnsafeStatusServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StatusServer will result in compilation errors.

Jump to

Keyboard shortcuts

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