Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterPicCaptureServiceServer(s grpc.ServiceRegistrar, srv PicCaptureServiceServer)
- type CaptureRequest
- func (*CaptureRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CaptureRequest) GetChannelID() string
- func (x *CaptureRequest) GetDeviceID() string
- func (x *CaptureRequest) GetMinioURL() string
- func (*CaptureRequest) ProtoMessage()
- func (x *CaptureRequest) ProtoReflect() protoreflect.Message
- func (x *CaptureRequest) Reset()
- func (x *CaptureRequest) String() string
- type CaptureResponse
- type EmptyResponse
- type PicCaptureServiceClient
- type PicCaptureServiceServer
- type UnimplementedPicCaptureServiceServer
- type UnsafePicCaptureServiceServer
Constants ¶
const (
PicCaptureService_PicCapture_FullMethodName = "/pic_capture.PicCaptureService/PicCapture"
)
Variables ¶
var File_pic_capture_proto protoreflect.FileDescriptor
var PicCaptureService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pic_capture.PicCaptureService", HandlerType: (*PicCaptureServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PicCapture", Handler: _PicCaptureService_PicCapture_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pic_capture.proto", }
PicCaptureService_ServiceDesc is the grpc.ServiceDesc for PicCaptureService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPicCaptureServiceServer ¶
func RegisterPicCaptureServiceServer(s grpc.ServiceRegistrar, srv PicCaptureServiceServer)
Types ¶
type CaptureRequest ¶
type CaptureRequest struct { // 设备编号 DeviceID string `protobuf:"bytes,1,opt,name=DeviceID,proto3" json:"DeviceID,omitempty"` // 通道编号 ChannelID string `protobuf:"bytes,2,opt,name=ChannelID,proto3" json:"ChannelID,omitempty"` // minio参数 MinioURL string `protobuf:"bytes,3,opt,name=MinioURL,proto3" json:"MinioURL,omitempty"` // contains filtered or unexported fields }
func (*CaptureRequest) Descriptor
deprecated
func (*CaptureRequest) Descriptor() ([]byte, []int)
Deprecated: Use CaptureRequest.ProtoReflect.Descriptor instead.
func (*CaptureRequest) GetChannelID ¶
func (x *CaptureRequest) GetChannelID() string
func (*CaptureRequest) GetDeviceID ¶
func (x *CaptureRequest) GetDeviceID() string
func (*CaptureRequest) GetMinioURL ¶
func (x *CaptureRequest) GetMinioURL() string
func (*CaptureRequest) ProtoMessage ¶
func (*CaptureRequest) ProtoMessage()
func (*CaptureRequest) ProtoReflect ¶
func (x *CaptureRequest) ProtoReflect() protoreflect.Message
func (*CaptureRequest) Reset ¶
func (x *CaptureRequest) Reset()
func (*CaptureRequest) String ¶
func (x *CaptureRequest) String() string
type CaptureResponse ¶
type CaptureResponse struct { PictureURL string `protobuf:"bytes,1,opt,name=PictureURL,proto3" json:"PictureURL,omitempty"` //minio 图片地址 // contains filtered or unexported fields }
func (*CaptureResponse) Descriptor
deprecated
func (*CaptureResponse) Descriptor() ([]byte, []int)
Deprecated: Use CaptureResponse.ProtoReflect.Descriptor instead.
func (*CaptureResponse) GetPictureURL ¶
func (x *CaptureResponse) GetPictureURL() string
func (*CaptureResponse) ProtoMessage ¶
func (*CaptureResponse) ProtoMessage()
func (*CaptureResponse) ProtoReflect ¶
func (x *CaptureResponse) ProtoReflect() protoreflect.Message
func (*CaptureResponse) Reset ¶
func (x *CaptureResponse) Reset()
func (*CaptureResponse) String ¶
func (x *CaptureResponse) String() string
type EmptyResponse ¶
type EmptyResponse struct {
// contains filtered or unexported fields
}
func (*EmptyResponse) Descriptor
deprecated
func (*EmptyResponse) Descriptor() ([]byte, []int)
Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead.
func (*EmptyResponse) ProtoMessage ¶
func (*EmptyResponse) ProtoMessage()
func (*EmptyResponse) ProtoReflect ¶
func (x *EmptyResponse) ProtoReflect() protoreflect.Message
func (*EmptyResponse) Reset ¶
func (x *EmptyResponse) Reset()
func (*EmptyResponse) String ¶
func (x *EmptyResponse) String() string
type PicCaptureServiceClient ¶
type PicCaptureServiceClient interface { // * // 设备抓图 PicCapture(ctx context.Context, in *CaptureRequest, opts ...grpc.CallOption) (*CaptureResponse, error) }
PicCaptureServiceClient is the client API for PicCaptureService 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 NewPicCaptureServiceClient ¶
func NewPicCaptureServiceClient(cc grpc.ClientConnInterface) PicCaptureServiceClient
type PicCaptureServiceServer ¶
type PicCaptureServiceServer interface { // * // 设备抓图 PicCapture(context.Context, *CaptureRequest) (*CaptureResponse, error) // contains filtered or unexported methods }
PicCaptureServiceServer is the server API for PicCaptureService service. All implementations must embed UnimplementedPicCaptureServiceServer for forward compatibility
type UnimplementedPicCaptureServiceServer ¶
type UnimplementedPicCaptureServiceServer struct { }
UnimplementedPicCaptureServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPicCaptureServiceServer) PicCapture ¶
func (UnimplementedPicCaptureServiceServer) PicCapture(context.Context, *CaptureRequest) (*CaptureResponse, error)
type UnsafePicCaptureServiceServer ¶
type UnsafePicCaptureServiceServer interface {
// contains filtered or unexported methods
}
UnsafePicCaptureServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PicCaptureServiceServer will result in compilation errors.