Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_rgen_proto protoreflect.FileDescriptor
var RGen_ServiceDesc = grpc.ServiceDesc{ ServiceName: "rgen.RGen", HandlerType: (*RGenServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GenerateReport", Handler: _RGen_GenerateReport_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "rgen.proto", }
RGen_ServiceDesc is the grpc.ServiceDesc for RGen service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRGenServer ¶
func RegisterRGenServer(s grpc.ServiceRegistrar, srv RGenServer)
Types ¶
type RGenClient ¶
type RGenClient interface {
GenerateReport(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
RGenClient is the client API for RGen 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 NewRGenClient ¶
func NewRGenClient(cc grpc.ClientConnInterface) RGenClient
type RGenServer ¶
type RGenServer interface { GenerateReport(context.Context, *Request) (*Response, error) // contains filtered or unexported methods }
RGenServer is the server API for RGen service. All implementations must embed UnimplementedRGenServer for forward compatibility
type Request ¶
type Request struct { PatientId string `protobuf:"bytes,1,opt,name=patient_id,json=patientId,proto3" json:"patient_id,omitempty"` LinkToXray string `protobuf:"bytes,2,opt,name=link_to_xray,json=linkToXray,proto3" json:"link_to_xray,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetLinkToXray ¶
func (*Request) GetPatientId ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { PatientId string `protobuf:"bytes,1,opt,name=patient_id,json=patientId,proto3" json:"patient_id,omitempty"` Report string `protobuf:"bytes,2,opt,name=report,proto3" json:"report,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetPatientId ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedRGenServer ¶
type UnimplementedRGenServer struct { }
UnimplementedRGenServer must be embedded to have forward compatible implementations.
func (UnimplementedRGenServer) GenerateReport ¶
type UnsafeRGenServer ¶
type UnsafeRGenServer interface {
// contains filtered or unexported methods
}
UnsafeRGenServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RGenServer will result in compilation errors.