Documentation ¶
Index ¶
- Variables
- func RegisterRpcClientToTaskServer(s *grpc.Server, srv RpcClientToTaskServer)
- type ImageData
- func (*ImageData) Descriptor() ([]byte, []int)deprecated
- func (x *ImageData) GetClientID() string
- func (x *ImageData) GetHeight() int32
- func (x *ImageData) GetImage() []byte
- func (x *ImageData) GetMatType() int32
- func (x *ImageData) GetStart() int32
- func (x *ImageData) GetWidth() int32
- func (*ImageData) ProtoMessage()
- func (x *ImageData) ProtoReflect() protoreflect.Message
- func (x *ImageData) Reset()
- func (x *ImageData) String() string
- type PerfData
- type RpcClientToTaskClient
- type RpcClientToTaskServer
- type RpcClientToTask_SendRecvImageClient
- type RpcClientToTask_SendRecvImageServer
- type TestPerf
- type UnimplementedRpcClientToTaskServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_clientToTask_proto protoreflect.FileDescriptor
Functions ¶
func RegisterRpcClientToTaskServer ¶
func RegisterRpcClientToTaskServer(s *grpc.Server, srv RpcClientToTaskServer)
Types ¶
type ImageData ¶
type ImageData struct { Width int32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"` Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` MatType int32 `protobuf:"varint,3,opt,name=matType,proto3" json:"matType,omitempty"` Image []byte `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"` Start int32 `protobuf:"varint,5,opt,name=start,proto3" json:"start,omitempty"` ClientID string `protobuf:"bytes,6,opt,name=clientID,proto3" json:"clientID,omitempty"` // contains filtered or unexported fields }
func (*ImageData) Descriptor
deprecated
func (*ImageData) GetClientID ¶
func (*ImageData) GetMatType ¶
func (*ImageData) ProtoMessage ¶
func (*ImageData) ProtoMessage()
func (*ImageData) ProtoReflect ¶
func (x *ImageData) ProtoReflect() protoreflect.Message
type PerfData ¶
type PerfData struct { ProcTime *durationpb.Duration `protobuf:"bytes,1,opt,name=procTime,proto3" json:"procTime,omitempty"` // contains filtered or unexported fields }
func (*PerfData) Descriptor
deprecated
func (*PerfData) GetProcTime ¶
func (x *PerfData) GetProcTime() *durationpb.Duration
func (*PerfData) ProtoMessage ¶
func (*PerfData) ProtoMessage()
func (*PerfData) ProtoReflect ¶
func (x *PerfData) ProtoReflect() protoreflect.Message
type RpcClientToTaskClient ¶
type RpcClientToTaskClient interface { SendRecvImage(ctx context.Context, opts ...grpc.CallOption) (RpcClientToTask_SendRecvImageClient, error) TestPerformance(ctx context.Context, in *TestPerf, opts ...grpc.CallOption) (*PerfData, error) }
RpcClientToTaskClient is the client API for RpcClientToTask service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRpcClientToTaskClient ¶
func NewRpcClientToTaskClient(cc grpc.ClientConnInterface) RpcClientToTaskClient
type RpcClientToTaskServer ¶
type RpcClientToTaskServer interface { SendRecvImage(RpcClientToTask_SendRecvImageServer) error TestPerformance(context.Context, *TestPerf) (*PerfData, error) }
RpcClientToTaskServer is the server API for RpcClientToTask service.
type TestPerf ¶
type TestPerf struct { Check bool `protobuf:"varint,1,opt,name=check,proto3" json:"check,omitempty"` ClientID string `protobuf:"bytes,2,opt,name=clientID,proto3" json:"clientID,omitempty"` // contains filtered or unexported fields }
func (*TestPerf) Descriptor
deprecated
func (*TestPerf) GetClientID ¶
func (*TestPerf) ProtoMessage ¶
func (*TestPerf) ProtoMessage()
func (*TestPerf) ProtoReflect ¶
func (x *TestPerf) ProtoReflect() protoreflect.Message
type UnimplementedRpcClientToTaskServer ¶
type UnimplementedRpcClientToTaskServer struct { }
UnimplementedRpcClientToTaskServer can be embedded to have forward compatible implementations.
func (*UnimplementedRpcClientToTaskServer) SendRecvImage ¶
func (*UnimplementedRpcClientToTaskServer) SendRecvImage(RpcClientToTask_SendRecvImageServer) error
func (*UnimplementedRpcClientToTaskServer) TestPerformance ¶
Click to show internal directories.
Click to hide internal directories.