Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterFileServiceHTTPServer(s *http.Server, srv FileServiceHTTPServer)
- func RegisterFileServiceServer(s grpc.ServiceRegistrar, srv FileServiceServer)
- type CompleteUploadRequest
- func (*CompleteUploadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CompleteUploadRequest) GetUploadId() string
- func (*CompleteUploadRequest) ProtoMessage()
- func (x *CompleteUploadRequest) ProtoReflect() protoreflect.Message
- func (x *CompleteUploadRequest) Reset()
- func (x *CompleteUploadRequest) String() string
- func (m *CompleteUploadRequest) Validate() error
- func (m *CompleteUploadRequest) ValidateAll() error
- type CompleteUploadRequestMultiError
- type CompleteUploadRequestValidationError
- func (e CompleteUploadRequestValidationError) Cause() error
- func (e CompleteUploadRequestValidationError) Error() string
- func (e CompleteUploadRequestValidationError) ErrorName() string
- func (e CompleteUploadRequestValidationError) Field() string
- func (e CompleteUploadRequestValidationError) Key() bool
- func (e CompleteUploadRequestValidationError) Reason() string
- type CompleteUploadResponse
- func (*CompleteUploadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CompleteUploadResponse) GetKey() string
- func (x *CompleteUploadResponse) GetUrl() string
- func (*CompleteUploadResponse) ProtoMessage()
- func (x *CompleteUploadResponse) ProtoReflect() protoreflect.Message
- func (x *CompleteUploadResponse) Reset()
- func (x *CompleteUploadResponse) String() string
- func (m *CompleteUploadResponse) Validate() error
- func (m *CompleteUploadResponse) ValidateAll() error
- type CompleteUploadResponseMultiError
- type CompleteUploadResponseValidationError
- func (e CompleteUploadResponseValidationError) Cause() error
- func (e CompleteUploadResponseValidationError) Error() string
- func (e CompleteUploadResponseValidationError) ErrorName() string
- func (e CompleteUploadResponseValidationError) Field() string
- func (e CompleteUploadResponseValidationError) Key() bool
- func (e CompleteUploadResponseValidationError) Reason() string
- type DeleteUserFileRequest
- func (*DeleteUserFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserFileRequest) GetId() uint32
- func (*DeleteUserFileRequest) ProtoMessage()
- func (x *DeleteUserFileRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteUserFileRequest) Reset()
- func (x *DeleteUserFileRequest) String() string
- func (m *DeleteUserFileRequest) Validate() error
- func (m *DeleteUserFileRequest) ValidateAll() error
- type DeleteUserFileRequestMultiError
- type DeleteUserFileRequestValidationError
- func (e DeleteUserFileRequestValidationError) Cause() error
- func (e DeleteUserFileRequestValidationError) Error() string
- func (e DeleteUserFileRequestValidationError) ErrorName() string
- func (e DeleteUserFileRequestValidationError) Field() string
- func (e DeleteUserFileRequestValidationError) Key() bool
- func (e DeleteUserFileRequestValidationError) Reason() string
- type DeleteUserFileResponse
- func (*DeleteUserFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserFileResponse) GetId() uint32
- func (*DeleteUserFileResponse) ProtoMessage()
- func (x *DeleteUserFileResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteUserFileResponse) Reset()
- func (x *DeleteUserFileResponse) String() string
- func (m *DeleteUserFileResponse) Validate() error
- func (m *DeleteUserFileResponse) ValidateAll() error
- type DeleteUserFileResponseMultiError
- type DeleteUserFileResponseValidationError
- func (e DeleteUserFileResponseValidationError) Cause() error
- func (e DeleteUserFileResponseValidationError) Error() string
- func (e DeleteUserFileResponseValidationError) ErrorName() string
- func (e DeleteUserFileResponseValidationError) Field() string
- func (e DeleteUserFileResponseValidationError) Key() bool
- func (e DeleteUserFileResponseValidationError) Reason() string
- type FileItem
- func (*FileItem) Descriptor() ([]byte, []int)deprecated
- func (x *FileItem) GetApp() string
- func (x *FileItem) GetCreatedAt() uint32
- func (x *FileItem) GetDirectoryId() uint32
- func (x *FileItem) GetExt() string
- func (x *FileItem) GetId() uint32
- func (x *FileItem) GetKey() string
- func (x *FileItem) GetName() string
- func (x *FileItem) GetObjectId() uint32
- func (x *FileItem) GetSize() string
- func (x *FileItem) GetUrl() string
- func (x *FileItem) GetUserId() uint32
- func (*FileItem) ProtoMessage()
- func (x *FileItem) ProtoReflect() protoreflect.Message
- func (x *FileItem) Reset()
- func (x *FileItem) String() string
- func (m *FileItem) Validate() error
- func (m *FileItem) ValidateAll() error
- type FileItemMultiError
- type FileItemValidationError
- type FileServiceClient
- type FileServiceHTTPClient
- type FileServiceHTTPClientImpl
- func (c *FileServiceHTTPClientImpl) CompleteUpload(ctx context.Context, in *CompleteUploadRequest, opts ...http.CallOption) (*CompleteUploadResponse, error)
- func (c *FileServiceHTTPClientImpl) DeleteUserFile(ctx context.Context, in *DeleteUserFileRequest, opts ...http.CallOption) (*DeleteUserFileResponse, error)
- func (c *FileServiceHTTPClientImpl) GetFileURLByKey(ctx context.Context, in *GetFileURLByKeyRequest, opts ...http.CallOption) (*GetFileURLByKeyReply, error)
- func (c *FileServiceHTTPClientImpl) GetUploadChunkSize(ctx context.Context, in *GetUploadChunkSizeRequest, opts ...http.CallOption) (*GetUploadChunkSizeResponse, error)
- func (c *FileServiceHTTPClientImpl) GetUploadPartURLs(ctx context.Context, in *GetUploadPartURLsRequest, opts ...http.CallOption) (*GetUploadPartURLsResponse, error)
- func (c *FileServiceHTTPClientImpl) GetUserFile(ctx context.Context, in *GetUserFileRequest, opts ...http.CallOption) (*GetUserFileResponse, error)
- func (c *FileServiceHTTPClientImpl) ListFile(ctx context.Context, in *ListFileRequest, opts ...http.CallOption) (*ListFileResponse, error)
- func (c *FileServiceHTTPClientImpl) ListUserFile(ctx context.Context, in *ListUserFileRequest, opts ...http.CallOption) (*ListUserFileResponse, error)
- func (c *FileServiceHTTPClientImpl) PrepareUploadFile(ctx context.Context, in *PrepareUploadFileRequest, opts ...http.CallOption) (*PrepareUploadFileResponse, error)
- func (c *FileServiceHTTPClientImpl) UpdateUserFile(ctx context.Context, in *UpdateUserFileRequest, opts ...http.CallOption) (*UpdateUserFileResponse, error)
- func (c *FileServiceHTTPClientImpl) UploadFileByURL(ctx context.Context, in *UploadFileByURLRequest, opts ...http.CallOption) (*UploadFileByURLResponse, error)
- type FileServiceHTTPServer
- type FileServiceServer
- type GetFileURLByKeyReply
- func (*GetFileURLByKeyReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetFileURLByKeyReply) GetUrl() string
- func (*GetFileURLByKeyReply) ProtoMessage()
- func (x *GetFileURLByKeyReply) ProtoReflect() protoreflect.Message
- func (x *GetFileURLByKeyReply) Reset()
- func (x *GetFileURLByKeyReply) String() string
- func (m *GetFileURLByKeyReply) Validate() error
- func (m *GetFileURLByKeyReply) ValidateAll() error
- type GetFileURLByKeyReplyMultiError
- type GetFileURLByKeyReplyValidationError
- func (e GetFileURLByKeyReplyValidationError) Cause() error
- func (e GetFileURLByKeyReplyValidationError) Error() string
- func (e GetFileURLByKeyReplyValidationError) ErrorName() string
- func (e GetFileURLByKeyReplyValidationError) Field() string
- func (e GetFileURLByKeyReplyValidationError) Key() bool
- func (e GetFileURLByKeyReplyValidationError) Reason() string
- type GetFileURLByKeyRequest
- func (*GetFileURLByKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFileURLByKeyRequest) GetKey() string
- func (*GetFileURLByKeyRequest) ProtoMessage()
- func (x *GetFileURLByKeyRequest) ProtoReflect() protoreflect.Message
- func (x *GetFileURLByKeyRequest) Reset()
- func (x *GetFileURLByKeyRequest) String() string
- func (m *GetFileURLByKeyRequest) Validate() error
- func (m *GetFileURLByKeyRequest) ValidateAll() error
- type GetFileURLByKeyRequestMultiError
- type GetFileURLByKeyRequestValidationError
- func (e GetFileURLByKeyRequestValidationError) Cause() error
- func (e GetFileURLByKeyRequestValidationError) Error() string
- func (e GetFileURLByKeyRequestValidationError) ErrorName() string
- func (e GetFileURLByKeyRequestValidationError) Field() string
- func (e GetFileURLByKeyRequestValidationError) Key() bool
- func (e GetFileURLByKeyRequestValidationError) Reason() string
- type GetUploadChunkSizeRequest
- func (*GetUploadChunkSizeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUploadChunkSizeRequest) GetTotalSize() string
- func (*GetUploadChunkSizeRequest) ProtoMessage()
- func (x *GetUploadChunkSizeRequest) ProtoReflect() protoreflect.Message
- func (x *GetUploadChunkSizeRequest) Reset()
- func (x *GetUploadChunkSizeRequest) String() string
- func (m *GetUploadChunkSizeRequest) Validate() error
- func (m *GetUploadChunkSizeRequest) ValidateAll() error
- type GetUploadChunkSizeRequestMultiError
- type GetUploadChunkSizeRequestValidationError
- func (e GetUploadChunkSizeRequestValidationError) Cause() error
- func (e GetUploadChunkSizeRequestValidationError) Error() string
- func (e GetUploadChunkSizeRequestValidationError) ErrorName() string
- func (e GetUploadChunkSizeRequestValidationError) Field() string
- func (e GetUploadChunkSizeRequestValidationError) Key() bool
- func (e GetUploadChunkSizeRequestValidationError) Reason() string
- type GetUploadChunkSizeResponse
- func (*GetUploadChunkSizeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUploadChunkSizeResponse) GetChunkCount() uint32
- func (x *GetUploadChunkSizeResponse) GetChunkSize() uint32
- func (*GetUploadChunkSizeResponse) ProtoMessage()
- func (x *GetUploadChunkSizeResponse) ProtoReflect() protoreflect.Message
- func (x *GetUploadChunkSizeResponse) Reset()
- func (x *GetUploadChunkSizeResponse) String() string
- func (m *GetUploadChunkSizeResponse) Validate() error
- func (m *GetUploadChunkSizeResponse) ValidateAll() error
- type GetUploadChunkSizeResponseMultiError
- type GetUploadChunkSizeResponseValidationError
- func (e GetUploadChunkSizeResponseValidationError) Cause() error
- func (e GetUploadChunkSizeResponseValidationError) Error() string
- func (e GetUploadChunkSizeResponseValidationError) ErrorName() string
- func (e GetUploadChunkSizeResponseValidationError) Field() string
- func (e GetUploadChunkSizeResponseValidationError) Key() bool
- func (e GetUploadChunkSizeResponseValidationError) Reason() string
- type GetUploadPartURLsRequest
- func (*GetUploadPartURLsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUploadPartURLsRequest) GetPartNumbers() []uint32
- func (x *GetUploadPartURLsRequest) GetUploadId() string
- func (*GetUploadPartURLsRequest) ProtoMessage()
- func (x *GetUploadPartURLsRequest) ProtoReflect() protoreflect.Message
- func (x *GetUploadPartURLsRequest) Reset()
- func (x *GetUploadPartURLsRequest) String() string
- func (m *GetUploadPartURLsRequest) Validate() error
- func (m *GetUploadPartURLsRequest) ValidateAll() error
- type GetUploadPartURLsRequestMultiError
- type GetUploadPartURLsRequestValidationError
- func (e GetUploadPartURLsRequestValidationError) Cause() error
- func (e GetUploadPartURLsRequestValidationError) Error() string
- func (e GetUploadPartURLsRequestValidationError) ErrorName() string
- func (e GetUploadPartURLsRequestValidationError) Field() string
- func (e GetUploadPartURLsRequestValidationError) Key() bool
- func (e GetUploadPartURLsRequestValidationError) Reason() string
- type GetUploadPartURLsResponse
- func (*GetUploadPartURLsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUploadPartURLsResponse) GetUrls() []*PartURL
- func (*GetUploadPartURLsResponse) ProtoMessage()
- func (x *GetUploadPartURLsResponse) ProtoReflect() protoreflect.Message
- func (x *GetUploadPartURLsResponse) Reset()
- func (x *GetUploadPartURLsResponse) String() string
- func (m *GetUploadPartURLsResponse) Validate() error
- func (m *GetUploadPartURLsResponse) ValidateAll() error
- type GetUploadPartURLsResponseMultiError
- type GetUploadPartURLsResponseValidationError
- func (e GetUploadPartURLsResponseValidationError) Cause() error
- func (e GetUploadPartURLsResponseValidationError) Error() string
- func (e GetUploadPartURLsResponseValidationError) ErrorName() string
- func (e GetUploadPartURLsResponseValidationError) Field() string
- func (e GetUploadPartURLsResponseValidationError) Key() bool
- func (e GetUploadPartURLsResponseValidationError) Reason() string
- type GetUserFileRequest
- func (*GetUserFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserFileRequest) GetId() uint32
- func (*GetUserFileRequest) ProtoMessage()
- func (x *GetUserFileRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserFileRequest) Reset()
- func (x *GetUserFileRequest) String() string
- func (m *GetUserFileRequest) Validate() error
- func (m *GetUserFileRequest) ValidateAll() error
- type GetUserFileRequestMultiError
- type GetUserFileRequestValidationError
- func (e GetUserFileRequestValidationError) Cause() error
- func (e GetUserFileRequestValidationError) Error() string
- func (e GetUserFileRequestValidationError) ErrorName() string
- func (e GetUserFileRequestValidationError) Field() string
- func (e GetUserFileRequestValidationError) Key() bool
- func (e GetUserFileRequestValidationError) Reason() string
- type GetUserFileResponse
- func (*GetUserFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserFileResponse) GetFile() *FileItem
- func (*GetUserFileResponse) ProtoMessage()
- func (x *GetUserFileResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserFileResponse) Reset()
- func (x *GetUserFileResponse) String() string
- func (m *GetUserFileResponse) Validate() error
- func (m *GetUserFileResponse) ValidateAll() error
- type GetUserFileResponseMultiError
- type GetUserFileResponseValidationError
- func (e GetUserFileResponseValidationError) Cause() error
- func (e GetUserFileResponseValidationError) Error() string
- func (e GetUserFileResponseValidationError) ErrorName() string
- func (e GetUserFileResponseValidationError) Field() string
- func (e GetUserFileResponseValidationError) Key() bool
- func (e GetUserFileResponseValidationError) Reason() string
- type ListFileRequest
- func (*ListFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListFileRequest) GetDirectoryId() uint32
- func (x *ListFileRequest) GetPage() uint32
- func (x *ListFileRequest) GetPageSize() uint32
- func (*ListFileRequest) ProtoMessage()
- func (x *ListFileRequest) ProtoReflect() protoreflect.Message
- func (x *ListFileRequest) Reset()
- func (x *ListFileRequest) String() string
- func (m *ListFileRequest) Validate() error
- func (m *ListFileRequest) ValidateAll() error
- type ListFileRequestMultiError
- type ListFileRequestValidationError
- func (e ListFileRequestValidationError) Cause() error
- func (e ListFileRequestValidationError) Error() string
- func (e ListFileRequestValidationError) ErrorName() string
- func (e ListFileRequestValidationError) Field() string
- func (e ListFileRequestValidationError) Key() bool
- func (e ListFileRequestValidationError) Reason() string
- type ListFileResponse
- func (*ListFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListFileResponse) GetList() []*FileItem
- func (x *ListFileResponse) GetTotal() uint32
- func (*ListFileResponse) ProtoMessage()
- func (x *ListFileResponse) ProtoReflect() protoreflect.Message
- func (x *ListFileResponse) Reset()
- func (x *ListFileResponse) String() string
- func (m *ListFileResponse) Validate() error
- func (m *ListFileResponse) ValidateAll() error
- type ListFileResponseMultiError
- type ListFileResponseValidationError
- func (e ListFileResponseValidationError) Cause() error
- func (e ListFileResponseValidationError) Error() string
- func (e ListFileResponseValidationError) ErrorName() string
- func (e ListFileResponseValidationError) Field() string
- func (e ListFileResponseValidationError) Key() bool
- func (e ListFileResponseValidationError) Reason() string
- type ListUserFileRequest
- func (*ListUserFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserFileRequest) GetPage() uint32
- func (x *ListUserFileRequest) GetPageSize() uint32
- func (x *ListUserFileRequest) GetUserId() uint32
- func (*ListUserFileRequest) ProtoMessage()
- func (x *ListUserFileRequest) ProtoReflect() protoreflect.Message
- func (x *ListUserFileRequest) Reset()
- func (x *ListUserFileRequest) String() string
- func (m *ListUserFileRequest) Validate() error
- func (m *ListUserFileRequest) ValidateAll() error
- type ListUserFileRequestMultiError
- type ListUserFileRequestValidationError
- func (e ListUserFileRequestValidationError) Cause() error
- func (e ListUserFileRequestValidationError) Error() string
- func (e ListUserFileRequestValidationError) ErrorName() string
- func (e ListUserFileRequestValidationError) Field() string
- func (e ListUserFileRequestValidationError) Key() bool
- func (e ListUserFileRequestValidationError) Reason() string
- type ListUserFileResponse
- func (*ListUserFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserFileResponse) GetList() []*FileItem
- func (x *ListUserFileResponse) GetTotal() uint32
- func (*ListUserFileResponse) ProtoMessage()
- func (x *ListUserFileResponse) ProtoReflect() protoreflect.Message
- func (x *ListUserFileResponse) Reset()
- func (x *ListUserFileResponse) String() string
- func (m *ListUserFileResponse) Validate() error
- func (m *ListUserFileResponse) ValidateAll() error
- type ListUserFileResponseMultiError
- type ListUserFileResponseValidationError
- func (e ListUserFileResponseValidationError) Cause() error
- func (e ListUserFileResponseValidationError) Error() string
- func (e ListUserFileResponseValidationError) ErrorName() string
- func (e ListUserFileResponseValidationError) Field() string
- func (e ListUserFileResponseValidationError) Key() bool
- func (e ListUserFileResponseValidationError) Reason() string
- type PartURL
- func (*PartURL) Descriptor() ([]byte, []int)deprecated
- func (x *PartURL) GetPartNumber() uint32
- func (x *PartURL) GetUrl() string
- func (*PartURL) ProtoMessage()
- func (x *PartURL) ProtoReflect() protoreflect.Message
- func (x *PartURL) Reset()
- func (x *PartURL) String() string
- func (m *PartURL) Validate() error
- func (m *PartURL) ValidateAll() error
- type PartURLMultiError
- type PartURLValidationError
- type PrepareUploadFileRequest
- func (*PrepareUploadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PrepareUploadFileRequest) GetExt() string
- func (x *PrepareUploadFileRequest) GetMd5() string
- func (x *PrepareUploadFileRequest) GetName() string
- func (x *PrepareUploadFileRequest) GetPath() string
- func (x *PrepareUploadFileRequest) GetSize() string
- func (*PrepareUploadFileRequest) ProtoMessage()
- func (x *PrepareUploadFileRequest) ProtoReflect() protoreflect.Message
- func (x *PrepareUploadFileRequest) Reset()
- func (x *PrepareUploadFileRequest) String() string
- func (m *PrepareUploadFileRequest) Validate() error
- func (m *PrepareUploadFileRequest) ValidateAll() error
- type PrepareUploadFileRequestMultiError
- type PrepareUploadFileRequestValidationError
- func (e PrepareUploadFileRequestValidationError) Cause() error
- func (e PrepareUploadFileRequestValidationError) Error() string
- func (e PrepareUploadFileRequestValidationError) ErrorName() string
- func (e PrepareUploadFileRequestValidationError) Field() string
- func (e PrepareUploadFileRequestValidationError) Key() bool
- func (e PrepareUploadFileRequestValidationError) Reason() string
- type PrepareUploadFileResponse
- func (*PrepareUploadFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PrepareUploadFileResponse) GetChunkCount() uint32
- func (x *PrepareUploadFileResponse) GetChunkSize() uint32
- func (x *PrepareUploadFileResponse) GetKey() string
- func (x *PrepareUploadFileResponse) GetMd5() string
- func (x *PrepareUploadFileResponse) GetSkipped() bool
- func (x *PrepareUploadFileResponse) GetUploadChunks() []uint32
- func (x *PrepareUploadFileResponse) GetUploadId() string
- func (x *PrepareUploadFileResponse) GetUrl() string
- func (*PrepareUploadFileResponse) ProtoMessage()
- func (x *PrepareUploadFileResponse) ProtoReflect() protoreflect.Message
- func (x *PrepareUploadFileResponse) Reset()
- func (x *PrepareUploadFileResponse) String() string
- func (m *PrepareUploadFileResponse) Validate() error
- func (m *PrepareUploadFileResponse) ValidateAll() error
- type PrepareUploadFileResponseMultiError
- type PrepareUploadFileResponseValidationError
- func (e PrepareUploadFileResponseValidationError) Cause() error
- func (e PrepareUploadFileResponseValidationError) Error() string
- func (e PrepareUploadFileResponseValidationError) ErrorName() string
- func (e PrepareUploadFileResponseValidationError) Field() string
- func (e PrepareUploadFileResponseValidationError) Key() bool
- func (e PrepareUploadFileResponseValidationError) Reason() string
- type UnimplementedFileServiceServer
- func (UnimplementedFileServiceServer) CompleteUpload(context.Context, *CompleteUploadRequest) (*CompleteUploadResponse, error)
- func (UnimplementedFileServiceServer) DeleteUserFile(context.Context, *DeleteUserFileRequest) (*DeleteUserFileResponse, error)
- func (UnimplementedFileServiceServer) GetFileURLByKey(context.Context, *GetFileURLByKeyRequest) (*GetFileURLByKeyReply, error)
- func (UnimplementedFileServiceServer) GetUploadChunkSize(context.Context, *GetUploadChunkSizeRequest) (*GetUploadChunkSizeResponse, error)
- func (UnimplementedFileServiceServer) GetUploadPartURLs(context.Context, *GetUploadPartURLsRequest) (*GetUploadPartURLsResponse, error)
- func (UnimplementedFileServiceServer) GetUserFile(context.Context, *GetUserFileRequest) (*GetUserFileResponse, error)
- func (UnimplementedFileServiceServer) ListFile(context.Context, *ListFileRequest) (*ListFileResponse, error)
- func (UnimplementedFileServiceServer) ListUserFile(context.Context, *ListUserFileRequest) (*ListUserFileResponse, error)
- func (UnimplementedFileServiceServer) PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileResponse, error)
- func (UnimplementedFileServiceServer) UpdateUserFile(context.Context, *UpdateUserFileRequest) (*UpdateUserFileResponse, error)
- func (UnimplementedFileServiceServer) UploadFileByURL(context.Context, *UploadFileByURLRequest) (*UploadFileByURLResponse, error)
- type UnsafeFileServiceServer
- type UpdateUserFileRequest
- func (*UpdateUserFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserFileRequest) GetDirectoryId() uint32
- func (x *UpdateUserFileRequest) GetId() uint32
- func (x *UpdateUserFileRequest) GetName() string
- func (*UpdateUserFileRequest) ProtoMessage()
- func (x *UpdateUserFileRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserFileRequest) Reset()
- func (x *UpdateUserFileRequest) String() string
- func (m *UpdateUserFileRequest) Validate() error
- func (m *UpdateUserFileRequest) ValidateAll() error
- type UpdateUserFileRequestMultiError
- type UpdateUserFileRequestValidationError
- func (e UpdateUserFileRequestValidationError) Cause() error
- func (e UpdateUserFileRequestValidationError) Error() string
- func (e UpdateUserFileRequestValidationError) ErrorName() string
- func (e UpdateUserFileRequestValidationError) Field() string
- func (e UpdateUserFileRequestValidationError) Key() bool
- func (e UpdateUserFileRequestValidationError) Reason() string
- type UpdateUserFileResponse
- func (*UpdateUserFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserFileResponse) GetFile() *FileItem
- func (*UpdateUserFileResponse) ProtoMessage()
- func (x *UpdateUserFileResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateUserFileResponse) Reset()
- func (x *UpdateUserFileResponse) String() string
- func (m *UpdateUserFileResponse) Validate() error
- func (m *UpdateUserFileResponse) ValidateAll() error
- type UpdateUserFileResponseMultiError
- type UpdateUserFileResponseValidationError
- func (e UpdateUserFileResponseValidationError) Cause() error
- func (e UpdateUserFileResponseValidationError) Error() string
- func (e UpdateUserFileResponseValidationError) ErrorName() string
- func (e UpdateUserFileResponseValidationError) Field() string
- func (e UpdateUserFileResponseValidationError) Key() bool
- func (e UpdateUserFileResponseValidationError) Reason() string
- type UploadFileByURLRequest
- func (*UploadFileByURLRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileByURLRequest) GetDirectoryPath() string
- func (x *UploadFileByURLRequest) GetName() string
- func (x *UploadFileByURLRequest) GetReferer() string
- func (x *UploadFileByURLRequest) GetStore() string
- func (x *UploadFileByURLRequest) GetUrl() string
- func (*UploadFileByURLRequest) ProtoMessage()
- func (x *UploadFileByURLRequest) ProtoReflect() protoreflect.Message
- func (x *UploadFileByURLRequest) Reset()
- func (x *UploadFileByURLRequest) String() string
- func (m *UploadFileByURLRequest) Validate() error
- func (m *UploadFileByURLRequest) ValidateAll() error
- type UploadFileByURLRequestMultiError
- type UploadFileByURLRequestValidationError
- func (e UploadFileByURLRequestValidationError) Cause() error
- func (e UploadFileByURLRequestValidationError) Error() string
- func (e UploadFileByURLRequestValidationError) ErrorName() string
- func (e UploadFileByURLRequestValidationError) Field() string
- func (e UploadFileByURLRequestValidationError) Key() bool
- func (e UploadFileByURLRequestValidationError) Reason() string
- type UploadFileByURLResponse
- func (*UploadFileByURLResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileByURLResponse) GetKey() string
- func (*UploadFileByURLResponse) ProtoMessage()
- func (x *UploadFileByURLResponse) ProtoReflect() protoreflect.Message
- func (x *UploadFileByURLResponse) Reset()
- func (x *UploadFileByURLResponse) String() string
- func (m *UploadFileByURLResponse) Validate() error
- func (m *UploadFileByURLResponse) ValidateAll() error
- type UploadFileByURLResponseMultiError
- type UploadFileByURLResponseValidationError
- func (e UploadFileByURLResponseValidationError) Cause() error
- func (e UploadFileByURLResponseValidationError) Error() string
- func (e UploadFileByURLResponseValidationError) ErrorName() string
- func (e UploadFileByURLResponseValidationError) Field() string
- func (e UploadFileByURLResponseValidationError) Key() bool
- func (e UploadFileByURLResponseValidationError) Reason() string
Constants ¶
const ( FileService_GetUserFile_FullMethodName = "/resource.api.file.FileService/GetUserFile" FileService_ListUserFile_FullMethodName = "/resource.api.file.FileService/ListUserFile" FileService_ListFile_FullMethodName = "/resource.api.file.FileService/ListFile" FileService_GetUploadChunkSize_FullMethodName = "/resource.api.file.FileService/GetUploadChunkSize" FileService_PrepareUploadFile_FullMethodName = "/resource.api.file.FileService/PrepareUploadFile" FileService_GetUploadPartURLs_FullMethodName = "/resource.api.file.FileService/GetUploadPartURLs" FileService_CompleteUpload_FullMethodName = "/resource.api.file.FileService/CompleteUpload" FileService_UpdateUserFile_FullMethodName = "/resource.api.file.FileService/UpdateUserFile" FileService_DeleteUserFile_FullMethodName = "/resource.api.file.FileService/DeleteUserFile" FileService_UploadFileByURL_FullMethodName = "/resource.api.file.FileService/UploadFileByURL" FileService_GetFileURLByKey_FullMethodName = "/resource.api.file.FileService/GetFileURLByKey" )
const OperationFileServiceCompleteUpload = "/resource.api.file.FileService/CompleteUpload"
const OperationFileServiceDeleteUserFile = "/resource.api.file.FileService/DeleteUserFile"
const OperationFileServiceGetFileURLByKey = "/resource.api.file.FileService/GetFileURLByKey"
const OperationFileServiceGetUploadChunkSize = "/resource.api.file.FileService/GetUploadChunkSize"
const OperationFileServiceGetUploadPartURLs = "/resource.api.file.FileService/GetUploadPartURLs"
const OperationFileServiceGetUserFile = "/resource.api.file.FileService/GetUserFile"
const OperationFileServiceListFile = "/resource.api.file.FileService/ListFile"
const OperationFileServiceListUserFile = "/resource.api.file.FileService/ListUserFile"
const OperationFileServicePrepareUploadFile = "/resource.api.file.FileService/PrepareUploadFile"
const OperationFileServiceUpdateUserFile = "/resource.api.file.FileService/UpdateUserFile"
const OperationFileServiceUploadFileByURL = "/resource.api.file.FileService/UploadFileByURL"
Variables ¶
var FileService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "resource.api.file.FileService", HandlerType: (*FileServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUserFile", Handler: _FileService_GetUserFile_Handler, }, { MethodName: "ListUserFile", Handler: _FileService_ListUserFile_Handler, }, { MethodName: "ListFile", Handler: _FileService_ListFile_Handler, }, { MethodName: "GetUploadChunkSize", Handler: _FileService_GetUploadChunkSize_Handler, }, { MethodName: "PrepareUploadFile", Handler: _FileService_PrepareUploadFile_Handler, }, { MethodName: "GetUploadPartURLs", Handler: _FileService_GetUploadPartURLs_Handler, }, { MethodName: "CompleteUpload", Handler: _FileService_CompleteUpload_Handler, }, { MethodName: "UpdateUserFile", Handler: _FileService_UpdateUserFile_Handler, }, { MethodName: "DeleteUserFile", Handler: _FileService_DeleteUserFile_Handler, }, { MethodName: "UploadFileByURL", Handler: _FileService_UploadFileByURL_Handler, }, { MethodName: "GetFileURLByKey", Handler: _FileService_GetFileURLByKey_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/file/proto/file_service.proto", }
FileService_ServiceDesc is the grpc.ServiceDesc for FileService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_file_proto_file_proto protoreflect.FileDescriptor
var File_api_file_proto_file_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFileServiceHTTPServer ¶
func RegisterFileServiceHTTPServer(s *http.Server, srv FileServiceHTTPServer)
func RegisterFileServiceServer ¶
func RegisterFileServiceServer(s grpc.ServiceRegistrar, srv FileServiceServer)
Types ¶
type CompleteUploadRequest ¶
type CompleteUploadRequest struct {
UploadId string `protobuf:"bytes,1,opt,name=upload_id,json=uploadId,proto3" json:"upload_id,omitempty"`
// contains filtered or unexported fields
}
---- CompleteUpload ----
func (*CompleteUploadRequest) Descriptor
deprecated
func (*CompleteUploadRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompleteUploadRequest.ProtoReflect.Descriptor instead.
func (*CompleteUploadRequest) GetUploadId ¶
func (x *CompleteUploadRequest) GetUploadId() string
func (*CompleteUploadRequest) ProtoMessage ¶
func (*CompleteUploadRequest) ProtoMessage()
func (*CompleteUploadRequest) ProtoReflect ¶
func (x *CompleteUploadRequest) ProtoReflect() protoreflect.Message
func (*CompleteUploadRequest) Reset ¶
func (x *CompleteUploadRequest) Reset()
func (*CompleteUploadRequest) String ¶
func (x *CompleteUploadRequest) String() string
func (*CompleteUploadRequest) Validate ¶
func (m *CompleteUploadRequest) Validate() error
Validate checks the field values on CompleteUploadRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CompleteUploadRequest) ValidateAll ¶
func (m *CompleteUploadRequest) ValidateAll() error
ValidateAll checks the field values on CompleteUploadRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CompleteUploadRequestMultiError, or nil if none found.
type CompleteUploadRequestMultiError ¶
type CompleteUploadRequestMultiError []error
CompleteUploadRequestMultiError is an error wrapping multiple validation errors returned by CompleteUploadRequest.ValidateAll() if the designated constraints aren't met.
func (CompleteUploadRequestMultiError) AllErrors ¶
func (m CompleteUploadRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CompleteUploadRequestMultiError) Error ¶
func (m CompleteUploadRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CompleteUploadRequestValidationError ¶
type CompleteUploadRequestValidationError struct {
// contains filtered or unexported fields
}
CompleteUploadRequestValidationError is the validation error returned by CompleteUploadRequest.Validate if the designated constraints aren't met.
func (CompleteUploadRequestValidationError) Cause ¶
func (e CompleteUploadRequestValidationError) Cause() error
Cause function returns cause value.
func (CompleteUploadRequestValidationError) Error ¶
func (e CompleteUploadRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CompleteUploadRequestValidationError) ErrorName ¶
func (e CompleteUploadRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CompleteUploadRequestValidationError) Field ¶
func (e CompleteUploadRequestValidationError) Field() string
Field function returns field value.
func (CompleteUploadRequestValidationError) Key ¶
func (e CompleteUploadRequestValidationError) Key() bool
Key function returns key value.
func (CompleteUploadRequestValidationError) Reason ¶
func (e CompleteUploadRequestValidationError) Reason() string
Reason function returns reason value.
type CompleteUploadResponse ¶
type CompleteUploadResponse struct {
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // 对象 key(md5.ext),业务持久化只用它
// contains filtered or unexported fields
}
func (*CompleteUploadResponse) Descriptor
deprecated
func (*CompleteUploadResponse) Descriptor() ([]byte, []int)
Deprecated: Use CompleteUploadResponse.ProtoReflect.Descriptor instead.
func (*CompleteUploadResponse) GetKey ¶
func (x *CompleteUploadResponse) GetKey() string
func (*CompleteUploadResponse) GetUrl ¶
func (x *CompleteUploadResponse) GetUrl() string
func (*CompleteUploadResponse) ProtoMessage ¶
func (*CompleteUploadResponse) ProtoMessage()
func (*CompleteUploadResponse) ProtoReflect ¶
func (x *CompleteUploadResponse) ProtoReflect() protoreflect.Message
func (*CompleteUploadResponse) Reset ¶
func (x *CompleteUploadResponse) Reset()
func (*CompleteUploadResponse) String ¶
func (x *CompleteUploadResponse) String() string
func (*CompleteUploadResponse) Validate ¶
func (m *CompleteUploadResponse) Validate() error
Validate checks the field values on CompleteUploadResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CompleteUploadResponse) ValidateAll ¶
func (m *CompleteUploadResponse) ValidateAll() error
ValidateAll checks the field values on CompleteUploadResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CompleteUploadResponseMultiError, or nil if none found.
type CompleteUploadResponseMultiError ¶
type CompleteUploadResponseMultiError []error
CompleteUploadResponseMultiError is an error wrapping multiple validation errors returned by CompleteUploadResponse.ValidateAll() if the designated constraints aren't met.
func (CompleteUploadResponseMultiError) AllErrors ¶
func (m CompleteUploadResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CompleteUploadResponseMultiError) Error ¶
func (m CompleteUploadResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CompleteUploadResponseValidationError ¶
type CompleteUploadResponseValidationError struct {
// contains filtered or unexported fields
}
CompleteUploadResponseValidationError is the validation error returned by CompleteUploadResponse.Validate if the designated constraints aren't met.
func (CompleteUploadResponseValidationError) Cause ¶
func (e CompleteUploadResponseValidationError) Cause() error
Cause function returns cause value.
func (CompleteUploadResponseValidationError) Error ¶
func (e CompleteUploadResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CompleteUploadResponseValidationError) ErrorName ¶
func (e CompleteUploadResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CompleteUploadResponseValidationError) Field ¶
func (e CompleteUploadResponseValidationError) Field() string
Field function returns field value.
func (CompleteUploadResponseValidationError) Key ¶
func (e CompleteUploadResponseValidationError) Key() bool
Key function returns key value.
func (CompleteUploadResponseValidationError) Reason ¶
func (e CompleteUploadResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteUserFileRequest ¶
type DeleteUserFileRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
---- DeleteUserFile ----
func (*DeleteUserFileRequest) Descriptor
deprecated
func (*DeleteUserFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserFileRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserFileRequest) GetId ¶
func (x *DeleteUserFileRequest) GetId() uint32
func (*DeleteUserFileRequest) ProtoMessage ¶
func (*DeleteUserFileRequest) ProtoMessage()
func (*DeleteUserFileRequest) ProtoReflect ¶
func (x *DeleteUserFileRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserFileRequest) Reset ¶
func (x *DeleteUserFileRequest) Reset()
func (*DeleteUserFileRequest) String ¶
func (x *DeleteUserFileRequest) String() string
func (*DeleteUserFileRequest) Validate ¶
func (m *DeleteUserFileRequest) Validate() error
Validate checks the field values on DeleteUserFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteUserFileRequest) ValidateAll ¶
func (m *DeleteUserFileRequest) ValidateAll() error
ValidateAll checks the field values on DeleteUserFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteUserFileRequestMultiError, or nil if none found.
type DeleteUserFileRequestMultiError ¶
type DeleteUserFileRequestMultiError []error
DeleteUserFileRequestMultiError is an error wrapping multiple validation errors returned by DeleteUserFileRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteUserFileRequestMultiError) AllErrors ¶
func (m DeleteUserFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteUserFileRequestMultiError) Error ¶
func (m DeleteUserFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteUserFileRequestValidationError ¶
type DeleteUserFileRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteUserFileRequestValidationError is the validation error returned by DeleteUserFileRequest.Validate if the designated constraints aren't met.
func (DeleteUserFileRequestValidationError) Cause ¶
func (e DeleteUserFileRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteUserFileRequestValidationError) Error ¶
func (e DeleteUserFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteUserFileRequestValidationError) ErrorName ¶
func (e DeleteUserFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteUserFileRequestValidationError) Field ¶
func (e DeleteUserFileRequestValidationError) Field() string
Field function returns field value.
func (DeleteUserFileRequestValidationError) Key ¶
func (e DeleteUserFileRequestValidationError) Key() bool
Key function returns key value.
func (DeleteUserFileRequestValidationError) Reason ¶
func (e DeleteUserFileRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteUserFileResponse ¶
type DeleteUserFileResponse struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteUserFileResponse) Descriptor
deprecated
func (*DeleteUserFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserFileResponse.ProtoReflect.Descriptor instead.
func (*DeleteUserFileResponse) GetId ¶
func (x *DeleteUserFileResponse) GetId() uint32
func (*DeleteUserFileResponse) ProtoMessage ¶
func (*DeleteUserFileResponse) ProtoMessage()
func (*DeleteUserFileResponse) ProtoReflect ¶
func (x *DeleteUserFileResponse) ProtoReflect() protoreflect.Message
func (*DeleteUserFileResponse) Reset ¶
func (x *DeleteUserFileResponse) Reset()
func (*DeleteUserFileResponse) String ¶
func (x *DeleteUserFileResponse) String() string
func (*DeleteUserFileResponse) Validate ¶
func (m *DeleteUserFileResponse) Validate() error
Validate checks the field values on DeleteUserFileResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteUserFileResponse) ValidateAll ¶
func (m *DeleteUserFileResponse) ValidateAll() error
ValidateAll checks the field values on DeleteUserFileResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteUserFileResponseMultiError, or nil if none found.
type DeleteUserFileResponseMultiError ¶
type DeleteUserFileResponseMultiError []error
DeleteUserFileResponseMultiError is an error wrapping multiple validation errors returned by DeleteUserFileResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteUserFileResponseMultiError) AllErrors ¶
func (m DeleteUserFileResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteUserFileResponseMultiError) Error ¶
func (m DeleteUserFileResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteUserFileResponseValidationError ¶
type DeleteUserFileResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteUserFileResponseValidationError is the validation error returned by DeleteUserFileResponse.Validate if the designated constraints aren't met.
func (DeleteUserFileResponseValidationError) Cause ¶
func (e DeleteUserFileResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteUserFileResponseValidationError) Error ¶
func (e DeleteUserFileResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteUserFileResponseValidationError) ErrorName ¶
func (e DeleteUserFileResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteUserFileResponseValidationError) Field ¶
func (e DeleteUserFileResponseValidationError) Field() string
Field function returns field value.
func (DeleteUserFileResponseValidationError) Key ¶
func (e DeleteUserFileResponseValidationError) Key() bool
Key function returns key value.
func (DeleteUserFileResponseValidationError) Reason ¶
func (e DeleteUserFileResponseValidationError) Reason() string
Reason function returns reason value.
type FileItem ¶
type FileItem struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
App string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"`
UserId uint32 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
DirectoryId uint32 `protobuf:"varint,4,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
ObjectId uint32 `protobuf:"varint,6,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
Size string `protobuf:"bytes,7,opt,name=size,proto3" json:"size,omitempty"` // 对象大小(字节)
Ext string `protobuf:"bytes,8,opt,name=ext,proto3" json:"ext,omitempty"` // 后缀(来自 object,显示用)
Url string `protobuf:"bytes,9,opt,name=url,proto3" json:"url,omitempty"` // 派生可读 URL
CreatedAt uint32 `protobuf:"varint,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
Key string `protobuf:"bytes,11,opt,name=key,proto3" json:"key,omitempty"` // 对象 key(md5.ext),业务持久化只用它
// contains filtered or unexported fields
}
FileItem 文件条目(列表项,含派生 URL)
func (*FileItem) Descriptor
deprecated
func (*FileItem) GetCreatedAt ¶
func (*FileItem) GetDirectoryId ¶
func (*FileItem) GetObjectId ¶
func (*FileItem) ProtoMessage ¶
func (*FileItem) ProtoMessage()
func (*FileItem) ProtoReflect ¶
func (x *FileItem) ProtoReflect() protoreflect.Message
func (*FileItem) Validate ¶
Validate checks the field values on FileItem with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FileItem) ValidateAll ¶
ValidateAll checks the field values on FileItem with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FileItemMultiError, or nil if none found.
type FileItemMultiError ¶
type FileItemMultiError []error
FileItemMultiError is an error wrapping multiple validation errors returned by FileItem.ValidateAll() if the designated constraints aren't met.
func (FileItemMultiError) AllErrors ¶
func (m FileItemMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FileItemMultiError) Error ¶
func (m FileItemMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FileItemValidationError ¶
type FileItemValidationError struct {
// contains filtered or unexported fields
}
FileItemValidationError is the validation error returned by FileItem.Validate if the designated constraints aren't met.
func (FileItemValidationError) Cause ¶
func (e FileItemValidationError) Cause() error
Cause function returns cause value.
func (FileItemValidationError) Error ¶
func (e FileItemValidationError) Error() string
Error satisfies the builtin error interface
func (FileItemValidationError) ErrorName ¶
func (e FileItemValidationError) ErrorName() string
ErrorName returns error name.
func (FileItemValidationError) Field ¶
func (e FileItemValidationError) Field() string
Field function returns field value.
func (FileItemValidationError) Key ¶
func (e FileItemValidationError) Key() bool
Key function returns key value.
func (FileItemValidationError) Reason ¶
func (e FileItemValidationError) Reason() string
Reason function returns reason value.
type FileServiceClient ¶
type FileServiceClient interface {
// GetUserFile 取单个文件(响应含完整 url 与 size)
GetUserFile(ctx context.Context, in *GetUserFileRequest, opts ...grpc.CallOption) (*GetUserFileResponse, error)
// ListUserFile 我的文件分页
ListUserFile(ctx context.Context, in *ListUserFileRequest, opts ...grpc.CallOption) (*ListUserFileResponse, error)
// ListFile 目录内文件分页
ListFile(ctx context.Context, in *ListFileRequest, opts ...grpc.CallOption) (*ListFileResponse, error)
// GetUploadChunkSize 取分片大小与片数(纯函数,客户端先调它)
GetUploadChunkSize(ctx context.Context, in *GetUploadChunkSizeRequest, opts ...grpc.CallOption) (*GetUploadChunkSizeResponse, error)
// PrepareUploadFile 预上传:秒传判定 / 召回 / 建会话
PrepareUploadFile(ctx context.Context, in *PrepareUploadFileRequest, opts ...grpc.CallOption) (*PrepareUploadFileResponse, error)
// GetUploadPartURLs 按批取分片上传预签名地址
GetUploadPartURLs(ctx context.Context, in *GetUploadPartURLsRequest, opts ...grpc.CallOption) (*GetUploadPartURLsResponse, error)
// CompleteUpload 完成分片上传
CompleteUpload(ctx context.Context, in *CompleteUploadRequest, opts ...grpc.CallOption) (*CompleteUploadResponse, error)
// UpdateUserFile 改名 / 移动
UpdateUserFile(ctx context.Context, in *UpdateUserFileRequest, opts ...grpc.CallOption) (*UpdateUserFileResponse, error)
// DeleteUserFile 删除文件(触发对象回收)
DeleteUserFile(ctx context.Context, in *DeleteUserFileRequest, opts ...grpc.CallOption) (*DeleteUserFileResponse, error)
// UploadFileByURL 服务端从 URL 下载并上传(生成内容落库;name 含后缀)
UploadFileByURL(ctx context.Context, in *UploadFileByURLRequest, opts ...grpc.CallOption) (*UploadFileByURLResponse, error)
// GetFileURLByKey 按对象 key 取可访问地址
GetFileURLByKey(ctx context.Context, in *GetFileURLByKeyRequest, opts ...grpc.CallOption) (*GetFileURLByKeyReply, error)
}
FileServiceClient is the client API for FileService 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.
约定:不使用 {path} 路径参数,所有入参均经 Request 的 query / body 绑定。
func NewFileServiceClient ¶
func NewFileServiceClient(cc grpc.ClientConnInterface) FileServiceClient
type FileServiceHTTPClient ¶
type FileServiceHTTPClient interface {
CompleteUpload(ctx context.Context, req *CompleteUploadRequest, opts ...http.CallOption) (rsp *CompleteUploadResponse, err error)
DeleteUserFile(ctx context.Context, req *DeleteUserFileRequest, opts ...http.CallOption) (rsp *DeleteUserFileResponse, err error)
GetFileURLByKey(ctx context.Context, req *GetFileURLByKeyRequest, opts ...http.CallOption) (rsp *GetFileURLByKeyReply, err error)
GetUploadChunkSize(ctx context.Context, req *GetUploadChunkSizeRequest, opts ...http.CallOption) (rsp *GetUploadChunkSizeResponse, err error)
GetUploadPartURLs(ctx context.Context, req *GetUploadPartURLsRequest, opts ...http.CallOption) (rsp *GetUploadPartURLsResponse, err error)
GetUserFile(ctx context.Context, req *GetUserFileRequest, opts ...http.CallOption) (rsp *GetUserFileResponse, err error)
ListFile(ctx context.Context, req *ListFileRequest, opts ...http.CallOption) (rsp *ListFileResponse, err error)
ListUserFile(ctx context.Context, req *ListUserFileRequest, opts ...http.CallOption) (rsp *ListUserFileResponse, err error)
PrepareUploadFile(ctx context.Context, req *PrepareUploadFileRequest, opts ...http.CallOption) (rsp *PrepareUploadFileResponse, err error)
UpdateUserFile(ctx context.Context, req *UpdateUserFileRequest, opts ...http.CallOption) (rsp *UpdateUserFileResponse, err error)
UploadFileByURL(ctx context.Context, req *UploadFileByURLRequest, opts ...http.CallOption) (rsp *UploadFileByURLResponse, err error)
}
func NewFileServiceHTTPClient ¶
func NewFileServiceHTTPClient(client *http.Client) FileServiceHTTPClient
type FileServiceHTTPClientImpl ¶
type FileServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*FileServiceHTTPClientImpl) CompleteUpload ¶
func (c *FileServiceHTTPClientImpl) CompleteUpload(ctx context.Context, in *CompleteUploadRequest, opts ...http.CallOption) (*CompleteUploadResponse, error)
func (*FileServiceHTTPClientImpl) DeleteUserFile ¶
func (c *FileServiceHTTPClientImpl) DeleteUserFile(ctx context.Context, in *DeleteUserFileRequest, opts ...http.CallOption) (*DeleteUserFileResponse, error)
func (*FileServiceHTTPClientImpl) GetFileURLByKey ¶
func (c *FileServiceHTTPClientImpl) GetFileURLByKey(ctx context.Context, in *GetFileURLByKeyRequest, opts ...http.CallOption) (*GetFileURLByKeyReply, error)
func (*FileServiceHTTPClientImpl) GetUploadChunkSize ¶
func (c *FileServiceHTTPClientImpl) GetUploadChunkSize(ctx context.Context, in *GetUploadChunkSizeRequest, opts ...http.CallOption) (*GetUploadChunkSizeResponse, error)
func (*FileServiceHTTPClientImpl) GetUploadPartURLs ¶
func (c *FileServiceHTTPClientImpl) GetUploadPartURLs(ctx context.Context, in *GetUploadPartURLsRequest, opts ...http.CallOption) (*GetUploadPartURLsResponse, error)
func (*FileServiceHTTPClientImpl) GetUserFile ¶
func (c *FileServiceHTTPClientImpl) GetUserFile(ctx context.Context, in *GetUserFileRequest, opts ...http.CallOption) (*GetUserFileResponse, error)
func (*FileServiceHTTPClientImpl) ListFile ¶
func (c *FileServiceHTTPClientImpl) ListFile(ctx context.Context, in *ListFileRequest, opts ...http.CallOption) (*ListFileResponse, error)
func (*FileServiceHTTPClientImpl) ListUserFile ¶
func (c *FileServiceHTTPClientImpl) ListUserFile(ctx context.Context, in *ListUserFileRequest, opts ...http.CallOption) (*ListUserFileResponse, error)
func (*FileServiceHTTPClientImpl) PrepareUploadFile ¶
func (c *FileServiceHTTPClientImpl) PrepareUploadFile(ctx context.Context, in *PrepareUploadFileRequest, opts ...http.CallOption) (*PrepareUploadFileResponse, error)
func (*FileServiceHTTPClientImpl) UpdateUserFile ¶
func (c *FileServiceHTTPClientImpl) UpdateUserFile(ctx context.Context, in *UpdateUserFileRequest, opts ...http.CallOption) (*UpdateUserFileResponse, error)
func (*FileServiceHTTPClientImpl) UploadFileByURL ¶
func (c *FileServiceHTTPClientImpl) UploadFileByURL(ctx context.Context, in *UploadFileByURLRequest, opts ...http.CallOption) (*UploadFileByURLResponse, error)
type FileServiceHTTPServer ¶
type FileServiceHTTPServer interface {
// CompleteUpload CompleteUpload 完成分片上传
CompleteUpload(context.Context, *CompleteUploadRequest) (*CompleteUploadResponse, error)
// DeleteUserFile DeleteUserFile 删除文件(触发对象回收)
DeleteUserFile(context.Context, *DeleteUserFileRequest) (*DeleteUserFileResponse, error)
// GetFileURLByKey GetFileURLByKey 按对象 key 取可访问地址
GetFileURLByKey(context.Context, *GetFileURLByKeyRequest) (*GetFileURLByKeyReply, error)
// GetUploadChunkSize GetUploadChunkSize 取分片大小与片数(纯函数,客户端先调它)
GetUploadChunkSize(context.Context, *GetUploadChunkSizeRequest) (*GetUploadChunkSizeResponse, error)
// GetUploadPartURLs GetUploadPartURLs 按批取分片上传预签名地址
GetUploadPartURLs(context.Context, *GetUploadPartURLsRequest) (*GetUploadPartURLsResponse, error)
// GetUserFile GetUserFile 取单个文件(响应含完整 url 与 size)
GetUserFile(context.Context, *GetUserFileRequest) (*GetUserFileResponse, error)
// ListFile ListFile 目录内文件分页
ListFile(context.Context, *ListFileRequest) (*ListFileResponse, error)
// ListUserFile ListUserFile 我的文件分页
ListUserFile(context.Context, *ListUserFileRequest) (*ListUserFileResponse, error)
// PrepareUploadFile PrepareUploadFile 预上传:秒传判定 / 召回 / 建会话
PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileResponse, error)
// UpdateUserFile UpdateUserFile 改名 / 移动
UpdateUserFile(context.Context, *UpdateUserFileRequest) (*UpdateUserFileResponse, error)
// UploadFileByURL UploadFileByURL 服务端从 URL 下载并上传(生成内容落库;name 含后缀)
UploadFileByURL(context.Context, *UploadFileByURLRequest) (*UploadFileByURLResponse, error)
}
type FileServiceServer ¶
type FileServiceServer interface {
// GetUserFile 取单个文件(响应含完整 url 与 size)
GetUserFile(context.Context, *GetUserFileRequest) (*GetUserFileResponse, error)
// ListUserFile 我的文件分页
ListUserFile(context.Context, *ListUserFileRequest) (*ListUserFileResponse, error)
// ListFile 目录内文件分页
ListFile(context.Context, *ListFileRequest) (*ListFileResponse, error)
// GetUploadChunkSize 取分片大小与片数(纯函数,客户端先调它)
GetUploadChunkSize(context.Context, *GetUploadChunkSizeRequest) (*GetUploadChunkSizeResponse, error)
// PrepareUploadFile 预上传:秒传判定 / 召回 / 建会话
PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileResponse, error)
// GetUploadPartURLs 按批取分片上传预签名地址
GetUploadPartURLs(context.Context, *GetUploadPartURLsRequest) (*GetUploadPartURLsResponse, error)
// CompleteUpload 完成分片上传
CompleteUpload(context.Context, *CompleteUploadRequest) (*CompleteUploadResponse, error)
// UpdateUserFile 改名 / 移动
UpdateUserFile(context.Context, *UpdateUserFileRequest) (*UpdateUserFileResponse, error)
// DeleteUserFile 删除文件(触发对象回收)
DeleteUserFile(context.Context, *DeleteUserFileRequest) (*DeleteUserFileResponse, error)
// UploadFileByURL 服务端从 URL 下载并上传(生成内容落库;name 含后缀)
UploadFileByURL(context.Context, *UploadFileByURLRequest) (*UploadFileByURLResponse, error)
// GetFileURLByKey 按对象 key 取可访问地址
GetFileURLByKey(context.Context, *GetFileURLByKeyRequest) (*GetFileURLByKeyReply, error)
// contains filtered or unexported methods
}
FileServiceServer is the server API for FileService service. All implementations must embed UnimplementedFileServiceServer for forward compatibility.
约定:不使用 {path} 路径参数,所有入参均经 Request 的 query / body 绑定。
type GetFileURLByKeyReply ¶
type GetFileURLByKeyReply struct {
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // 可访问地址(按 store 的 CDN 鉴权类型生成,TTL 内有效)
// contains filtered or unexported fields
}
func (*GetFileURLByKeyReply) Descriptor
deprecated
func (*GetFileURLByKeyReply) Descriptor() ([]byte, []int)
Deprecated: Use GetFileURLByKeyReply.ProtoReflect.Descriptor instead.
func (*GetFileURLByKeyReply) GetUrl ¶
func (x *GetFileURLByKeyReply) GetUrl() string
func (*GetFileURLByKeyReply) ProtoMessage ¶
func (*GetFileURLByKeyReply) ProtoMessage()
func (*GetFileURLByKeyReply) ProtoReflect ¶
func (x *GetFileURLByKeyReply) ProtoReflect() protoreflect.Message
func (*GetFileURLByKeyReply) Reset ¶
func (x *GetFileURLByKeyReply) Reset()
func (*GetFileURLByKeyReply) String ¶
func (x *GetFileURLByKeyReply) String() string
func (*GetFileURLByKeyReply) Validate ¶
func (m *GetFileURLByKeyReply) Validate() error
Validate checks the field values on GetFileURLByKeyReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetFileURLByKeyReply) ValidateAll ¶
func (m *GetFileURLByKeyReply) ValidateAll() error
ValidateAll checks the field values on GetFileURLByKeyReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetFileURLByKeyReplyMultiError, or nil if none found.
type GetFileURLByKeyReplyMultiError ¶
type GetFileURLByKeyReplyMultiError []error
GetFileURLByKeyReplyMultiError is an error wrapping multiple validation errors returned by GetFileURLByKeyReply.ValidateAll() if the designated constraints aren't met.
func (GetFileURLByKeyReplyMultiError) AllErrors ¶
func (m GetFileURLByKeyReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetFileURLByKeyReplyMultiError) Error ¶
func (m GetFileURLByKeyReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetFileURLByKeyReplyValidationError ¶
type GetFileURLByKeyReplyValidationError struct {
// contains filtered or unexported fields
}
GetFileURLByKeyReplyValidationError is the validation error returned by GetFileURLByKeyReply.Validate if the designated constraints aren't met.
func (GetFileURLByKeyReplyValidationError) Cause ¶
func (e GetFileURLByKeyReplyValidationError) Cause() error
Cause function returns cause value.
func (GetFileURLByKeyReplyValidationError) Error ¶
func (e GetFileURLByKeyReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetFileURLByKeyReplyValidationError) ErrorName ¶
func (e GetFileURLByKeyReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetFileURLByKeyReplyValidationError) Field ¶
func (e GetFileURLByKeyReplyValidationError) Field() string
Field function returns field value.
func (GetFileURLByKeyReplyValidationError) Key ¶
func (e GetFileURLByKeyReplyValidationError) Key() bool
Key function returns key value.
func (GetFileURLByKeyReplyValidationError) Reason ¶
func (e GetFileURLByKeyReplyValidationError) Reason() string
Reason function returns reason value.
type GetFileURLByKeyRequest ¶
type GetFileURLByKeyRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // 对象 key(md5.ext)
// contains filtered or unexported fields
}
---- GetFileURLByKey ---- 按对象 key(内容指纹 md5.ext)取可访问地址(快速展示:前端持有 key 即可转真实 URL)
func (*GetFileURLByKeyRequest) Descriptor
deprecated
func (*GetFileURLByKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFileURLByKeyRequest.ProtoReflect.Descriptor instead.
func (*GetFileURLByKeyRequest) GetKey ¶
func (x *GetFileURLByKeyRequest) GetKey() string
func (*GetFileURLByKeyRequest) ProtoMessage ¶
func (*GetFileURLByKeyRequest) ProtoMessage()
func (*GetFileURLByKeyRequest) ProtoReflect ¶
func (x *GetFileURLByKeyRequest) ProtoReflect() protoreflect.Message
func (*GetFileURLByKeyRequest) Reset ¶
func (x *GetFileURLByKeyRequest) Reset()
func (*GetFileURLByKeyRequest) String ¶
func (x *GetFileURLByKeyRequest) String() string
func (*GetFileURLByKeyRequest) Validate ¶
func (m *GetFileURLByKeyRequest) Validate() error
Validate checks the field values on GetFileURLByKeyRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetFileURLByKeyRequest) ValidateAll ¶
func (m *GetFileURLByKeyRequest) ValidateAll() error
ValidateAll checks the field values on GetFileURLByKeyRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetFileURLByKeyRequestMultiError, or nil if none found.
type GetFileURLByKeyRequestMultiError ¶
type GetFileURLByKeyRequestMultiError []error
GetFileURLByKeyRequestMultiError is an error wrapping multiple validation errors returned by GetFileURLByKeyRequest.ValidateAll() if the designated constraints aren't met.
func (GetFileURLByKeyRequestMultiError) AllErrors ¶
func (m GetFileURLByKeyRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetFileURLByKeyRequestMultiError) Error ¶
func (m GetFileURLByKeyRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetFileURLByKeyRequestValidationError ¶
type GetFileURLByKeyRequestValidationError struct {
// contains filtered or unexported fields
}
GetFileURLByKeyRequestValidationError is the validation error returned by GetFileURLByKeyRequest.Validate if the designated constraints aren't met.
func (GetFileURLByKeyRequestValidationError) Cause ¶
func (e GetFileURLByKeyRequestValidationError) Cause() error
Cause function returns cause value.
func (GetFileURLByKeyRequestValidationError) Error ¶
func (e GetFileURLByKeyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetFileURLByKeyRequestValidationError) ErrorName ¶
func (e GetFileURLByKeyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetFileURLByKeyRequestValidationError) Field ¶
func (e GetFileURLByKeyRequestValidationError) Field() string
Field function returns field value.
func (GetFileURLByKeyRequestValidationError) Key ¶
func (e GetFileURLByKeyRequestValidationError) Key() bool
Key function returns key value.
func (GetFileURLByKeyRequestValidationError) Reason ¶
func (e GetFileURLByKeyRequestValidationError) Reason() string
Reason function returns reason value.
type GetUploadChunkSizeRequest ¶
type GetUploadChunkSizeRequest struct {
TotalSize string `protobuf:"bytes,1,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
// contains filtered or unexported fields
}
---- GetUploadChunkSize ----
func (*GetUploadChunkSizeRequest) Descriptor
deprecated
func (*GetUploadChunkSizeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUploadChunkSizeRequest.ProtoReflect.Descriptor instead.
func (*GetUploadChunkSizeRequest) GetTotalSize ¶
func (x *GetUploadChunkSizeRequest) GetTotalSize() string
func (*GetUploadChunkSizeRequest) ProtoMessage ¶
func (*GetUploadChunkSizeRequest) ProtoMessage()
func (*GetUploadChunkSizeRequest) ProtoReflect ¶
func (x *GetUploadChunkSizeRequest) ProtoReflect() protoreflect.Message
func (*GetUploadChunkSizeRequest) Reset ¶
func (x *GetUploadChunkSizeRequest) Reset()
func (*GetUploadChunkSizeRequest) String ¶
func (x *GetUploadChunkSizeRequest) String() string
func (*GetUploadChunkSizeRequest) Validate ¶
func (m *GetUploadChunkSizeRequest) Validate() error
Validate checks the field values on GetUploadChunkSizeRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUploadChunkSizeRequest) ValidateAll ¶
func (m *GetUploadChunkSizeRequest) ValidateAll() error
ValidateAll checks the field values on GetUploadChunkSizeRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUploadChunkSizeRequestMultiError, or nil if none found.
type GetUploadChunkSizeRequestMultiError ¶
type GetUploadChunkSizeRequestMultiError []error
GetUploadChunkSizeRequestMultiError is an error wrapping multiple validation errors returned by GetUploadChunkSizeRequest.ValidateAll() if the designated constraints aren't met.
func (GetUploadChunkSizeRequestMultiError) AllErrors ¶
func (m GetUploadChunkSizeRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUploadChunkSizeRequestMultiError) Error ¶
func (m GetUploadChunkSizeRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUploadChunkSizeRequestValidationError ¶
type GetUploadChunkSizeRequestValidationError struct {
// contains filtered or unexported fields
}
GetUploadChunkSizeRequestValidationError is the validation error returned by GetUploadChunkSizeRequest.Validate if the designated constraints aren't met.
func (GetUploadChunkSizeRequestValidationError) Cause ¶
func (e GetUploadChunkSizeRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUploadChunkSizeRequestValidationError) Error ¶
func (e GetUploadChunkSizeRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUploadChunkSizeRequestValidationError) ErrorName ¶
func (e GetUploadChunkSizeRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUploadChunkSizeRequestValidationError) Field ¶
func (e GetUploadChunkSizeRequestValidationError) Field() string
Field function returns field value.
func (GetUploadChunkSizeRequestValidationError) Key ¶
func (e GetUploadChunkSizeRequestValidationError) Key() bool
Key function returns key value.
func (GetUploadChunkSizeRequestValidationError) Reason ¶
func (e GetUploadChunkSizeRequestValidationError) Reason() string
Reason function returns reason value.
type GetUploadChunkSizeResponse ¶
type GetUploadChunkSizeResponse struct {
ChunkSize uint32 `protobuf:"varint,1,opt,name=chunk_size,json=chunkSize,proto3" json:"chunk_size,omitempty"`
ChunkCount uint32 `protobuf:"varint,2,opt,name=chunk_count,json=chunkCount,proto3" json:"chunk_count,omitempty"`
// contains filtered or unexported fields
}
func (*GetUploadChunkSizeResponse) Descriptor
deprecated
func (*GetUploadChunkSizeResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUploadChunkSizeResponse.ProtoReflect.Descriptor instead.
func (*GetUploadChunkSizeResponse) GetChunkCount ¶
func (x *GetUploadChunkSizeResponse) GetChunkCount() uint32
func (*GetUploadChunkSizeResponse) GetChunkSize ¶
func (x *GetUploadChunkSizeResponse) GetChunkSize() uint32
func (*GetUploadChunkSizeResponse) ProtoMessage ¶
func (*GetUploadChunkSizeResponse) ProtoMessage()
func (*GetUploadChunkSizeResponse) ProtoReflect ¶
func (x *GetUploadChunkSizeResponse) ProtoReflect() protoreflect.Message
func (*GetUploadChunkSizeResponse) Reset ¶
func (x *GetUploadChunkSizeResponse) Reset()
func (*GetUploadChunkSizeResponse) String ¶
func (x *GetUploadChunkSizeResponse) String() string
func (*GetUploadChunkSizeResponse) Validate ¶
func (m *GetUploadChunkSizeResponse) Validate() error
Validate checks the field values on GetUploadChunkSizeResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUploadChunkSizeResponse) ValidateAll ¶
func (m *GetUploadChunkSizeResponse) ValidateAll() error
ValidateAll checks the field values on GetUploadChunkSizeResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUploadChunkSizeResponseMultiError, or nil if none found.
type GetUploadChunkSizeResponseMultiError ¶
type GetUploadChunkSizeResponseMultiError []error
GetUploadChunkSizeResponseMultiError is an error wrapping multiple validation errors returned by GetUploadChunkSizeResponse.ValidateAll() if the designated constraints aren't met.
func (GetUploadChunkSizeResponseMultiError) AllErrors ¶
func (m GetUploadChunkSizeResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUploadChunkSizeResponseMultiError) Error ¶
func (m GetUploadChunkSizeResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUploadChunkSizeResponseValidationError ¶
type GetUploadChunkSizeResponseValidationError struct {
// contains filtered or unexported fields
}
GetUploadChunkSizeResponseValidationError is the validation error returned by GetUploadChunkSizeResponse.Validate if the designated constraints aren't met.
func (GetUploadChunkSizeResponseValidationError) Cause ¶
func (e GetUploadChunkSizeResponseValidationError) Cause() error
Cause function returns cause value.
func (GetUploadChunkSizeResponseValidationError) Error ¶
func (e GetUploadChunkSizeResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetUploadChunkSizeResponseValidationError) ErrorName ¶
func (e GetUploadChunkSizeResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetUploadChunkSizeResponseValidationError) Field ¶
func (e GetUploadChunkSizeResponseValidationError) Field() string
Field function returns field value.
func (GetUploadChunkSizeResponseValidationError) Key ¶
func (e GetUploadChunkSizeResponseValidationError) Key() bool
Key function returns key value.
func (GetUploadChunkSizeResponseValidationError) Reason ¶
func (e GetUploadChunkSizeResponseValidationError) Reason() string
Reason function returns reason value.
type GetUploadPartURLsRequest ¶
type GetUploadPartURLsRequest struct {
UploadId string `protobuf:"bytes,1,opt,name=upload_id,json=uploadId,proto3" json:"upload_id,omitempty"`
PartNumbers []uint32 `protobuf:"varint,2,rep,packed,name=part_numbers,json=partNumbers,proto3" json:"part_numbers,omitempty"`
// contains filtered or unexported fields
}
---- GetUploadPartURLs ----
func (*GetUploadPartURLsRequest) Descriptor
deprecated
func (*GetUploadPartURLsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUploadPartURLsRequest.ProtoReflect.Descriptor instead.
func (*GetUploadPartURLsRequest) GetPartNumbers ¶
func (x *GetUploadPartURLsRequest) GetPartNumbers() []uint32
func (*GetUploadPartURLsRequest) GetUploadId ¶
func (x *GetUploadPartURLsRequest) GetUploadId() string
func (*GetUploadPartURLsRequest) ProtoMessage ¶
func (*GetUploadPartURLsRequest) ProtoMessage()
func (*GetUploadPartURLsRequest) ProtoReflect ¶
func (x *GetUploadPartURLsRequest) ProtoReflect() protoreflect.Message
func (*GetUploadPartURLsRequest) Reset ¶
func (x *GetUploadPartURLsRequest) Reset()
func (*GetUploadPartURLsRequest) String ¶
func (x *GetUploadPartURLsRequest) String() string
func (*GetUploadPartURLsRequest) Validate ¶
func (m *GetUploadPartURLsRequest) Validate() error
Validate checks the field values on GetUploadPartURLsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUploadPartURLsRequest) ValidateAll ¶
func (m *GetUploadPartURLsRequest) ValidateAll() error
ValidateAll checks the field values on GetUploadPartURLsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUploadPartURLsRequestMultiError, or nil if none found.
type GetUploadPartURLsRequestMultiError ¶
type GetUploadPartURLsRequestMultiError []error
GetUploadPartURLsRequestMultiError is an error wrapping multiple validation errors returned by GetUploadPartURLsRequest.ValidateAll() if the designated constraints aren't met.
func (GetUploadPartURLsRequestMultiError) AllErrors ¶
func (m GetUploadPartURLsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUploadPartURLsRequestMultiError) Error ¶
func (m GetUploadPartURLsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUploadPartURLsRequestValidationError ¶
type GetUploadPartURLsRequestValidationError struct {
// contains filtered or unexported fields
}
GetUploadPartURLsRequestValidationError is the validation error returned by GetUploadPartURLsRequest.Validate if the designated constraints aren't met.
func (GetUploadPartURLsRequestValidationError) Cause ¶
func (e GetUploadPartURLsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUploadPartURLsRequestValidationError) Error ¶
func (e GetUploadPartURLsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUploadPartURLsRequestValidationError) ErrorName ¶
func (e GetUploadPartURLsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUploadPartURLsRequestValidationError) Field ¶
func (e GetUploadPartURLsRequestValidationError) Field() string
Field function returns field value.
func (GetUploadPartURLsRequestValidationError) Key ¶
func (e GetUploadPartURLsRequestValidationError) Key() bool
Key function returns key value.
func (GetUploadPartURLsRequestValidationError) Reason ¶
func (e GetUploadPartURLsRequestValidationError) Reason() string
Reason function returns reason value.
type GetUploadPartURLsResponse ¶
type GetUploadPartURLsResponse struct {
Urls []*PartURL `protobuf:"bytes,1,rep,name=urls,proto3" json:"urls,omitempty"`
// contains filtered or unexported fields
}
func (*GetUploadPartURLsResponse) Descriptor
deprecated
func (*GetUploadPartURLsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUploadPartURLsResponse.ProtoReflect.Descriptor instead.
func (*GetUploadPartURLsResponse) GetUrls ¶
func (x *GetUploadPartURLsResponse) GetUrls() []*PartURL
func (*GetUploadPartURLsResponse) ProtoMessage ¶
func (*GetUploadPartURLsResponse) ProtoMessage()
func (*GetUploadPartURLsResponse) ProtoReflect ¶
func (x *GetUploadPartURLsResponse) ProtoReflect() protoreflect.Message
func (*GetUploadPartURLsResponse) Reset ¶
func (x *GetUploadPartURLsResponse) Reset()
func (*GetUploadPartURLsResponse) String ¶
func (x *GetUploadPartURLsResponse) String() string
func (*GetUploadPartURLsResponse) Validate ¶
func (m *GetUploadPartURLsResponse) Validate() error
Validate checks the field values on GetUploadPartURLsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUploadPartURLsResponse) ValidateAll ¶
func (m *GetUploadPartURLsResponse) ValidateAll() error
ValidateAll checks the field values on GetUploadPartURLsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUploadPartURLsResponseMultiError, or nil if none found.
type GetUploadPartURLsResponseMultiError ¶
type GetUploadPartURLsResponseMultiError []error
GetUploadPartURLsResponseMultiError is an error wrapping multiple validation errors returned by GetUploadPartURLsResponse.ValidateAll() if the designated constraints aren't met.
func (GetUploadPartURLsResponseMultiError) AllErrors ¶
func (m GetUploadPartURLsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUploadPartURLsResponseMultiError) Error ¶
func (m GetUploadPartURLsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUploadPartURLsResponseValidationError ¶
type GetUploadPartURLsResponseValidationError struct {
// contains filtered or unexported fields
}
GetUploadPartURLsResponseValidationError is the validation error returned by GetUploadPartURLsResponse.Validate if the designated constraints aren't met.
func (GetUploadPartURLsResponseValidationError) Cause ¶
func (e GetUploadPartURLsResponseValidationError) Cause() error
Cause function returns cause value.
func (GetUploadPartURLsResponseValidationError) Error ¶
func (e GetUploadPartURLsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetUploadPartURLsResponseValidationError) ErrorName ¶
func (e GetUploadPartURLsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetUploadPartURLsResponseValidationError) Field ¶
func (e GetUploadPartURLsResponseValidationError) Field() string
Field function returns field value.
func (GetUploadPartURLsResponseValidationError) Key ¶
func (e GetUploadPartURLsResponseValidationError) Key() bool
Key function returns key value.
func (GetUploadPartURLsResponseValidationError) Reason ¶
func (e GetUploadPartURLsResponseValidationError) Reason() string
Reason function returns reason value.
type GetUserFileRequest ¶
type GetUserFileRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
---- GetUserFile ----
func (*GetUserFileRequest) Descriptor
deprecated
func (*GetUserFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserFileRequest.ProtoReflect.Descriptor instead.
func (*GetUserFileRequest) GetId ¶
func (x *GetUserFileRequest) GetId() uint32
func (*GetUserFileRequest) ProtoMessage ¶
func (*GetUserFileRequest) ProtoMessage()
func (*GetUserFileRequest) ProtoReflect ¶
func (x *GetUserFileRequest) ProtoReflect() protoreflect.Message
func (*GetUserFileRequest) Reset ¶
func (x *GetUserFileRequest) Reset()
func (*GetUserFileRequest) String ¶
func (x *GetUserFileRequest) String() string
func (*GetUserFileRequest) Validate ¶
func (m *GetUserFileRequest) Validate() error
Validate checks the field values on GetUserFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUserFileRequest) ValidateAll ¶
func (m *GetUserFileRequest) ValidateAll() error
ValidateAll checks the field values on GetUserFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserFileRequestMultiError, or nil if none found.
type GetUserFileRequestMultiError ¶
type GetUserFileRequestMultiError []error
GetUserFileRequestMultiError is an error wrapping multiple validation errors returned by GetUserFileRequest.ValidateAll() if the designated constraints aren't met.
func (GetUserFileRequestMultiError) AllErrors ¶
func (m GetUserFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserFileRequestMultiError) Error ¶
func (m GetUserFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserFileRequestValidationError ¶
type GetUserFileRequestValidationError struct {
// contains filtered or unexported fields
}
GetUserFileRequestValidationError is the validation error returned by GetUserFileRequest.Validate if the designated constraints aren't met.
func (GetUserFileRequestValidationError) Cause ¶
func (e GetUserFileRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUserFileRequestValidationError) Error ¶
func (e GetUserFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserFileRequestValidationError) ErrorName ¶
func (e GetUserFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserFileRequestValidationError) Field ¶
func (e GetUserFileRequestValidationError) Field() string
Field function returns field value.
func (GetUserFileRequestValidationError) Key ¶
func (e GetUserFileRequestValidationError) Key() bool
Key function returns key value.
func (GetUserFileRequestValidationError) Reason ¶
func (e GetUserFileRequestValidationError) Reason() string
Reason function returns reason value.
type GetUserFileResponse ¶
type GetUserFileResponse struct {
File *FileItem `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
// contains filtered or unexported fields
}
func (*GetUserFileResponse) Descriptor
deprecated
func (*GetUserFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserFileResponse.ProtoReflect.Descriptor instead.
func (*GetUserFileResponse) GetFile ¶
func (x *GetUserFileResponse) GetFile() *FileItem
func (*GetUserFileResponse) ProtoMessage ¶
func (*GetUserFileResponse) ProtoMessage()
func (*GetUserFileResponse) ProtoReflect ¶
func (x *GetUserFileResponse) ProtoReflect() protoreflect.Message
func (*GetUserFileResponse) Reset ¶
func (x *GetUserFileResponse) Reset()
func (*GetUserFileResponse) String ¶
func (x *GetUserFileResponse) String() string
func (*GetUserFileResponse) Validate ¶
func (m *GetUserFileResponse) Validate() error
Validate checks the field values on GetUserFileResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUserFileResponse) ValidateAll ¶
func (m *GetUserFileResponse) ValidateAll() error
ValidateAll checks the field values on GetUserFileResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserFileResponseMultiError, or nil if none found.
type GetUserFileResponseMultiError ¶
type GetUserFileResponseMultiError []error
GetUserFileResponseMultiError is an error wrapping multiple validation errors returned by GetUserFileResponse.ValidateAll() if the designated constraints aren't met.
func (GetUserFileResponseMultiError) AllErrors ¶
func (m GetUserFileResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserFileResponseMultiError) Error ¶
func (m GetUserFileResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserFileResponseValidationError ¶
type GetUserFileResponseValidationError struct {
// contains filtered or unexported fields
}
GetUserFileResponseValidationError is the validation error returned by GetUserFileResponse.Validate if the designated constraints aren't met.
func (GetUserFileResponseValidationError) Cause ¶
func (e GetUserFileResponseValidationError) Cause() error
Cause function returns cause value.
func (GetUserFileResponseValidationError) Error ¶
func (e GetUserFileResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserFileResponseValidationError) ErrorName ¶
func (e GetUserFileResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserFileResponseValidationError) Field ¶
func (e GetUserFileResponseValidationError) Field() string
Field function returns field value.
func (GetUserFileResponseValidationError) Key ¶
func (e GetUserFileResponseValidationError) Key() bool
Key function returns key value.
func (GetUserFileResponseValidationError) Reason ¶
func (e GetUserFileResponseValidationError) Reason() string
Reason function returns reason value.
type ListFileRequest ¶
type ListFileRequest struct {
DirectoryId uint32 `protobuf:"varint,2,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
Page uint32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
PageSize uint32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// contains filtered or unexported fields
}
---- ListFile(按目录) ----
func (*ListFileRequest) Descriptor
deprecated
func (*ListFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListFileRequest.ProtoReflect.Descriptor instead.
func (*ListFileRequest) GetDirectoryId ¶
func (x *ListFileRequest) GetDirectoryId() uint32
func (*ListFileRequest) GetPage ¶
func (x *ListFileRequest) GetPage() uint32
func (*ListFileRequest) GetPageSize ¶
func (x *ListFileRequest) GetPageSize() uint32
func (*ListFileRequest) ProtoMessage ¶
func (*ListFileRequest) ProtoMessage()
func (*ListFileRequest) ProtoReflect ¶
func (x *ListFileRequest) ProtoReflect() protoreflect.Message
func (*ListFileRequest) Reset ¶
func (x *ListFileRequest) Reset()
func (*ListFileRequest) String ¶
func (x *ListFileRequest) String() string
func (*ListFileRequest) Validate ¶
func (m *ListFileRequest) Validate() error
Validate checks the field values on ListFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListFileRequest) ValidateAll ¶
func (m *ListFileRequest) ValidateAll() error
ValidateAll checks the field values on ListFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListFileRequestMultiError, or nil if none found.
type ListFileRequestMultiError ¶
type ListFileRequestMultiError []error
ListFileRequestMultiError is an error wrapping multiple validation errors returned by ListFileRequest.ValidateAll() if the designated constraints aren't met.
func (ListFileRequestMultiError) AllErrors ¶
func (m ListFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListFileRequestMultiError) Error ¶
func (m ListFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListFileRequestValidationError ¶
type ListFileRequestValidationError struct {
// contains filtered or unexported fields
}
ListFileRequestValidationError is the validation error returned by ListFileRequest.Validate if the designated constraints aren't met.
func (ListFileRequestValidationError) Cause ¶
func (e ListFileRequestValidationError) Cause() error
Cause function returns cause value.
func (ListFileRequestValidationError) Error ¶
func (e ListFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListFileRequestValidationError) ErrorName ¶
func (e ListFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListFileRequestValidationError) Field ¶
func (e ListFileRequestValidationError) Field() string
Field function returns field value.
func (ListFileRequestValidationError) Key ¶
func (e ListFileRequestValidationError) Key() bool
Key function returns key value.
func (ListFileRequestValidationError) Reason ¶
func (e ListFileRequestValidationError) Reason() string
Reason function returns reason value.
type ListFileResponse ¶
type ListFileResponse struct {
List []*FileItem `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
Total uint32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
// contains filtered or unexported fields
}
func (*ListFileResponse) Descriptor
deprecated
func (*ListFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListFileResponse.ProtoReflect.Descriptor instead.
func (*ListFileResponse) GetList ¶
func (x *ListFileResponse) GetList() []*FileItem
func (*ListFileResponse) GetTotal ¶
func (x *ListFileResponse) GetTotal() uint32
func (*ListFileResponse) ProtoMessage ¶
func (*ListFileResponse) ProtoMessage()
func (*ListFileResponse) ProtoReflect ¶
func (x *ListFileResponse) ProtoReflect() protoreflect.Message
func (*ListFileResponse) Reset ¶
func (x *ListFileResponse) Reset()
func (*ListFileResponse) String ¶
func (x *ListFileResponse) String() string
func (*ListFileResponse) Validate ¶
func (m *ListFileResponse) Validate() error
Validate checks the field values on ListFileResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListFileResponse) ValidateAll ¶
func (m *ListFileResponse) ValidateAll() error
ValidateAll checks the field values on ListFileResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListFileResponseMultiError, or nil if none found.
type ListFileResponseMultiError ¶
type ListFileResponseMultiError []error
ListFileResponseMultiError is an error wrapping multiple validation errors returned by ListFileResponse.ValidateAll() if the designated constraints aren't met.
func (ListFileResponseMultiError) AllErrors ¶
func (m ListFileResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListFileResponseMultiError) Error ¶
func (m ListFileResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListFileResponseValidationError ¶
type ListFileResponseValidationError struct {
// contains filtered or unexported fields
}
ListFileResponseValidationError is the validation error returned by ListFileResponse.Validate if the designated constraints aren't met.
func (ListFileResponseValidationError) Cause ¶
func (e ListFileResponseValidationError) Cause() error
Cause function returns cause value.
func (ListFileResponseValidationError) Error ¶
func (e ListFileResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListFileResponseValidationError) ErrorName ¶
func (e ListFileResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListFileResponseValidationError) Field ¶
func (e ListFileResponseValidationError) Field() string
Field function returns field value.
func (ListFileResponseValidationError) Key ¶
func (e ListFileResponseValidationError) Key() bool
Key function returns key value.
func (ListFileResponseValidationError) Reason ¶
func (e ListFileResponseValidationError) Reason() string
Reason function returns reason value.
type ListUserFileRequest ¶
type ListUserFileRequest struct {
UserId uint32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Page uint32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
PageSize uint32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// contains filtered or unexported fields
}
---- ListUserFile ----
func (*ListUserFileRequest) Descriptor
deprecated
func (*ListUserFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUserFileRequest.ProtoReflect.Descriptor instead.
func (*ListUserFileRequest) GetPage ¶
func (x *ListUserFileRequest) GetPage() uint32
func (*ListUserFileRequest) GetPageSize ¶
func (x *ListUserFileRequest) GetPageSize() uint32
func (*ListUserFileRequest) GetUserId ¶
func (x *ListUserFileRequest) GetUserId() uint32
func (*ListUserFileRequest) ProtoMessage ¶
func (*ListUserFileRequest) ProtoMessage()
func (*ListUserFileRequest) ProtoReflect ¶
func (x *ListUserFileRequest) ProtoReflect() protoreflect.Message
func (*ListUserFileRequest) Reset ¶
func (x *ListUserFileRequest) Reset()
func (*ListUserFileRequest) String ¶
func (x *ListUserFileRequest) String() string
func (*ListUserFileRequest) Validate ¶
func (m *ListUserFileRequest) Validate() error
Validate checks the field values on ListUserFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListUserFileRequest) ValidateAll ¶
func (m *ListUserFileRequest) ValidateAll() error
ValidateAll checks the field values on ListUserFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListUserFileRequestMultiError, or nil if none found.
type ListUserFileRequestMultiError ¶
type ListUserFileRequestMultiError []error
ListUserFileRequestMultiError is an error wrapping multiple validation errors returned by ListUserFileRequest.ValidateAll() if the designated constraints aren't met.
func (ListUserFileRequestMultiError) AllErrors ¶
func (m ListUserFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserFileRequestMultiError) Error ¶
func (m ListUserFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserFileRequestValidationError ¶
type ListUserFileRequestValidationError struct {
// contains filtered or unexported fields
}
ListUserFileRequestValidationError is the validation error returned by ListUserFileRequest.Validate if the designated constraints aren't met.
func (ListUserFileRequestValidationError) Cause ¶
func (e ListUserFileRequestValidationError) Cause() error
Cause function returns cause value.
func (ListUserFileRequestValidationError) Error ¶
func (e ListUserFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserFileRequestValidationError) ErrorName ¶
func (e ListUserFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserFileRequestValidationError) Field ¶
func (e ListUserFileRequestValidationError) Field() string
Field function returns field value.
func (ListUserFileRequestValidationError) Key ¶
func (e ListUserFileRequestValidationError) Key() bool
Key function returns key value.
func (ListUserFileRequestValidationError) Reason ¶
func (e ListUserFileRequestValidationError) Reason() string
Reason function returns reason value.
type ListUserFileResponse ¶
type ListUserFileResponse struct {
List []*FileItem `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
Total uint32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
// contains filtered or unexported fields
}
func (*ListUserFileResponse) Descriptor
deprecated
func (*ListUserFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListUserFileResponse.ProtoReflect.Descriptor instead.
func (*ListUserFileResponse) GetList ¶
func (x *ListUserFileResponse) GetList() []*FileItem
func (*ListUserFileResponse) GetTotal ¶
func (x *ListUserFileResponse) GetTotal() uint32
func (*ListUserFileResponse) ProtoMessage ¶
func (*ListUserFileResponse) ProtoMessage()
func (*ListUserFileResponse) ProtoReflect ¶
func (x *ListUserFileResponse) ProtoReflect() protoreflect.Message
func (*ListUserFileResponse) Reset ¶
func (x *ListUserFileResponse) Reset()
func (*ListUserFileResponse) String ¶
func (x *ListUserFileResponse) String() string
func (*ListUserFileResponse) Validate ¶
func (m *ListUserFileResponse) Validate() error
Validate checks the field values on ListUserFileResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListUserFileResponse) ValidateAll ¶
func (m *ListUserFileResponse) ValidateAll() error
ValidateAll checks the field values on ListUserFileResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListUserFileResponseMultiError, or nil if none found.
type ListUserFileResponseMultiError ¶
type ListUserFileResponseMultiError []error
ListUserFileResponseMultiError is an error wrapping multiple validation errors returned by ListUserFileResponse.ValidateAll() if the designated constraints aren't met.
func (ListUserFileResponseMultiError) AllErrors ¶
func (m ListUserFileResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserFileResponseMultiError) Error ¶
func (m ListUserFileResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserFileResponseValidationError ¶
type ListUserFileResponseValidationError struct {
// contains filtered or unexported fields
}
ListUserFileResponseValidationError is the validation error returned by ListUserFileResponse.Validate if the designated constraints aren't met.
func (ListUserFileResponseValidationError) Cause ¶
func (e ListUserFileResponseValidationError) Cause() error
Cause function returns cause value.
func (ListUserFileResponseValidationError) Error ¶
func (e ListUserFileResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserFileResponseValidationError) ErrorName ¶
func (e ListUserFileResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserFileResponseValidationError) Field ¶
func (e ListUserFileResponseValidationError) Field() string
Field function returns field value.
func (ListUserFileResponseValidationError) Key ¶
func (e ListUserFileResponseValidationError) Key() bool
Key function returns key value.
func (ListUserFileResponseValidationError) Reason ¶
func (e ListUserFileResponseValidationError) Reason() string
Reason function returns reason value.
type PartURL ¶
type PartURL struct {
PartNumber uint32 `protobuf:"varint,1,opt,name=part_number,json=partNumber,proto3" json:"part_number,omitempty"`
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// contains filtered or unexported fields
}
PartURL 单个分片的预签名上传地址
func (*PartURL) Descriptor
deprecated
func (*PartURL) GetPartNumber ¶
func (*PartURL) ProtoMessage ¶
func (*PartURL) ProtoMessage()
func (*PartURL) ProtoReflect ¶
func (x *PartURL) ProtoReflect() protoreflect.Message
func (*PartURL) Validate ¶
Validate checks the field values on PartURL with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PartURL) ValidateAll ¶
ValidateAll checks the field values on PartURL with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PartURLMultiError, or nil if none found.
type PartURLMultiError ¶
type PartURLMultiError []error
PartURLMultiError is an error wrapping multiple validation errors returned by PartURL.ValidateAll() if the designated constraints aren't met.
func (PartURLMultiError) AllErrors ¶
func (m PartURLMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PartURLMultiError) Error ¶
func (m PartURLMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PartURLValidationError ¶
type PartURLValidationError struct {
// contains filtered or unexported fields
}
PartURLValidationError is the validation error returned by PartURL.Validate if the designated constraints aren't met.
func (PartURLValidationError) Cause ¶
func (e PartURLValidationError) Cause() error
Cause function returns cause value.
func (PartURLValidationError) Error ¶
func (e PartURLValidationError) Error() string
Error satisfies the builtin error interface
func (PartURLValidationError) ErrorName ¶
func (e PartURLValidationError) ErrorName() string
ErrorName returns error name.
func (PartURLValidationError) Field ¶
func (e PartURLValidationError) Field() string
Field function returns field value.
func (PartURLValidationError) Key ¶
func (e PartURLValidationError) Key() bool
Key function returns key value.
func (PartURLValidationError) Reason ¶
func (e PartURLValidationError) Reason() string
Reason function returns reason value.
type PrepareUploadFileRequest ¶
type PrepareUploadFileRequest struct {
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Ext string `protobuf:"bytes,4,opt,name=ext,proto3" json:"ext,omitempty"`
Md5 string `protobuf:"bytes,5,opt,name=md5,proto3" json:"md5,omitempty"`
Size string `protobuf:"bytes,6,opt,name=size,proto3" json:"size,omitempty"`
// contains filtered or unexported fields
}
---- PrepareUploadFile ----
func (*PrepareUploadFileRequest) Descriptor
deprecated
func (*PrepareUploadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use PrepareUploadFileRequest.ProtoReflect.Descriptor instead.
func (*PrepareUploadFileRequest) GetExt ¶
func (x *PrepareUploadFileRequest) GetExt() string
func (*PrepareUploadFileRequest) GetMd5 ¶
func (x *PrepareUploadFileRequest) GetMd5() string
func (*PrepareUploadFileRequest) GetName ¶
func (x *PrepareUploadFileRequest) GetName() string
func (*PrepareUploadFileRequest) GetPath ¶
func (x *PrepareUploadFileRequest) GetPath() string
func (*PrepareUploadFileRequest) GetSize ¶
func (x *PrepareUploadFileRequest) GetSize() string
func (*PrepareUploadFileRequest) ProtoMessage ¶
func (*PrepareUploadFileRequest) ProtoMessage()
func (*PrepareUploadFileRequest) ProtoReflect ¶
func (x *PrepareUploadFileRequest) ProtoReflect() protoreflect.Message
func (*PrepareUploadFileRequest) Reset ¶
func (x *PrepareUploadFileRequest) Reset()
func (*PrepareUploadFileRequest) String ¶
func (x *PrepareUploadFileRequest) String() string
func (*PrepareUploadFileRequest) Validate ¶
func (m *PrepareUploadFileRequest) Validate() error
Validate checks the field values on PrepareUploadFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PrepareUploadFileRequest) ValidateAll ¶
func (m *PrepareUploadFileRequest) ValidateAll() error
ValidateAll checks the field values on PrepareUploadFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PrepareUploadFileRequestMultiError, or nil if none found.
type PrepareUploadFileRequestMultiError ¶
type PrepareUploadFileRequestMultiError []error
PrepareUploadFileRequestMultiError is an error wrapping multiple validation errors returned by PrepareUploadFileRequest.ValidateAll() if the designated constraints aren't met.
func (PrepareUploadFileRequestMultiError) AllErrors ¶
func (m PrepareUploadFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PrepareUploadFileRequestMultiError) Error ¶
func (m PrepareUploadFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PrepareUploadFileRequestValidationError ¶
type PrepareUploadFileRequestValidationError struct {
// contains filtered or unexported fields
}
PrepareUploadFileRequestValidationError is the validation error returned by PrepareUploadFileRequest.Validate if the designated constraints aren't met.
func (PrepareUploadFileRequestValidationError) Cause ¶
func (e PrepareUploadFileRequestValidationError) Cause() error
Cause function returns cause value.
func (PrepareUploadFileRequestValidationError) Error ¶
func (e PrepareUploadFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PrepareUploadFileRequestValidationError) ErrorName ¶
func (e PrepareUploadFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PrepareUploadFileRequestValidationError) Field ¶
func (e PrepareUploadFileRequestValidationError) Field() string
Field function returns field value.
func (PrepareUploadFileRequestValidationError) Key ¶
func (e PrepareUploadFileRequestValidationError) Key() bool
Key function returns key value.
func (PrepareUploadFileRequestValidationError) Reason ¶
func (e PrepareUploadFileRequestValidationError) Reason() string
Reason function returns reason value.
type PrepareUploadFileResponse ¶
type PrepareUploadFileResponse struct {
UploadId string `protobuf:"bytes,1,opt,name=upload_id,json=uploadId,proto3" json:"upload_id,omitempty"`
Md5 string `protobuf:"bytes,2,opt,name=md5,proto3" json:"md5,omitempty"`
ChunkSize uint32 `protobuf:"varint,3,opt,name=chunk_size,json=chunkSize,proto3" json:"chunk_size,omitempty"`
ChunkCount uint32 `protobuf:"varint,4,opt,name=chunk_count,json=chunkCount,proto3" json:"chunk_count,omitempty"`
UploadChunks []uint32 `protobuf:"varint,5,rep,packed,name=upload_chunks,json=uploadChunks,proto3" json:"upload_chunks,omitempty"` // 已传片号;召回命中时非空
Skipped bool `protobuf:"varint,6,opt,name=skipped,proto3" json:"skipped,omitempty"` // 秒传命中
Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"` // 秒传命中时的可读 URL
Key string `protobuf:"bytes,8,opt,name=key,proto3" json:"key,omitempty"` // 对象 key(md5.ext),业务持久化只用它
// contains filtered or unexported fields
}
func (*PrepareUploadFileResponse) Descriptor
deprecated
func (*PrepareUploadFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use PrepareUploadFileResponse.ProtoReflect.Descriptor instead.
func (*PrepareUploadFileResponse) GetChunkCount ¶
func (x *PrepareUploadFileResponse) GetChunkCount() uint32
func (*PrepareUploadFileResponse) GetChunkSize ¶
func (x *PrepareUploadFileResponse) GetChunkSize() uint32
func (*PrepareUploadFileResponse) GetKey ¶
func (x *PrepareUploadFileResponse) GetKey() string
func (*PrepareUploadFileResponse) GetMd5 ¶
func (x *PrepareUploadFileResponse) GetMd5() string
func (*PrepareUploadFileResponse) GetSkipped ¶
func (x *PrepareUploadFileResponse) GetSkipped() bool
func (*PrepareUploadFileResponse) GetUploadChunks ¶
func (x *PrepareUploadFileResponse) GetUploadChunks() []uint32
func (*PrepareUploadFileResponse) GetUploadId ¶
func (x *PrepareUploadFileResponse) GetUploadId() string
func (*PrepareUploadFileResponse) GetUrl ¶
func (x *PrepareUploadFileResponse) GetUrl() string
func (*PrepareUploadFileResponse) ProtoMessage ¶
func (*PrepareUploadFileResponse) ProtoMessage()
func (*PrepareUploadFileResponse) ProtoReflect ¶
func (x *PrepareUploadFileResponse) ProtoReflect() protoreflect.Message
func (*PrepareUploadFileResponse) Reset ¶
func (x *PrepareUploadFileResponse) Reset()
func (*PrepareUploadFileResponse) String ¶
func (x *PrepareUploadFileResponse) String() string
func (*PrepareUploadFileResponse) Validate ¶
func (m *PrepareUploadFileResponse) Validate() error
Validate checks the field values on PrepareUploadFileResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PrepareUploadFileResponse) ValidateAll ¶
func (m *PrepareUploadFileResponse) ValidateAll() error
ValidateAll checks the field values on PrepareUploadFileResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PrepareUploadFileResponseMultiError, or nil if none found.
type PrepareUploadFileResponseMultiError ¶
type PrepareUploadFileResponseMultiError []error
PrepareUploadFileResponseMultiError is an error wrapping multiple validation errors returned by PrepareUploadFileResponse.ValidateAll() if the designated constraints aren't met.
func (PrepareUploadFileResponseMultiError) AllErrors ¶
func (m PrepareUploadFileResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PrepareUploadFileResponseMultiError) Error ¶
func (m PrepareUploadFileResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PrepareUploadFileResponseValidationError ¶
type PrepareUploadFileResponseValidationError struct {
// contains filtered or unexported fields
}
PrepareUploadFileResponseValidationError is the validation error returned by PrepareUploadFileResponse.Validate if the designated constraints aren't met.
func (PrepareUploadFileResponseValidationError) Cause ¶
func (e PrepareUploadFileResponseValidationError) Cause() error
Cause function returns cause value.
func (PrepareUploadFileResponseValidationError) Error ¶
func (e PrepareUploadFileResponseValidationError) Error() string
Error satisfies the builtin error interface
func (PrepareUploadFileResponseValidationError) ErrorName ¶
func (e PrepareUploadFileResponseValidationError) ErrorName() string
ErrorName returns error name.
func (PrepareUploadFileResponseValidationError) Field ¶
func (e PrepareUploadFileResponseValidationError) Field() string
Field function returns field value.
func (PrepareUploadFileResponseValidationError) Key ¶
func (e PrepareUploadFileResponseValidationError) Key() bool
Key function returns key value.
func (PrepareUploadFileResponseValidationError) Reason ¶
func (e PrepareUploadFileResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedFileServiceServer ¶
type UnimplementedFileServiceServer struct{}
UnimplementedFileServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedFileServiceServer) CompleteUpload ¶
func (UnimplementedFileServiceServer) CompleteUpload(context.Context, *CompleteUploadRequest) (*CompleteUploadResponse, error)
func (UnimplementedFileServiceServer) DeleteUserFile ¶
func (UnimplementedFileServiceServer) DeleteUserFile(context.Context, *DeleteUserFileRequest) (*DeleteUserFileResponse, error)
func (UnimplementedFileServiceServer) GetFileURLByKey ¶
func (UnimplementedFileServiceServer) GetFileURLByKey(context.Context, *GetFileURLByKeyRequest) (*GetFileURLByKeyReply, error)
func (UnimplementedFileServiceServer) GetUploadChunkSize ¶
func (UnimplementedFileServiceServer) GetUploadChunkSize(context.Context, *GetUploadChunkSizeRequest) (*GetUploadChunkSizeResponse, error)
func (UnimplementedFileServiceServer) GetUploadPartURLs ¶
func (UnimplementedFileServiceServer) GetUploadPartURLs(context.Context, *GetUploadPartURLsRequest) (*GetUploadPartURLsResponse, error)
func (UnimplementedFileServiceServer) GetUserFile ¶
func (UnimplementedFileServiceServer) GetUserFile(context.Context, *GetUserFileRequest) (*GetUserFileResponse, error)
func (UnimplementedFileServiceServer) ListFile ¶
func (UnimplementedFileServiceServer) ListFile(context.Context, *ListFileRequest) (*ListFileResponse, error)
func (UnimplementedFileServiceServer) ListUserFile ¶
func (UnimplementedFileServiceServer) ListUserFile(context.Context, *ListUserFileRequest) (*ListUserFileResponse, error)
func (UnimplementedFileServiceServer) PrepareUploadFile ¶
func (UnimplementedFileServiceServer) PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileResponse, error)
func (UnimplementedFileServiceServer) UpdateUserFile ¶
func (UnimplementedFileServiceServer) UpdateUserFile(context.Context, *UpdateUserFileRequest) (*UpdateUserFileResponse, error)
func (UnimplementedFileServiceServer) UploadFileByURL ¶
func (UnimplementedFileServiceServer) UploadFileByURL(context.Context, *UploadFileByURLRequest) (*UploadFileByURLResponse, error)
type UnsafeFileServiceServer ¶
type UnsafeFileServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFileServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FileServiceServer will result in compilation errors.
type UpdateUserFileRequest ¶
type UpdateUserFileRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"`
DirectoryId *uint32 `protobuf:"varint,4,opt,name=directory_id,json=directoryId,proto3,oneof" json:"directory_id,omitempty"`
// contains filtered or unexported fields
}
---- UpdateUserFile ---- app 取自请求上下文(X-App-Key),此处仅 id 固定必传;name/directory_id optional——不传 = 该列不改,传了才校验。
func (*UpdateUserFileRequest) Descriptor
deprecated
func (*UpdateUserFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserFileRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserFileRequest) GetDirectoryId ¶
func (x *UpdateUserFileRequest) GetDirectoryId() uint32
func (*UpdateUserFileRequest) GetId ¶
func (x *UpdateUserFileRequest) GetId() uint32
func (*UpdateUserFileRequest) GetName ¶
func (x *UpdateUserFileRequest) GetName() string
func (*UpdateUserFileRequest) ProtoMessage ¶
func (*UpdateUserFileRequest) ProtoMessage()
func (*UpdateUserFileRequest) ProtoReflect ¶
func (x *UpdateUserFileRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserFileRequest) Reset ¶
func (x *UpdateUserFileRequest) Reset()
func (*UpdateUserFileRequest) String ¶
func (x *UpdateUserFileRequest) String() string
func (*UpdateUserFileRequest) Validate ¶
func (m *UpdateUserFileRequest) Validate() error
Validate checks the field values on UpdateUserFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateUserFileRequest) ValidateAll ¶
func (m *UpdateUserFileRequest) ValidateAll() error
ValidateAll checks the field values on UpdateUserFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserFileRequestMultiError, or nil if none found.
type UpdateUserFileRequestMultiError ¶
type UpdateUserFileRequestMultiError []error
UpdateUserFileRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserFileRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateUserFileRequestMultiError) AllErrors ¶
func (m UpdateUserFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserFileRequestMultiError) Error ¶
func (m UpdateUserFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserFileRequestValidationError ¶
type UpdateUserFileRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateUserFileRequestValidationError is the validation error returned by UpdateUserFileRequest.Validate if the designated constraints aren't met.
func (UpdateUserFileRequestValidationError) Cause ¶
func (e UpdateUserFileRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserFileRequestValidationError) Error ¶
func (e UpdateUserFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserFileRequestValidationError) ErrorName ¶
func (e UpdateUserFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserFileRequestValidationError) Field ¶
func (e UpdateUserFileRequestValidationError) Field() string
Field function returns field value.
func (UpdateUserFileRequestValidationError) Key ¶
func (e UpdateUserFileRequestValidationError) Key() bool
Key function returns key value.
func (UpdateUserFileRequestValidationError) Reason ¶
func (e UpdateUserFileRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateUserFileResponse ¶
type UpdateUserFileResponse struct {
File *FileItem `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateUserFileResponse) Descriptor
deprecated
func (*UpdateUserFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserFileResponse.ProtoReflect.Descriptor instead.
func (*UpdateUserFileResponse) GetFile ¶
func (x *UpdateUserFileResponse) GetFile() *FileItem
func (*UpdateUserFileResponse) ProtoMessage ¶
func (*UpdateUserFileResponse) ProtoMessage()
func (*UpdateUserFileResponse) ProtoReflect ¶
func (x *UpdateUserFileResponse) ProtoReflect() protoreflect.Message
func (*UpdateUserFileResponse) Reset ¶
func (x *UpdateUserFileResponse) Reset()
func (*UpdateUserFileResponse) String ¶
func (x *UpdateUserFileResponse) String() string
func (*UpdateUserFileResponse) Validate ¶
func (m *UpdateUserFileResponse) Validate() error
Validate checks the field values on UpdateUserFileResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateUserFileResponse) ValidateAll ¶
func (m *UpdateUserFileResponse) ValidateAll() error
ValidateAll checks the field values on UpdateUserFileResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserFileResponseMultiError, or nil if none found.
type UpdateUserFileResponseMultiError ¶
type UpdateUserFileResponseMultiError []error
UpdateUserFileResponseMultiError is an error wrapping multiple validation errors returned by UpdateUserFileResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateUserFileResponseMultiError) AllErrors ¶
func (m UpdateUserFileResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserFileResponseMultiError) Error ¶
func (m UpdateUserFileResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserFileResponseValidationError ¶
type UpdateUserFileResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateUserFileResponseValidationError is the validation error returned by UpdateUserFileResponse.Validate if the designated constraints aren't met.
func (UpdateUserFileResponseValidationError) Cause ¶
func (e UpdateUserFileResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserFileResponseValidationError) Error ¶
func (e UpdateUserFileResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserFileResponseValidationError) ErrorName ¶
func (e UpdateUserFileResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserFileResponseValidationError) Field ¶
func (e UpdateUserFileResponseValidationError) Field() string
Field function returns field value.
func (UpdateUserFileResponseValidationError) Key ¶
func (e UpdateUserFileResponseValidationError) Key() bool
Key function returns key value.
func (UpdateUserFileResponseValidationError) Reason ¶
func (e UpdateUserFileResponseValidationError) Reason() string
Reason function returns reason value.
type UploadFileByURLRequest ¶
type UploadFileByURLRequest struct {
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
DirectoryPath *string `protobuf:"bytes,3,opt,name=directory_path,json=directoryPath,proto3,oneof" json:"directory_path,omitempty"`
Store string `protobuf:"bytes,4,opt,name=store,proto3" json:"store,omitempty"`
Referer *string `protobuf:"bytes,5,opt,name=referer,proto3,oneof" json:"referer,omitempty"`
// contains filtered or unexported fields
}
---- UploadFileByURL ---- 服务端从 URL 下载并上传(生成内容落库);name 含后缀(如 a.png),ext 由其推导; directory_path 不传 = 根目录;store 仅透传,实际落桶以应用配置(AppConfig.store_keyword)为准。
func (*UploadFileByURLRequest) Descriptor
deprecated
func (*UploadFileByURLRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileByURLRequest.ProtoReflect.Descriptor instead.
func (*UploadFileByURLRequest) GetDirectoryPath ¶
func (x *UploadFileByURLRequest) GetDirectoryPath() string
func (*UploadFileByURLRequest) GetName ¶
func (x *UploadFileByURLRequest) GetName() string
func (*UploadFileByURLRequest) GetReferer ¶
func (x *UploadFileByURLRequest) GetReferer() string
func (*UploadFileByURLRequest) GetStore ¶
func (x *UploadFileByURLRequest) GetStore() string
func (*UploadFileByURLRequest) GetUrl ¶
func (x *UploadFileByURLRequest) GetUrl() string
func (*UploadFileByURLRequest) ProtoMessage ¶
func (*UploadFileByURLRequest) ProtoMessage()
func (*UploadFileByURLRequest) ProtoReflect ¶
func (x *UploadFileByURLRequest) ProtoReflect() protoreflect.Message
func (*UploadFileByURLRequest) Reset ¶
func (x *UploadFileByURLRequest) Reset()
func (*UploadFileByURLRequest) String ¶
func (x *UploadFileByURLRequest) String() string
func (*UploadFileByURLRequest) Validate ¶
func (m *UploadFileByURLRequest) Validate() error
Validate checks the field values on UploadFileByURLRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UploadFileByURLRequest) ValidateAll ¶
func (m *UploadFileByURLRequest) ValidateAll() error
ValidateAll checks the field values on UploadFileByURLRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UploadFileByURLRequestMultiError, or nil if none found.
type UploadFileByURLRequestMultiError ¶
type UploadFileByURLRequestMultiError []error
UploadFileByURLRequestMultiError is an error wrapping multiple validation errors returned by UploadFileByURLRequest.ValidateAll() if the designated constraints aren't met.
func (UploadFileByURLRequestMultiError) AllErrors ¶
func (m UploadFileByURLRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UploadFileByURLRequestMultiError) Error ¶
func (m UploadFileByURLRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UploadFileByURLRequestValidationError ¶
type UploadFileByURLRequestValidationError struct {
// contains filtered or unexported fields
}
UploadFileByURLRequestValidationError is the validation error returned by UploadFileByURLRequest.Validate if the designated constraints aren't met.
func (UploadFileByURLRequestValidationError) Cause ¶
func (e UploadFileByURLRequestValidationError) Cause() error
Cause function returns cause value.
func (UploadFileByURLRequestValidationError) Error ¶
func (e UploadFileByURLRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UploadFileByURLRequestValidationError) ErrorName ¶
func (e UploadFileByURLRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UploadFileByURLRequestValidationError) Field ¶
func (e UploadFileByURLRequestValidationError) Field() string
Field function returns field value.
func (UploadFileByURLRequestValidationError) Key ¶
func (e UploadFileByURLRequestValidationError) Key() bool
Key function returns key value.
func (UploadFileByURLRequestValidationError) Reason ¶
func (e UploadFileByURLRequestValidationError) Reason() string
Reason function returns reason value.
type UploadFileByURLResponse ¶
type UploadFileByURLResponse struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // 对象 key(md5.ext),内容指纹唯一、持久可引用(业务存 key,不存临时 URL)
// contains filtered or unexported fields
}
func (*UploadFileByURLResponse) Descriptor
deprecated
func (*UploadFileByURLResponse) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileByURLResponse.ProtoReflect.Descriptor instead.
func (*UploadFileByURLResponse) GetKey ¶
func (x *UploadFileByURLResponse) GetKey() string
func (*UploadFileByURLResponse) ProtoMessage ¶
func (*UploadFileByURLResponse) ProtoMessage()
func (*UploadFileByURLResponse) ProtoReflect ¶
func (x *UploadFileByURLResponse) ProtoReflect() protoreflect.Message
func (*UploadFileByURLResponse) Reset ¶
func (x *UploadFileByURLResponse) Reset()
func (*UploadFileByURLResponse) String ¶
func (x *UploadFileByURLResponse) String() string
func (*UploadFileByURLResponse) Validate ¶
func (m *UploadFileByURLResponse) Validate() error
Validate checks the field values on UploadFileByURLResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UploadFileByURLResponse) ValidateAll ¶
func (m *UploadFileByURLResponse) ValidateAll() error
ValidateAll checks the field values on UploadFileByURLResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UploadFileByURLResponseMultiError, or nil if none found.
type UploadFileByURLResponseMultiError ¶
type UploadFileByURLResponseMultiError []error
UploadFileByURLResponseMultiError is an error wrapping multiple validation errors returned by UploadFileByURLResponse.ValidateAll() if the designated constraints aren't met.
func (UploadFileByURLResponseMultiError) AllErrors ¶
func (m UploadFileByURLResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UploadFileByURLResponseMultiError) Error ¶
func (m UploadFileByURLResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UploadFileByURLResponseValidationError ¶
type UploadFileByURLResponseValidationError struct {
// contains filtered or unexported fields
}
UploadFileByURLResponseValidationError is the validation error returned by UploadFileByURLResponse.Validate if the designated constraints aren't met.
func (UploadFileByURLResponseValidationError) Cause ¶
func (e UploadFileByURLResponseValidationError) Cause() error
Cause function returns cause value.
func (UploadFileByURLResponseValidationError) Error ¶
func (e UploadFileByURLResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UploadFileByURLResponseValidationError) ErrorName ¶
func (e UploadFileByURLResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UploadFileByURLResponseValidationError) Field ¶
func (e UploadFileByURLResponseValidationError) Field() string
Field function returns field value.
func (UploadFileByURLResponseValidationError) Key ¶
func (e UploadFileByURLResponseValidationError) Key() bool
Key function returns key value.
func (UploadFileByURLResponseValidationError) Reason ¶
func (e UploadFileByURLResponseValidationError) Reason() string
Reason function returns reason value.