Documentation ¶
Index ¶
- Variables
- type ClientRequest
- func (*ClientRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClientRequest) GetRequest() []byte
- func (x *ClientRequest) GetType() ClientRequest_RequestType
- func (*ClientRequest) ProtoMessage()
- func (x *ClientRequest) ProtoReflect() protoreflect.Message
- func (x *ClientRequest) Reset()
- func (x *ClientRequest) String() string
- type ClientRequest_RequestType
- func (ClientRequest_RequestType) Descriptor() protoreflect.EnumDescriptor
- func (x ClientRequest_RequestType) Enum() *ClientRequest_RequestType
- func (ClientRequest_RequestType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ClientRequest_RequestType) Number() protoreflect.EnumNumber
- func (x ClientRequest_RequestType) String() string
- func (ClientRequest_RequestType) Type() protoreflect.EnumType
- type ImageUpload
- func (*ImageUpload) Descriptor() ([]byte, []int)deprecated
- func (x *ImageUpload) GetImages() [][]byte
- func (x *ImageUpload) GetTimestamp() *timestamppb.Timestamp
- func (*ImageUpload) ProtoMessage()
- func (x *ImageUpload) ProtoReflect() protoreflect.Message
- func (x *ImageUpload) Reset()
- func (x *ImageUpload) String() string
- type Register
- type ServerResponse
- type ServerResponse_MessageType
- func (ServerResponse_MessageType) Descriptor() protoreflect.EnumDescriptor
- func (x ServerResponse_MessageType) Enum() *ServerResponse_MessageType
- func (ServerResponse_MessageType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ServerResponse_MessageType) Number() protoreflect.EnumNumber
- func (x ServerResponse_MessageType) String() string
- func (ServerResponse_MessageType) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ServerResponse_MessageType_name = map[int32]string{ 0: "AUTHENTICATED", 1: "QUIT", } ServerResponse_MessageType_value = map[string]int32{ "AUTHENTICATED": 0, "QUIT": 1, } )
Enum value maps for ServerResponse_MessageType.
View Source
var ( ClientRequest_RequestType_name = map[int32]string{ 0: "REGISTER", 1: "UPLOAD", } ClientRequest_RequestType_value = map[string]int32{ "REGISTER": 0, "UPLOAD": 1, } )
Enum value maps for ClientRequest_RequestType.
View Source
var File_upload_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ClientRequest ¶
type ClientRequest struct { Type ClientRequest_RequestType `protobuf:"varint,1,opt,name=type,proto3,enum=upload.ClientRequest_RequestType" json:"type,omitempty"` Request []byte `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` // contains filtered or unexported fields }
Client message container
func (*ClientRequest) Descriptor
deprecated
func (*ClientRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClientRequest.ProtoReflect.Descriptor instead.
func (*ClientRequest) GetRequest ¶
func (x *ClientRequest) GetRequest() []byte
func (*ClientRequest) GetType ¶
func (x *ClientRequest) GetType() ClientRequest_RequestType
func (*ClientRequest) ProtoMessage ¶
func (*ClientRequest) ProtoMessage()
func (*ClientRequest) ProtoReflect ¶
func (x *ClientRequest) ProtoReflect() protoreflect.Message
func (*ClientRequest) Reset ¶
func (x *ClientRequest) Reset()
func (*ClientRequest) String ¶
func (x *ClientRequest) String() string
type ClientRequest_RequestType ¶
type ClientRequest_RequestType int32
const ( ClientRequest_REGISTER ClientRequest_RequestType = 0 ClientRequest_UPLOAD ClientRequest_RequestType = 1 )
func (ClientRequest_RequestType) Descriptor ¶
func (ClientRequest_RequestType) Descriptor() protoreflect.EnumDescriptor
func (ClientRequest_RequestType) Enum ¶
func (x ClientRequest_RequestType) Enum() *ClientRequest_RequestType
func (ClientRequest_RequestType) EnumDescriptor
deprecated
func (ClientRequest_RequestType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ClientRequest_RequestType.Descriptor instead.
func (ClientRequest_RequestType) Number ¶
func (x ClientRequest_RequestType) Number() protoreflect.EnumNumber
func (ClientRequest_RequestType) String ¶
func (x ClientRequest_RequestType) String() string
func (ClientRequest_RequestType) Type ¶
func (ClientRequest_RequestType) Type() protoreflect.EnumType
type ImageUpload ¶
type ImageUpload struct { Images [][]byte `protobuf:"bytes,1,rep,name=images,proto3" json:"images,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
Client image upload
func (*ImageUpload) Descriptor
deprecated
func (*ImageUpload) Descriptor() ([]byte, []int)
Deprecated: Use ImageUpload.ProtoReflect.Descriptor instead.
func (*ImageUpload) GetImages ¶
func (x *ImageUpload) GetImages() [][]byte
func (*ImageUpload) GetTimestamp ¶
func (x *ImageUpload) GetTimestamp() *timestamppb.Timestamp
func (*ImageUpload) ProtoMessage ¶
func (*ImageUpload) ProtoMessage()
func (*ImageUpload) ProtoReflect ¶
func (x *ImageUpload) ProtoReflect() protoreflect.Message
func (*ImageUpload) Reset ¶
func (x *ImageUpload) Reset()
func (*ImageUpload) String ¶
func (x *ImageUpload) String() string
type Register ¶
type Register struct { Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
Client registration command
func (*Register) Descriptor
deprecated
func (*Register) ProtoMessage ¶
func (*Register) ProtoMessage()
func (*Register) ProtoReflect ¶
func (x *Register) ProtoReflect() protoreflect.Message
type ServerResponse ¶
type ServerResponse struct { Type ServerResponse_MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=upload.ServerResponse_MessageType" json:"type,omitempty"` // contains filtered or unexported fields }
Server response command container
func (*ServerResponse) Descriptor
deprecated
func (*ServerResponse) Descriptor() ([]byte, []int)
Deprecated: Use ServerResponse.ProtoReflect.Descriptor instead.
func (*ServerResponse) GetType ¶
func (x *ServerResponse) GetType() ServerResponse_MessageType
func (*ServerResponse) ProtoMessage ¶
func (*ServerResponse) ProtoMessage()
func (*ServerResponse) ProtoReflect ¶
func (x *ServerResponse) ProtoReflect() protoreflect.Message
func (*ServerResponse) Reset ¶
func (x *ServerResponse) Reset()
func (*ServerResponse) String ¶
func (x *ServerResponse) String() string
type ServerResponse_MessageType ¶
type ServerResponse_MessageType int32
const ( ServerResponse_AUTHENTICATED ServerResponse_MessageType = 0 ServerResponse_QUIT ServerResponse_MessageType = 1 )
func (ServerResponse_MessageType) Descriptor ¶
func (ServerResponse_MessageType) Descriptor() protoreflect.EnumDescriptor
func (ServerResponse_MessageType) Enum ¶
func (x ServerResponse_MessageType) Enum() *ServerResponse_MessageType
func (ServerResponse_MessageType) EnumDescriptor
deprecated
func (ServerResponse_MessageType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ServerResponse_MessageType.Descriptor instead.
func (ServerResponse_MessageType) Number ¶
func (x ServerResponse_MessageType) Number() protoreflect.EnumNumber
func (ServerResponse_MessageType) String ¶
func (x ServerResponse_MessageType) String() string
func (ServerResponse_MessageType) Type ¶
func (ServerResponse_MessageType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.