proto

package
v0.0.0-...-949e8d3 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetLinkToXray

func (x *Request) GetLinkToXray() string

func (*Request) GetPatientId

func (x *Request) GetPatientId() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetPatientId

func (x *Response) GetPatientId() string

func (*Response) GetReport

func (x *Response) GetReport() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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.

Jump to

Keyboard shortcuts

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