Documentation ¶
Index ¶
Constants ¶
const (
Status_GetStatus_FullMethodName = "/tests.rpctypes.message.v1.Status/GetStatus"
)
Variables ¶
var File_example_api_tests_rpctypes_message_proto protoreflect.FileDescriptor
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 ¶
StatusService is the service API for Status service.
type UnimplementedStatusServer ¶
type UnimplementedStatusServer struct { }
UnimplementedStatusServer must be embedded to have forward compatible implementations.
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.