clientToTask

package
v0.0.0-...-33d2293 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: MIT Imports: 10 Imported by: 2

Documentation

Index

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

Deprecated: Use ImageData.ProtoReflect.Descriptor instead.

func (*ImageData) GetClientID

func (x *ImageData) GetClientID() string

func (*ImageData) GetHeight

func (x *ImageData) GetHeight() int32

func (*ImageData) GetImage

func (x *ImageData) GetImage() []byte

func (*ImageData) GetMatType

func (x *ImageData) GetMatType() int32

func (*ImageData) GetStart

func (x *ImageData) GetStart() int32

func (*ImageData) GetWidth

func (x *ImageData) GetWidth() int32

func (*ImageData) ProtoMessage

func (*ImageData) ProtoMessage()

func (*ImageData) ProtoReflect

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

func (*ImageData) Reset

func (x *ImageData) Reset()

func (*ImageData) String

func (x *ImageData) String() string

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

Deprecated: Use PerfData.ProtoReflect.Descriptor instead.

func (*PerfData) GetProcTime

func (x *PerfData) GetProcTime() *durationpb.Duration

func (*PerfData) ProtoMessage

func (*PerfData) ProtoMessage()

func (*PerfData) ProtoReflect

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

func (*PerfData) Reset

func (x *PerfData) Reset()

func (*PerfData) String

func (x *PerfData) String() string

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.

type RpcClientToTaskServer

type RpcClientToTaskServer interface {
	SendRecvImage(RpcClientToTask_SendRecvImageServer) error
	TestPerformance(context.Context, *TestPerf) (*PerfData, error)
}

RpcClientToTaskServer is the server API for RpcClientToTask service.

type RpcClientToTask_SendRecvImageClient

type RpcClientToTask_SendRecvImageClient interface {
	Send(*ImageData) error
	Recv() (*ImageData, error)
	grpc.ClientStream
}

type RpcClientToTask_SendRecvImageServer

type RpcClientToTask_SendRecvImageServer interface {
	Send(*ImageData) error
	Recv() (*ImageData, error)
	grpc.ServerStream
}

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

Deprecated: Use TestPerf.ProtoReflect.Descriptor instead.

func (*TestPerf) GetCheck

func (x *TestPerf) GetCheck() bool

func (*TestPerf) GetClientID

func (x *TestPerf) GetClientID() string

func (*TestPerf) ProtoMessage

func (*TestPerf) ProtoMessage()

func (*TestPerf) ProtoReflect

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

func (*TestPerf) Reset

func (x *TestPerf) Reset()

func (*TestPerf) String

func (x *TestPerf) String() string

type UnimplementedRpcClientToTaskServer

type UnimplementedRpcClientToTaskServer struct {
}

UnimplementedRpcClientToTaskServer can be embedded to have forward compatible implementations.

func (*UnimplementedRpcClientToTaskServer) SendRecvImage

func (*UnimplementedRpcClientToTaskServer) TestPerformance

Jump to

Keyboard shortcuts

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