Documentation
¶
Index ¶
- Variables
- type FileDto
- func (*FileDto) Descriptor() ([]byte, []int)deprecated
- func (x *FileDto) GetCreateAt() string
- func (x *FileDto) GetId() string
- func (x *FileDto) GetKey() string
- func (x *FileDto) GetName() string
- func (x *FileDto) GetPath() string
- func (x *FileDto) GetShard() string
- func (x *FileDto) GetShardIndex() int32
- func (x *FileDto) GetShardSize() int32
- func (x *FileDto) GetShardTotal() int32
- func (x *FileDto) GetSize() int64
- func (x *FileDto) GetSuffix() string
- func (x *FileDto) GetUpdateAt() string
- func (*FileDto) ProtoMessage()
- func (x *FileDto) ProtoReflect() protoreflect.Message
- func (x *FileDto) Reset()
- func (x *FileDto) String() string
- type FileShardDto
- func (*FileShardDto) Descriptor() ([]byte, []int)deprecated
- func (x *FileShardDto) GetBlob() []byte
- func (x *FileShardDto) GetId() int32
- func (x *FileShardDto) GetIndex() int32
- func (x *FileShardDto) GetKey() string
- func (x *FileShardDto) GetSize() int32
- func (x *FileShardDto) GetTotal() int32
- func (*FileShardDto) ProtoMessage()
- func (x *FileShardDto) ProtoReflect() protoreflect.Message
- func (x *FileShardDto) Reset()
- func (x *FileShardDto) String() string
- type VerifyRes
- func (*VerifyRes) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyRes) GetFile() *FileDto
- func (x *VerifyRes) GetShouldUpload() bool
- func (x *VerifyRes) GetUploadedList() []int32
- func (*VerifyRes) ProtoMessage()
- func (x *VerifyRes) ProtoReflect() protoreflect.Message
- func (x *VerifyRes) Reset()
- func (x *VerifyRes) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_gitee_com_jingshanccc_course_file_proto_dto_file_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type FileDto ¶
type FileDto struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Suffix string `protobuf:"bytes,4,opt,name=suffix,proto3" json:"suffix,omitempty"`
Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
Key string `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"` //文件标识
Shard string `protobuf:"bytes,7,opt,name=shard,proto3" json:"shard,omitempty"` //分片|base64格式
ShardIndex int32 `protobuf:"varint,8,opt,name=shardIndex,proto3" json:"shardIndex,omitempty"` // 已上传分片数
ShardTotal int32 `protobuf:"varint,9,opt,name=shardTotal,proto3" json:"shardTotal,omitempty"` // 分片总数
ShardSize int32 `protobuf:"varint,10,opt,name=shardSize,proto3" json:"shardSize,omitempty"` //分片大小
CreateAt string `protobuf:"bytes,11,opt,name=createAt,proto3" json:"createAt,omitempty"`
UpdateAt string `protobuf:"bytes,12,opt,name=updateAt,proto3" json:"updateAt,omitempty"`
// contains filtered or unexported fields
}
func (*FileDto) Descriptor
deprecated
func (*FileDto) GetCreateAt ¶
func (*FileDto) GetShardIndex ¶
func (*FileDto) GetShardSize ¶
func (*FileDto) GetShardTotal ¶
func (*FileDto) GetUpdateAt ¶
func (*FileDto) ProtoMessage ¶
func (*FileDto) ProtoMessage()
func (*FileDto) ProtoReflect ¶
func (x *FileDto) ProtoReflect() protoreflect.Message
type FileShardDto ¶
type FileShardDto struct {
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
Index int32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
Size int32 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
Total int32 `protobuf:"varint,5,opt,name=total,proto3" json:"total,omitempty"`
Blob []byte `protobuf:"bytes,6,opt,name=blob,proto3" json:"blob,omitempty"`
// contains filtered or unexported fields
}
func (*FileShardDto) Descriptor
deprecated
func (*FileShardDto) Descriptor() ([]byte, []int)
Deprecated: Use FileShardDto.ProtoReflect.Descriptor instead.
func (*FileShardDto) GetBlob ¶
func (x *FileShardDto) GetBlob() []byte
func (*FileShardDto) GetId ¶
func (x *FileShardDto) GetId() int32
func (*FileShardDto) GetIndex ¶
func (x *FileShardDto) GetIndex() int32
func (*FileShardDto) GetKey ¶
func (x *FileShardDto) GetKey() string
func (*FileShardDto) GetSize ¶
func (x *FileShardDto) GetSize() int32
func (*FileShardDto) GetTotal ¶
func (x *FileShardDto) GetTotal() int32
func (*FileShardDto) ProtoMessage ¶
func (*FileShardDto) ProtoMessage()
func (*FileShardDto) ProtoReflect ¶
func (x *FileShardDto) ProtoReflect() protoreflect.Message
func (*FileShardDto) Reset ¶
func (x *FileShardDto) Reset()
func (*FileShardDto) String ¶
func (x *FileShardDto) String() string
type VerifyRes ¶
type VerifyRes struct {
ShouldUpload bool `protobuf:"varint,1,opt,name=shouldUpload,proto3" json:"shouldUpload,omitempty"` //是否完成上传
UploadedList []int32 `protobuf:"varint,2,rep,packed,name=uploadedList,proto3" json:"uploadedList,omitempty"` //已完成上传的分片索引
File *FileDto `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"` //若已完成上传 则将已上传的文件记录返回
// contains filtered or unexported fields
}
func (*VerifyRes) Descriptor
deprecated
func (*VerifyRes) GetShouldUpload ¶
func (*VerifyRes) GetUploadedList ¶
func (*VerifyRes) ProtoMessage ¶
func (*VerifyRes) ProtoMessage()
func (*VerifyRes) ProtoReflect ¶
func (x *VerifyRes) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.