uploadpb

package
v0.0.0-...-a2f796e Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 (*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) Enum

func (ClientRequest_RequestType) EnumDescriptor deprecated

func (ClientRequest_RequestType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ClientRequest_RequestType.Descriptor instead.

func (ClientRequest_RequestType) Number

func (ClientRequest_RequestType) String

func (x ClientRequest_RequestType) String() string

func (ClientRequest_RequestType) Type

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

Deprecated: Use Register.ProtoReflect.Descriptor instead.

func (*Register) GetHost

func (x *Register) GetHost() string

func (*Register) GetUser

func (x *Register) GetUser() string

func (*Register) ProtoMessage

func (*Register) ProtoMessage()

func (*Register) ProtoReflect

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

func (*Register) Reset

func (x *Register) Reset()

func (*Register) String

func (x *Register) String() string

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 (*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) Enum

func (ServerResponse_MessageType) EnumDescriptor deprecated

func (ServerResponse_MessageType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ServerResponse_MessageType.Descriptor instead.

func (ServerResponse_MessageType) Number

func (ServerResponse_MessageType) String

func (ServerResponse_MessageType) Type

Jump to

Keyboard shortcuts

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