Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterFileHTTPServer(s *http.Server, srv FileHTTPServer)
- func RegisterFileServer(s grpc.ServiceRegistrar, srv FileServer)
- type DeleteUserFileReply
- func (*DeleteUserFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserFileReply) GetTotal() uint32
- func (*DeleteUserFileReply) ProtoMessage()
- func (x *DeleteUserFileReply) ProtoReflect() protoreflect.Message
- func (x *DeleteUserFileReply) Reset()
- func (x *DeleteUserFileReply) String() string
- func (m *DeleteUserFileReply) Validate() error
- func (m *DeleteUserFileReply) ValidateAll() error
- type DeleteUserFileReplyMultiError
- type DeleteUserFileReplyValidationError
- func (e DeleteUserFileReplyValidationError) Cause() error
- func (e DeleteUserFileReplyValidationError) Error() string
- func (e DeleteUserFileReplyValidationError) ErrorName() string
- func (e DeleteUserFileReplyValidationError) Field() string
- func (e DeleteUserFileReplyValidationError) Key() bool
- func (e DeleteUserFileReplyValidationError) Reason() string
- type DeleteUserFileRequest
- func (*DeleteUserFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserFileRequest) GetIds() []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 DownloadFileReply
- func (*DownloadFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadFileReply) GetData() []byte
- func (x *DownloadFileReply) GetMime() string
- func (*DownloadFileReply) ProtoMessage()
- func (x *DownloadFileReply) ProtoReflect() protoreflect.Message
- func (x *DownloadFileReply) Reset()
- func (x *DownloadFileReply) String() string
- func (m *DownloadFileReply) Validate() error
- func (m *DownloadFileReply) ValidateAll() error
- type DownloadFileReplyMultiError
- type DownloadFileReplyValidationError
- func (e DownloadFileReplyValidationError) Cause() error
- func (e DownloadFileReplyValidationError) Error() string
- func (e DownloadFileReplyValidationError) ErrorName() string
- func (e DownloadFileReplyValidationError) Field() string
- func (e DownloadFileReplyValidationError) Key() bool
- func (e DownloadFileReplyValidationError) Reason() string
- type DownloadFileRequest
- func (*DownloadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadFileRequest) GetExpire() string
- func (x *DownloadFileRequest) GetKey() string
- func (x *DownloadFileRequest) GetSaveName() string
- func (x *DownloadFileRequest) GetSign() string
- func (*DownloadFileRequest) ProtoMessage()
- func (x *DownloadFileRequest) ProtoReflect() protoreflect.Message
- func (x *DownloadFileRequest) Reset()
- func (x *DownloadFileRequest) String() string
- func (m *DownloadFileRequest) Validate() error
- func (m *DownloadFileRequest) ValidateAll() error
- type DownloadFileRequestMultiError
- type DownloadFileRequestValidationError
- func (e DownloadFileRequestValidationError) Cause() error
- func (e DownloadFileRequestValidationError) Error() string
- func (e DownloadFileRequestValidationError) ErrorName() string
- func (e DownloadFileRequestValidationError) Field() string
- func (e DownloadFileRequestValidationError) Key() bool
- func (e DownloadFileRequestValidationError) Reason() string
- type DownloadTargetFileRequest
- func (*DownloadTargetFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadTargetFileRequest) GetKey() string
- func (x *DownloadTargetFileRequest) GetSaveName() string
- func (*DownloadTargetFileRequest) ProtoMessage()
- func (x *DownloadTargetFileRequest) ProtoReflect() protoreflect.Message
- func (x *DownloadTargetFileRequest) Reset()
- func (x *DownloadTargetFileRequest) String() string
- func (m *DownloadTargetFileRequest) Validate() error
- func (m *DownloadTargetFileRequest) ValidateAll() error
- type DownloadTargetFileRequestMultiError
- type DownloadTargetFileRequestValidationError
- func (e DownloadTargetFileRequestValidationError) Cause() error
- func (e DownloadTargetFileRequestValidationError) Error() string
- func (e DownloadTargetFileRequestValidationError) ErrorName() string
- func (e DownloadTargetFileRequestValidationError) Field() string
- func (e DownloadTargetFileRequestValidationError) Key() bool
- func (e DownloadTargetFileRequestValidationError) Reason() string
- type FileClient
- type FileHTTPClient
- type FileHTTPClientImpl
- func (c *FileHTTPClientImpl) DeleteUserFile(ctx context.Context, in *DeleteUserFileRequest, opts ...http.CallOption) (*DeleteUserFileReply, error)
- func (c *FileHTTPClientImpl) GetUserFile(ctx context.Context, in *GetUserFileRequest, opts ...http.CallOption) (*GetUserFileReply, error)
- func (c *FileHTTPClientImpl) ListUserFile(ctx context.Context, in *ListUserFileRequest, opts ...http.CallOption) (*ListUserFileReply, error)
- func (c *FileHTTPClientImpl) PrepareUploadFile(ctx context.Context, in *PrepareUploadFileRequest, opts ...http.CallOption) (*PrepareUploadFileReply, error)
- func (c *FileHTTPClientImpl) UpdateUserFile(ctx context.Context, in *UpdateUserFileRequest, opts ...http.CallOption) (*UpdateUserFileReply, error)
- type FileHTTPServer
- type FileServer
- type File_GetFileBytesClient
- type File_GetFileBytesServer
- type GetFileBytesReply
- func (*GetFileBytesReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetFileBytesReply) GetData() []byte
- func (*GetFileBytesReply) ProtoMessage()
- func (x *GetFileBytesReply) ProtoReflect() protoreflect.Message
- func (x *GetFileBytesReply) Reset()
- func (x *GetFileBytesReply) String() string
- func (m *GetFileBytesReply) Validate() error
- func (m *GetFileBytesReply) ValidateAll() error
- type GetFileBytesReplyMultiError
- type GetFileBytesReplyValidationError
- func (e GetFileBytesReplyValidationError) Cause() error
- func (e GetFileBytesReplyValidationError) Error() string
- func (e GetFileBytesReplyValidationError) ErrorName() string
- func (e GetFileBytesReplyValidationError) Field() string
- func (e GetFileBytesReplyValidationError) Key() bool
- func (e GetFileBytesReplyValidationError) Reason() string
- type GetFileBytesRequest
- func (*GetFileBytesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFileBytesRequest) GetKey() string
- func (*GetFileBytesRequest) ProtoMessage()
- func (x *GetFileBytesRequest) ProtoReflect() protoreflect.Message
- func (x *GetFileBytesRequest) Reset()
- func (x *GetFileBytesRequest) String() string
- func (m *GetFileBytesRequest) Validate() error
- func (m *GetFileBytesRequest) ValidateAll() error
- type GetFileBytesRequestMultiError
- type GetFileBytesRequestValidationError
- func (e GetFileBytesRequestValidationError) Cause() error
- func (e GetFileBytesRequestValidationError) Error() string
- func (e GetFileBytesRequestValidationError) ErrorName() string
- func (e GetFileBytesRequestValidationError) Field() string
- func (e GetFileBytesRequestValidationError) Key() bool
- func (e GetFileBytesRequestValidationError) Reason() string
- type GetUserFileReply
- func (*GetUserFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserFileReply) GetCreatedAt() uint32
- func (x *GetUserFileReply) GetDirectoryId() uint32
- func (x *GetUserFileReply) GetId() uint32
- func (x *GetUserFileReply) GetKey() string
- func (x *GetUserFileReply) GetName() string
- func (x *GetUserFileReply) GetSha() string
- func (x *GetUserFileReply) GetSize() uint32
- func (x *GetUserFileReply) GetType() string
- func (x *GetUserFileReply) GetUpdatedAt() uint32
- func (*GetUserFileReply) ProtoMessage()
- func (x *GetUserFileReply) ProtoReflect() protoreflect.Message
- func (x *GetUserFileReply) Reset()
- func (x *GetUserFileReply) String() string
- func (m *GetUserFileReply) Validate() error
- func (m *GetUserFileReply) ValidateAll() error
- type GetUserFileReplyMultiError
- type GetUserFileReplyValidationError
- func (e GetUserFileReplyValidationError) Cause() error
- func (e GetUserFileReplyValidationError) Error() string
- func (e GetUserFileReplyValidationError) ErrorName() string
- func (e GetUserFileReplyValidationError) Field() string
- func (e GetUserFileReplyValidationError) Key() bool
- func (e GetUserFileReplyValidationError) Reason() string
- type GetUserFileRequest
- func (*GetUserFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserFileRequest) GetDirectory() string
- func (x *GetUserFileRequest) GetId() uint32
- func (x *GetUserFileRequest) GetKey() string
- 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 ListUserFileReply
- func (*ListUserFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserFileReply) GetList() []*ListUserFileReply_File
- func (x *ListUserFileReply) GetTotal() uint32
- func (*ListUserFileReply) ProtoMessage()
- func (x *ListUserFileReply) ProtoReflect() protoreflect.Message
- func (x *ListUserFileReply) Reset()
- func (x *ListUserFileReply) String() string
- func (m *ListUserFileReply) Validate() error
- func (m *ListUserFileReply) ValidateAll() error
- type ListUserFileReplyMultiError
- type ListUserFileReplyValidationError
- func (e ListUserFileReplyValidationError) Cause() error
- func (e ListUserFileReplyValidationError) Error() string
- func (e ListUserFileReplyValidationError) ErrorName() string
- func (e ListUserFileReplyValidationError) Field() string
- func (e ListUserFileReplyValidationError) Key() bool
- func (e ListUserFileReplyValidationError) Reason() string
- type ListUserFileReply_File
- func (*ListUserFileReply_File) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserFileReply_File) GetCreatedAt() uint32
- func (x *ListUserFileReply_File) GetDirectoryId() uint32
- func (x *ListUserFileReply_File) GetId() uint32
- func (x *ListUserFileReply_File) GetKey() string
- func (x *ListUserFileReply_File) GetName() string
- func (x *ListUserFileReply_File) GetSha() string
- func (x *ListUserFileReply_File) GetSize() uint32
- func (x *ListUserFileReply_File) GetType() string
- func (x *ListUserFileReply_File) GetUpdatedAt() uint32
- func (*ListUserFileReply_File) ProtoMessage()
- func (x *ListUserFileReply_File) ProtoReflect() protoreflect.Message
- func (x *ListUserFileReply_File) Reset()
- func (x *ListUserFileReply_File) String() string
- func (m *ListUserFileReply_File) Validate() error
- func (m *ListUserFileReply_File) ValidateAll() error
- type ListUserFileReply_FileMultiError
- type ListUserFileReply_FileValidationError
- func (e ListUserFileReply_FileValidationError) Cause() error
- func (e ListUserFileReply_FileValidationError) Error() string
- func (e ListUserFileReply_FileValidationError) ErrorName() string
- func (e ListUserFileReply_FileValidationError) Field() string
- func (e ListUserFileReply_FileValidationError) Key() bool
- func (e ListUserFileReply_FileValidationError) Reason() string
- type ListUserFileRequest
- func (*ListUserFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserFileRequest) GetDirectoryId() uint32
- func (x *ListUserFileRequest) GetKeyList() []string
- func (x *ListUserFileRequest) GetName() string
- func (x *ListUserFileRequest) GetOrder() string
- func (x *ListUserFileRequest) GetOrderBy() string
- func (x *ListUserFileRequest) GetPage() uint32
- func (x *ListUserFileRequest) GetPageSize() uint32
- func (x *ListUserFileRequest) GetStatus() string
- 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 PrepareUploadFileReply
- func (*PrepareUploadFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *PrepareUploadFileReply) GetChunkCount() uint32
- func (x *PrepareUploadFileReply) GetChunkSize() uint32
- func (x *PrepareUploadFileReply) GetKey() string
- func (x *PrepareUploadFileReply) GetSha() string
- func (x *PrepareUploadFileReply) GetUploadChunks() []uint32
- func (x *PrepareUploadFileReply) GetUploadId() string
- func (x *PrepareUploadFileReply) GetUploaded() bool
- func (*PrepareUploadFileReply) ProtoMessage()
- func (x *PrepareUploadFileReply) ProtoReflect() protoreflect.Message
- func (x *PrepareUploadFileReply) Reset()
- func (x *PrepareUploadFileReply) String() string
- func (m *PrepareUploadFileReply) Validate() error
- func (m *PrepareUploadFileReply) ValidateAll() error
- type PrepareUploadFileReplyMultiError
- type PrepareUploadFileReplyValidationError
- func (e PrepareUploadFileReplyValidationError) Cause() error
- func (e PrepareUploadFileReplyValidationError) Error() string
- func (e PrepareUploadFileReplyValidationError) ErrorName() string
- func (e PrepareUploadFileReplyValidationError) Field() string
- func (e PrepareUploadFileReplyValidationError) Key() bool
- func (e PrepareUploadFileReplyValidationError) Reason() string
- type PrepareUploadFileRequest
- func (*PrepareUploadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PrepareUploadFileRequest) GetDirectoryId() uint32
- func (x *PrepareUploadFileRequest) GetDirectoryPath() string
- func (x *PrepareUploadFileRequest) GetName() string
- func (x *PrepareUploadFileRequest) GetSha() string
- func (x *PrepareUploadFileRequest) GetSize() uint32
- func (x *PrepareUploadFileRequest) GetStore() 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 StaticFileReply
- func (*StaticFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *StaticFileReply) GetData() []byte
- func (x *StaticFileReply) GetMime() string
- func (*StaticFileReply) ProtoMessage()
- func (x *StaticFileReply) ProtoReflect() protoreflect.Message
- func (x *StaticFileReply) Reset()
- func (x *StaticFileReply) String() string
- func (m *StaticFileReply) Validate() error
- func (m *StaticFileReply) ValidateAll() error
- type StaticFileReplyMultiError
- type StaticFileReplyValidationError
- func (e StaticFileReplyValidationError) Cause() error
- func (e StaticFileReplyValidationError) Error() string
- func (e StaticFileReplyValidationError) ErrorName() string
- func (e StaticFileReplyValidationError) Field() string
- func (e StaticFileReplyValidationError) Key() bool
- func (e StaticFileReplyValidationError) Reason() string
- type StaticFileRequest
- func (*StaticFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StaticFileRequest) GetDownload() bool
- func (x *StaticFileRequest) GetExpire() string
- func (x *StaticFileRequest) GetHeight() uint32
- func (x *StaticFileRequest) GetKey() string
- func (x *StaticFileRequest) GetMode() string
- func (x *StaticFileRequest) GetSaveName() string
- func (x *StaticFileRequest) GetSign() string
- func (x *StaticFileRequest) GetStore() string
- func (x *StaticFileRequest) GetWidth() uint32
- func (*StaticFileRequest) ProtoMessage()
- func (x *StaticFileRequest) ProtoReflect() protoreflect.Message
- func (x *StaticFileRequest) Reset()
- func (x *StaticFileRequest) String() string
- func (m *StaticFileRequest) Validate() error
- func (m *StaticFileRequest) ValidateAll() error
- type StaticFileRequestMultiError
- type StaticFileRequestValidationError
- func (e StaticFileRequestValidationError) Cause() error
- func (e StaticFileRequestValidationError) Error() string
- func (e StaticFileRequestValidationError) ErrorName() string
- func (e StaticFileRequestValidationError) Field() string
- func (e StaticFileRequestValidationError) Key() bool
- func (e StaticFileRequestValidationError) Reason() string
- type UnimplementedFileServer
- func (UnimplementedFileServer) DeleteUserFile(context.Context, *DeleteUserFileRequest) (*DeleteUserFileReply, error)
- func (UnimplementedFileServer) GetFileBytes(*GetFileBytesRequest, File_GetFileBytesServer) error
- func (UnimplementedFileServer) GetUserFile(context.Context, *GetUserFileRequest) (*GetUserFileReply, error)
- func (UnimplementedFileServer) ListUserFile(context.Context, *ListUserFileRequest) (*ListUserFileReply, error)
- func (UnimplementedFileServer) PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileReply, error)
- func (UnimplementedFileServer) UpdateUserFile(context.Context, *UpdateUserFileRequest) (*UpdateUserFileReply, error)
- func (UnimplementedFileServer) UploadFile(context.Context, *UploadFileRequest) (*UploadFileReply, error)
- func (UnimplementedFileServer) UploadFileByURL(context.Context, *UploadFileByURLRequest) (*UploadFileByURLReply, error)
- type UnsafeFileServer
- type UpdateUserFileReply
- func (*UpdateUserFileReply) Descriptor() ([]byte, []int)deprecated
- func (*UpdateUserFileReply) ProtoMessage()
- func (x *UpdateUserFileReply) ProtoReflect() protoreflect.Message
- func (x *UpdateUserFileReply) Reset()
- func (x *UpdateUserFileReply) String() string
- func (m *UpdateUserFileReply) Validate() error
- func (m *UpdateUserFileReply) ValidateAll() error
- type UpdateUserFileReplyMultiError
- type UpdateUserFileReplyValidationError
- func (e UpdateUserFileReplyValidationError) Cause() error
- func (e UpdateUserFileReplyValidationError) Error() string
- func (e UpdateUserFileReplyValidationError) ErrorName() string
- func (e UpdateUserFileReplyValidationError) Field() string
- func (e UpdateUserFileReplyValidationError) Key() bool
- func (e UpdateUserFileReplyValidationError) Reason() string
- 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 UploadChunkFileReply
- func (*UploadChunkFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *UploadChunkFileReply) GetKey() string
- func (x *UploadChunkFileReply) GetSha() string
- func (*UploadChunkFileReply) ProtoMessage()
- func (x *UploadChunkFileReply) ProtoReflect() protoreflect.Message
- func (x *UploadChunkFileReply) Reset()
- func (x *UploadChunkFileReply) String() string
- func (m *UploadChunkFileReply) Validate() error
- func (m *UploadChunkFileReply) ValidateAll() error
- type UploadChunkFileReplyMultiError
- type UploadChunkFileReplyValidationError
- func (e UploadChunkFileReplyValidationError) Cause() error
- func (e UploadChunkFileReplyValidationError) Error() string
- func (e UploadChunkFileReplyValidationError) ErrorName() string
- func (e UploadChunkFileReplyValidationError) Field() string
- func (e UploadChunkFileReplyValidationError) Key() bool
- func (e UploadChunkFileReplyValidationError) Reason() string
- type UploadChunkFileRequest
- func (*UploadChunkFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadChunkFileRequest) GetData() []byte
- func (x *UploadChunkFileRequest) GetIndex() uint32
- func (x *UploadChunkFileRequest) GetUploadId() string
- func (*UploadChunkFileRequest) ProtoMessage()
- func (x *UploadChunkFileRequest) ProtoReflect() protoreflect.Message
- func (x *UploadChunkFileRequest) Reset()
- func (x *UploadChunkFileRequest) String() string
- func (m *UploadChunkFileRequest) Validate() error
- func (m *UploadChunkFileRequest) ValidateAll() error
- type UploadChunkFileRequestMultiError
- type UploadChunkFileRequestValidationError
- func (e UploadChunkFileRequestValidationError) Cause() error
- func (e UploadChunkFileRequestValidationError) Error() string
- func (e UploadChunkFileRequestValidationError) ErrorName() string
- func (e UploadChunkFileRequestValidationError) Field() string
- func (e UploadChunkFileRequestValidationError) Key() bool
- func (e UploadChunkFileRequestValidationError) Reason() string
- type UploadFileByURLReply
- func (*UploadFileByURLReply) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileByURLReply) GetKey() string
- func (x *UploadFileByURLReply) GetSha() string
- func (*UploadFileByURLReply) ProtoMessage()
- func (x *UploadFileByURLReply) ProtoReflect() protoreflect.Message
- func (x *UploadFileByURLReply) Reset()
- func (x *UploadFileByURLReply) String() string
- func (m *UploadFileByURLReply) Validate() error
- func (m *UploadFileByURLReply) ValidateAll() error
- type UploadFileByURLReplyMultiError
- type UploadFileByURLReplyValidationError
- func (e UploadFileByURLReplyValidationError) Cause() error
- func (e UploadFileByURLReplyValidationError) Error() string
- func (e UploadFileByURLReplyValidationError) ErrorName() string
- func (e UploadFileByURLReplyValidationError) Field() string
- func (e UploadFileByURLReplyValidationError) Key() bool
- func (e UploadFileByURLReplyValidationError) Reason() string
- type UploadFileByURLRequest
- func (*UploadFileByURLRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileByURLRequest) GetDirectoryPath() string
- func (x *UploadFileByURLRequest) GetName() 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 UploadFileReply
- func (*UploadFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileReply) GetKey() string
- func (x *UploadFileReply) GetSha() string
- func (*UploadFileReply) ProtoMessage()
- func (x *UploadFileReply) ProtoReflect() protoreflect.Message
- func (x *UploadFileReply) Reset()
- func (x *UploadFileReply) String() string
- func (m *UploadFileReply) Validate() error
- func (m *UploadFileReply) ValidateAll() error
- type UploadFileReplyMultiError
- type UploadFileReplyValidationError
- func (e UploadFileReplyValidationError) Cause() error
- func (e UploadFileReplyValidationError) Error() string
- func (e UploadFileReplyValidationError) ErrorName() string
- func (e UploadFileReplyValidationError) Field() string
- func (e UploadFileReplyValidationError) Key() bool
- func (e UploadFileReplyValidationError) Reason() string
- type UploadFileRequest
- func (*UploadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileRequest) GetData() []byte
- func (x *UploadFileRequest) GetDirectoryId() uint32
- func (x *UploadFileRequest) GetDirectoryPath() string
- func (x *UploadFileRequest) GetName() string
- func (x *UploadFileRequest) GetSha() string
- func (x *UploadFileRequest) GetStore() string
- func (*UploadFileRequest) ProtoMessage()
- func (x *UploadFileRequest) ProtoReflect() protoreflect.Message
- func (x *UploadFileRequest) Reset()
- func (x *UploadFileRequest) String() string
- func (m *UploadFileRequest) Validate() error
- func (m *UploadFileRequest) ValidateAll() error
- type UploadFileRequestMultiError
- type UploadFileRequestValidationError
- func (e UploadFileRequestValidationError) Cause() error
- func (e UploadFileRequestValidationError) Error() string
- func (e UploadFileRequestValidationError) ErrorName() string
- func (e UploadFileRequestValidationError) Field() string
- func (e UploadFileRequestValidationError) Key() bool
- func (e UploadFileRequestValidationError) Reason() string
Constants ¶
const ( File_GetUserFile_FullMethodName = "/resource.api.file.File/GetUserFile" File_GetFileBytes_FullMethodName = "/resource.api.file.File/GetFileBytes" File_ListUserFile_FullMethodName = "/resource.api.file.File/ListUserFile" File_PrepareUploadFile_FullMethodName = "/resource.api.file.File/PrepareUploadFile" File_UploadFile_FullMethodName = "/resource.api.file.File/UploadFile" File_UploadFileByURL_FullMethodName = "/resource.api.file.File/UploadFileByURL" File_UpdateUserFile_FullMethodName = "/resource.api.file.File/UpdateUserFile" File_DeleteUserFile_FullMethodName = "/resource.api.file.File/DeleteUserFile" )
const ( OperationFileDeleteUserFile = "/resource.api.file.File/DeleteUserFile" OperationFileGetUserFile = "/resource.api.file.File/GetUserFile" OperationFileListUserFile = "/resource.api.file.File/ListUserFile" OperationFilePrepareUploadFile = "/resource.api.file.File/PrepareUploadFile" OperationFileUpdateUserFile = "/resource.api.file.File/UpdateUserFile" )
Variables ¶
var File_ServiceDesc = grpc.ServiceDesc{ ServiceName: "resource.api.file.File", HandlerType: (*FileServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUserFile", Handler: _File_GetUserFile_Handler, }, { MethodName: "ListUserFile", Handler: _File_ListUserFile_Handler, }, { MethodName: "PrepareUploadFile", Handler: _File_PrepareUploadFile_Handler, }, { MethodName: "UploadFile", Handler: _File_UploadFile_Handler, }, { MethodName: "UploadFileByURL", Handler: _File_UploadFileByURL_Handler, }, { MethodName: "UpdateUserFile", Handler: _File_UpdateUserFile_Handler, }, { MethodName: "DeleteUserFile", Handler: _File_DeleteUserFile_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetFileBytes", Handler: _File_GetFileBytes_Handler, ServerStreams: true, }, }, Metadata: "api/file/proto/file_service.proto", }
File_ServiceDesc is the grpc.ServiceDesc for File 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 RegisterFileHTTPServer ¶
func RegisterFileHTTPServer(s *http.Server, srv FileHTTPServer)
func RegisterFileServer ¶
func RegisterFileServer(s grpc.ServiceRegistrar, srv FileServer)
Types ¶
type DeleteUserFileReply ¶
type DeleteUserFileReply struct {
Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteUserFileReply) Descriptor
deprecated
func (*DeleteUserFileReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserFileReply.ProtoReflect.Descriptor instead.
func (*DeleteUserFileReply) GetTotal ¶
func (x *DeleteUserFileReply) GetTotal() uint32
func (*DeleteUserFileReply) ProtoMessage ¶
func (*DeleteUserFileReply) ProtoMessage()
func (*DeleteUserFileReply) ProtoReflect ¶
func (x *DeleteUserFileReply) ProtoReflect() protoreflect.Message
func (*DeleteUserFileReply) Reset ¶
func (x *DeleteUserFileReply) Reset()
func (*DeleteUserFileReply) String ¶
func (x *DeleteUserFileReply) String() string
func (*DeleteUserFileReply) Validate ¶
func (m *DeleteUserFileReply) Validate() error
Validate checks the field values on DeleteUserFileReply 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 (*DeleteUserFileReply) ValidateAll ¶
func (m *DeleteUserFileReply) ValidateAll() error
ValidateAll checks the field values on DeleteUserFileReply 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 DeleteUserFileReplyMultiError, or nil if none found.
type DeleteUserFileReplyMultiError ¶
type DeleteUserFileReplyMultiError []error
DeleteUserFileReplyMultiError is an error wrapping multiple validation errors returned by DeleteUserFileReply.ValidateAll() if the designated constraints aren't met.
func (DeleteUserFileReplyMultiError) AllErrors ¶
func (m DeleteUserFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteUserFileReplyMultiError) Error ¶
func (m DeleteUserFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteUserFileReplyValidationError ¶
type DeleteUserFileReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteUserFileReplyValidationError is the validation error returned by DeleteUserFileReply.Validate if the designated constraints aren't met.
func (DeleteUserFileReplyValidationError) Cause ¶
func (e DeleteUserFileReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteUserFileReplyValidationError) Error ¶
func (e DeleteUserFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteUserFileReplyValidationError) ErrorName ¶
func (e DeleteUserFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteUserFileReplyValidationError) Field ¶
func (e DeleteUserFileReplyValidationError) Field() string
Field function returns field value.
func (DeleteUserFileReplyValidationError) Key ¶
func (e DeleteUserFileReplyValidationError) Key() bool
Key function returns key value.
func (DeleteUserFileReplyValidationError) Reason ¶
func (e DeleteUserFileReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteUserFileRequest ¶
type DeleteUserFileRequest struct {
Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteUserFileRequest) Descriptor
deprecated
func (*DeleteUserFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserFileRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserFileRequest) GetIds ¶
func (x *DeleteUserFileRequest) GetIds() []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 DownloadFileReply ¶
type DownloadFileReply struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Mime string `protobuf:"bytes,2,opt,name=mime,proto3" json:"mime,omitempty"`
// contains filtered or unexported fields
}
func (*DownloadFileReply) Descriptor
deprecated
func (*DownloadFileReply) Descriptor() ([]byte, []int)
Deprecated: Use DownloadFileReply.ProtoReflect.Descriptor instead.
func (*DownloadFileReply) GetData ¶
func (x *DownloadFileReply) GetData() []byte
func (*DownloadFileReply) GetMime ¶
func (x *DownloadFileReply) GetMime() string
func (*DownloadFileReply) ProtoMessage ¶
func (*DownloadFileReply) ProtoMessage()
func (*DownloadFileReply) ProtoReflect ¶
func (x *DownloadFileReply) ProtoReflect() protoreflect.Message
func (*DownloadFileReply) Reset ¶
func (x *DownloadFileReply) Reset()
func (*DownloadFileReply) String ¶
func (x *DownloadFileReply) String() string
func (*DownloadFileReply) Validate ¶
func (m *DownloadFileReply) Validate() error
Validate checks the field values on DownloadFileReply 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 (*DownloadFileReply) ValidateAll ¶
func (m *DownloadFileReply) ValidateAll() error
ValidateAll checks the field values on DownloadFileReply 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 DownloadFileReplyMultiError, or nil if none found.
type DownloadFileReplyMultiError ¶
type DownloadFileReplyMultiError []error
DownloadFileReplyMultiError is an error wrapping multiple validation errors returned by DownloadFileReply.ValidateAll() if the designated constraints aren't met.
func (DownloadFileReplyMultiError) AllErrors ¶
func (m DownloadFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DownloadFileReplyMultiError) Error ¶
func (m DownloadFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DownloadFileReplyValidationError ¶
type DownloadFileReplyValidationError struct {
// contains filtered or unexported fields
}
DownloadFileReplyValidationError is the validation error returned by DownloadFileReply.Validate if the designated constraints aren't met.
func (DownloadFileReplyValidationError) Cause ¶
func (e DownloadFileReplyValidationError) Cause() error
Cause function returns cause value.
func (DownloadFileReplyValidationError) Error ¶
func (e DownloadFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DownloadFileReplyValidationError) ErrorName ¶
func (e DownloadFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DownloadFileReplyValidationError) Field ¶
func (e DownloadFileReplyValidationError) Field() string
Field function returns field value.
func (DownloadFileReplyValidationError) Key ¶
func (e DownloadFileReplyValidationError) Key() bool
Key function returns key value.
func (DownloadFileReplyValidationError) Reason ¶
func (e DownloadFileReplyValidationError) Reason() string
Reason function returns reason value.
type DownloadFileRequest ¶
type DownloadFileRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Expire string `protobuf:"bytes,2,opt,name=expire,proto3" json:"expire,omitempty"`
Sign string `protobuf:"bytes,3,opt,name=sign,proto3" json:"sign,omitempty"`
SaveName string `protobuf:"bytes,4,opt,name=saveName,proto3" json:"saveName,omitempty"`
// contains filtered or unexported fields
}
func (*DownloadFileRequest) Descriptor
deprecated
func (*DownloadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use DownloadFileRequest.ProtoReflect.Descriptor instead.
func (*DownloadFileRequest) GetExpire ¶
func (x *DownloadFileRequest) GetExpire() string
func (*DownloadFileRequest) GetKey ¶
func (x *DownloadFileRequest) GetKey() string
func (*DownloadFileRequest) GetSaveName ¶
func (x *DownloadFileRequest) GetSaveName() string
func (*DownloadFileRequest) GetSign ¶
func (x *DownloadFileRequest) GetSign() string
func (*DownloadFileRequest) ProtoMessage ¶
func (*DownloadFileRequest) ProtoMessage()
func (*DownloadFileRequest) ProtoReflect ¶
func (x *DownloadFileRequest) ProtoReflect() protoreflect.Message
func (*DownloadFileRequest) Reset ¶
func (x *DownloadFileRequest) Reset()
func (*DownloadFileRequest) String ¶
func (x *DownloadFileRequest) String() string
func (*DownloadFileRequest) Validate ¶
func (m *DownloadFileRequest) Validate() error
Validate checks the field values on DownloadFileRequest 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 (*DownloadFileRequest) ValidateAll ¶
func (m *DownloadFileRequest) ValidateAll() error
ValidateAll checks the field values on DownloadFileRequest 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 DownloadFileRequestMultiError, or nil if none found.
type DownloadFileRequestMultiError ¶
type DownloadFileRequestMultiError []error
DownloadFileRequestMultiError is an error wrapping multiple validation errors returned by DownloadFileRequest.ValidateAll() if the designated constraints aren't met.
func (DownloadFileRequestMultiError) AllErrors ¶
func (m DownloadFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DownloadFileRequestMultiError) Error ¶
func (m DownloadFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DownloadFileRequestValidationError ¶
type DownloadFileRequestValidationError struct {
// contains filtered or unexported fields
}
DownloadFileRequestValidationError is the validation error returned by DownloadFileRequest.Validate if the designated constraints aren't met.
func (DownloadFileRequestValidationError) Cause ¶
func (e DownloadFileRequestValidationError) Cause() error
Cause function returns cause value.
func (DownloadFileRequestValidationError) Error ¶
func (e DownloadFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DownloadFileRequestValidationError) ErrorName ¶
func (e DownloadFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DownloadFileRequestValidationError) Field ¶
func (e DownloadFileRequestValidationError) Field() string
Field function returns field value.
func (DownloadFileRequestValidationError) Key ¶
func (e DownloadFileRequestValidationError) Key() bool
Key function returns key value.
func (DownloadFileRequestValidationError) Reason ¶
func (e DownloadFileRequestValidationError) Reason() string
Reason function returns reason value.
type DownloadTargetFileRequest ¶
type DownloadTargetFileRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
SaveName string `protobuf:"bytes,4,opt,name=saveName,proto3" json:"saveName,omitempty"`
// contains filtered or unexported fields
}
func (*DownloadTargetFileRequest) Descriptor
deprecated
func (*DownloadTargetFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use DownloadTargetFileRequest.ProtoReflect.Descriptor instead.
func (*DownloadTargetFileRequest) GetKey ¶
func (x *DownloadTargetFileRequest) GetKey() string
func (*DownloadTargetFileRequest) GetSaveName ¶
func (x *DownloadTargetFileRequest) GetSaveName() string
func (*DownloadTargetFileRequest) ProtoMessage ¶
func (*DownloadTargetFileRequest) ProtoMessage()
func (*DownloadTargetFileRequest) ProtoReflect ¶
func (x *DownloadTargetFileRequest) ProtoReflect() protoreflect.Message
func (*DownloadTargetFileRequest) Reset ¶
func (x *DownloadTargetFileRequest) Reset()
func (*DownloadTargetFileRequest) String ¶
func (x *DownloadTargetFileRequest) String() string
func (*DownloadTargetFileRequest) Validate ¶
func (m *DownloadTargetFileRequest) Validate() error
Validate checks the field values on DownloadTargetFileRequest 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 (*DownloadTargetFileRequest) ValidateAll ¶
func (m *DownloadTargetFileRequest) ValidateAll() error
ValidateAll checks the field values on DownloadTargetFileRequest 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 DownloadTargetFileRequestMultiError, or nil if none found.
type DownloadTargetFileRequestMultiError ¶
type DownloadTargetFileRequestMultiError []error
DownloadTargetFileRequestMultiError is an error wrapping multiple validation errors returned by DownloadTargetFileRequest.ValidateAll() if the designated constraints aren't met.
func (DownloadTargetFileRequestMultiError) AllErrors ¶
func (m DownloadTargetFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DownloadTargetFileRequestMultiError) Error ¶
func (m DownloadTargetFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DownloadTargetFileRequestValidationError ¶
type DownloadTargetFileRequestValidationError struct {
// contains filtered or unexported fields
}
DownloadTargetFileRequestValidationError is the validation error returned by DownloadTargetFileRequest.Validate if the designated constraints aren't met.
func (DownloadTargetFileRequestValidationError) Cause ¶
func (e DownloadTargetFileRequestValidationError) Cause() error
Cause function returns cause value.
func (DownloadTargetFileRequestValidationError) Error ¶
func (e DownloadTargetFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DownloadTargetFileRequestValidationError) ErrorName ¶
func (e DownloadTargetFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DownloadTargetFileRequestValidationError) Field ¶
func (e DownloadTargetFileRequestValidationError) Field() string
Field function returns field value.
func (DownloadTargetFileRequestValidationError) Key ¶
func (e DownloadTargetFileRequestValidationError) Key() bool
Key function returns key value.
func (DownloadTargetFileRequestValidationError) Reason ¶
func (e DownloadTargetFileRequestValidationError) Reason() string
Reason function returns reason value.
type FileClient ¶
type FileClient interface {
// GetFile 获取指定的文件信息
GetUserFile(ctx context.Context, in *GetUserFileRequest, opts ...grpc.CallOption) (*GetUserFileReply, error)
// GetFile 获取指定的文件信息
GetFileBytes(ctx context.Context, in *GetFileBytesRequest, opts ...grpc.CallOption) (File_GetFileBytesClient, error)
// ListUserFile 获取文件信息列表
ListUserFile(ctx context.Context, in *ListUserFileRequest, opts ...grpc.CallOption) (*ListUserFileReply, error)
// PrepareUploadFile 预上传文件信息
PrepareUploadFile(ctx context.Context, in *PrepareUploadFileRequest, opts ...grpc.CallOption) (*PrepareUploadFileReply, error)
// UploadFile 上传文件
UploadFile(ctx context.Context, in *UploadFileRequest, opts ...grpc.CallOption) (*UploadFileReply, error)
// UploadFileByURL 上传文件
UploadFileByURL(ctx context.Context, in *UploadFileByURLRequest, opts ...grpc.CallOption) (*UploadFileByURLReply, error)
// UpdateFile 更新文件信息
UpdateUserFile(ctx context.Context, in *UpdateUserFileRequest, opts ...grpc.CallOption) (*UpdateUserFileReply, error)
// DeleteUserFile 删除文件信息
DeleteUserFile(ctx context.Context, in *DeleteUserFileRequest, opts ...grpc.CallOption) (*DeleteUserFileReply, error)
}
FileClient is the client API for File service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewFileClient ¶
func NewFileClient(cc grpc.ClientConnInterface) FileClient
type FileHTTPClient ¶
type FileHTTPClient interface {
DeleteUserFile(ctx context.Context, req *DeleteUserFileRequest, opts ...http.CallOption) (rsp *DeleteUserFileReply, err error)
GetUserFile(ctx context.Context, req *GetUserFileRequest, opts ...http.CallOption) (rsp *GetUserFileReply, err error)
ListUserFile(ctx context.Context, req *ListUserFileRequest, opts ...http.CallOption) (rsp *ListUserFileReply, err error)
PrepareUploadFile(ctx context.Context, req *PrepareUploadFileRequest, opts ...http.CallOption) (rsp *PrepareUploadFileReply, err error)
UpdateUserFile(ctx context.Context, req *UpdateUserFileRequest, opts ...http.CallOption) (rsp *UpdateUserFileReply, err error)
}
func NewFileHTTPClient ¶
func NewFileHTTPClient(client *http.Client) FileHTTPClient
type FileHTTPClientImpl ¶
type FileHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*FileHTTPClientImpl) DeleteUserFile ¶
func (c *FileHTTPClientImpl) DeleteUserFile(ctx context.Context, in *DeleteUserFileRequest, opts ...http.CallOption) (*DeleteUserFileReply, error)
func (*FileHTTPClientImpl) GetUserFile ¶
func (c *FileHTTPClientImpl) GetUserFile(ctx context.Context, in *GetUserFileRequest, opts ...http.CallOption) (*GetUserFileReply, error)
func (*FileHTTPClientImpl) ListUserFile ¶
func (c *FileHTTPClientImpl) ListUserFile(ctx context.Context, in *ListUserFileRequest, opts ...http.CallOption) (*ListUserFileReply, error)
func (*FileHTTPClientImpl) PrepareUploadFile ¶
func (c *FileHTTPClientImpl) PrepareUploadFile(ctx context.Context, in *PrepareUploadFileRequest, opts ...http.CallOption) (*PrepareUploadFileReply, error)
func (*FileHTTPClientImpl) UpdateUserFile ¶
func (c *FileHTTPClientImpl) UpdateUserFile(ctx context.Context, in *UpdateUserFileRequest, opts ...http.CallOption) (*UpdateUserFileReply, error)
type FileHTTPServer ¶
type FileHTTPServer interface {
// DeleteUserFile DeleteUserFile 删除文件信息
DeleteUserFile(context.Context, *DeleteUserFileRequest) (*DeleteUserFileReply, error)
// GetUserFile GetFile 获取指定的文件信息
GetUserFile(context.Context, *GetUserFileRequest) (*GetUserFileReply, error)
// ListUserFile ListUserFile 获取文件信息列表
ListUserFile(context.Context, *ListUserFileRequest) (*ListUserFileReply, error)
// PrepareUploadFile PrepareUploadFile 预上传文件信息
PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileReply, error)
// UpdateUserFile UpdateFile 更新文件信息
UpdateUserFile(context.Context, *UpdateUserFileRequest) (*UpdateUserFileReply, error)
}
type FileServer ¶
type FileServer interface {
// GetFile 获取指定的文件信息
GetUserFile(context.Context, *GetUserFileRequest) (*GetUserFileReply, error)
// GetFile 获取指定的文件信息
GetFileBytes(*GetFileBytesRequest, File_GetFileBytesServer) error
// ListUserFile 获取文件信息列表
ListUserFile(context.Context, *ListUserFileRequest) (*ListUserFileReply, error)
// PrepareUploadFile 预上传文件信息
PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileReply, error)
// UploadFile 上传文件
UploadFile(context.Context, *UploadFileRequest) (*UploadFileReply, error)
// UploadFileByURL 上传文件
UploadFileByURL(context.Context, *UploadFileByURLRequest) (*UploadFileByURLReply, error)
// UpdateFile 更新文件信息
UpdateUserFile(context.Context, *UpdateUserFileRequest) (*UpdateUserFileReply, error)
// DeleteUserFile 删除文件信息
DeleteUserFile(context.Context, *DeleteUserFileRequest) (*DeleteUserFileReply, error)
// contains filtered or unexported methods
}
FileServer is the server API for File service. All implementations must embed UnimplementedFileServer for forward compatibility
type File_GetFileBytesClient ¶
type File_GetFileBytesClient interface {
Recv() (*GetFileBytesReply, error)
grpc.ClientStream
}
type File_GetFileBytesServer ¶
type File_GetFileBytesServer interface {
Send(*GetFileBytesReply) error
grpc.ServerStream
}
type GetFileBytesReply ¶
type GetFileBytesReply struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*GetFileBytesReply) Descriptor
deprecated
func (*GetFileBytesReply) Descriptor() ([]byte, []int)
Deprecated: Use GetFileBytesReply.ProtoReflect.Descriptor instead.
func (*GetFileBytesReply) GetData ¶
func (x *GetFileBytesReply) GetData() []byte
func (*GetFileBytesReply) ProtoMessage ¶
func (*GetFileBytesReply) ProtoMessage()
func (*GetFileBytesReply) ProtoReflect ¶
func (x *GetFileBytesReply) ProtoReflect() protoreflect.Message
func (*GetFileBytesReply) Reset ¶
func (x *GetFileBytesReply) Reset()
func (*GetFileBytesReply) String ¶
func (x *GetFileBytesReply) String() string
func (*GetFileBytesReply) Validate ¶
func (m *GetFileBytesReply) Validate() error
Validate checks the field values on GetFileBytesReply 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 (*GetFileBytesReply) ValidateAll ¶
func (m *GetFileBytesReply) ValidateAll() error
ValidateAll checks the field values on GetFileBytesReply 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 GetFileBytesReplyMultiError, or nil if none found.
type GetFileBytesReplyMultiError ¶
type GetFileBytesReplyMultiError []error
GetFileBytesReplyMultiError is an error wrapping multiple validation errors returned by GetFileBytesReply.ValidateAll() if the designated constraints aren't met.
func (GetFileBytesReplyMultiError) AllErrors ¶
func (m GetFileBytesReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetFileBytesReplyMultiError) Error ¶
func (m GetFileBytesReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetFileBytesReplyValidationError ¶
type GetFileBytesReplyValidationError struct {
// contains filtered or unexported fields
}
GetFileBytesReplyValidationError is the validation error returned by GetFileBytesReply.Validate if the designated constraints aren't met.
func (GetFileBytesReplyValidationError) Cause ¶
func (e GetFileBytesReplyValidationError) Cause() error
Cause function returns cause value.
func (GetFileBytesReplyValidationError) Error ¶
func (e GetFileBytesReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetFileBytesReplyValidationError) ErrorName ¶
func (e GetFileBytesReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetFileBytesReplyValidationError) Field ¶
func (e GetFileBytesReplyValidationError) Field() string
Field function returns field value.
func (GetFileBytesReplyValidationError) Key ¶
func (e GetFileBytesReplyValidationError) Key() bool
Key function returns key value.
func (GetFileBytesReplyValidationError) Reason ¶
func (e GetFileBytesReplyValidationError) Reason() string
Reason function returns reason value.
type GetFileBytesRequest ¶
type GetFileBytesRequest struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*GetFileBytesRequest) Descriptor
deprecated
func (*GetFileBytesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFileBytesRequest.ProtoReflect.Descriptor instead.
func (*GetFileBytesRequest) GetKey ¶
func (x *GetFileBytesRequest) GetKey() string
func (*GetFileBytesRequest) ProtoMessage ¶
func (*GetFileBytesRequest) ProtoMessage()
func (*GetFileBytesRequest) ProtoReflect ¶
func (x *GetFileBytesRequest) ProtoReflect() protoreflect.Message
func (*GetFileBytesRequest) Reset ¶
func (x *GetFileBytesRequest) Reset()
func (*GetFileBytesRequest) String ¶
func (x *GetFileBytesRequest) String() string
func (*GetFileBytesRequest) Validate ¶
func (m *GetFileBytesRequest) Validate() error
Validate checks the field values on GetFileBytesRequest 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 (*GetFileBytesRequest) ValidateAll ¶
func (m *GetFileBytesRequest) ValidateAll() error
ValidateAll checks the field values on GetFileBytesRequest 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 GetFileBytesRequestMultiError, or nil if none found.
type GetFileBytesRequestMultiError ¶
type GetFileBytesRequestMultiError []error
GetFileBytesRequestMultiError is an error wrapping multiple validation errors returned by GetFileBytesRequest.ValidateAll() if the designated constraints aren't met.
func (GetFileBytesRequestMultiError) AllErrors ¶
func (m GetFileBytesRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetFileBytesRequestMultiError) Error ¶
func (m GetFileBytesRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetFileBytesRequestValidationError ¶
type GetFileBytesRequestValidationError struct {
// contains filtered or unexported fields
}
GetFileBytesRequestValidationError is the validation error returned by GetFileBytesRequest.Validate if the designated constraints aren't met.
func (GetFileBytesRequestValidationError) Cause ¶
func (e GetFileBytesRequestValidationError) Cause() error
Cause function returns cause value.
func (GetFileBytesRequestValidationError) Error ¶
func (e GetFileBytesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetFileBytesRequestValidationError) ErrorName ¶
func (e GetFileBytesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetFileBytesRequestValidationError) Field ¶
func (e GetFileBytesRequestValidationError) Field() string
Field function returns field value.
func (GetFileBytesRequestValidationError) Key ¶
func (e GetFileBytesRequestValidationError) Key() bool
Key function returns key value.
func (GetFileBytesRequestValidationError) Reason ¶
func (e GetFileBytesRequestValidationError) Reason() string
Reason function returns reason value.
type GetUserFileReply ¶
type GetUserFileReply struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
DirectoryId uint32 `protobuf:"varint,2,opt,name=directoryId,proto3" json:"directoryId,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
Size uint32 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
Sha string `protobuf:"bytes,6,opt,name=sha,proto3" json:"sha,omitempty"`
Key string `protobuf:"bytes,7,opt,name=key,proto3" json:"key,omitempty"`
CreatedAt uint32 `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
UpdatedAt uint32 `protobuf:"varint,10,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
// contains filtered or unexported fields
}
func (*GetUserFileReply) Descriptor
deprecated
func (*GetUserFileReply) Descriptor() ([]byte, []int)
Deprecated: Use GetUserFileReply.ProtoReflect.Descriptor instead.
func (*GetUserFileReply) GetCreatedAt ¶
func (x *GetUserFileReply) GetCreatedAt() uint32
func (*GetUserFileReply) GetDirectoryId ¶
func (x *GetUserFileReply) GetDirectoryId() uint32
func (*GetUserFileReply) GetId ¶
func (x *GetUserFileReply) GetId() uint32
func (*GetUserFileReply) GetKey ¶
func (x *GetUserFileReply) GetKey() string
func (*GetUserFileReply) GetName ¶
func (x *GetUserFileReply) GetName() string
func (*GetUserFileReply) GetSha ¶
func (x *GetUserFileReply) GetSha() string
func (*GetUserFileReply) GetSize ¶
func (x *GetUserFileReply) GetSize() uint32
func (*GetUserFileReply) GetType ¶
func (x *GetUserFileReply) GetType() string
func (*GetUserFileReply) GetUpdatedAt ¶
func (x *GetUserFileReply) GetUpdatedAt() uint32
func (*GetUserFileReply) ProtoMessage ¶
func (*GetUserFileReply) ProtoMessage()
func (*GetUserFileReply) ProtoReflect ¶
func (x *GetUserFileReply) ProtoReflect() protoreflect.Message
func (*GetUserFileReply) Reset ¶
func (x *GetUserFileReply) Reset()
func (*GetUserFileReply) String ¶
func (x *GetUserFileReply) String() string
func (*GetUserFileReply) Validate ¶
func (m *GetUserFileReply) Validate() error
Validate checks the field values on GetUserFileReply 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 (*GetUserFileReply) ValidateAll ¶
func (m *GetUserFileReply) ValidateAll() error
ValidateAll checks the field values on GetUserFileReply 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 GetUserFileReplyMultiError, or nil if none found.
type GetUserFileReplyMultiError ¶
type GetUserFileReplyMultiError []error
GetUserFileReplyMultiError is an error wrapping multiple validation errors returned by GetUserFileReply.ValidateAll() if the designated constraints aren't met.
func (GetUserFileReplyMultiError) AllErrors ¶
func (m GetUserFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserFileReplyMultiError) Error ¶
func (m GetUserFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserFileReplyValidationError ¶
type GetUserFileReplyValidationError struct {
// contains filtered or unexported fields
}
GetUserFileReplyValidationError is the validation error returned by GetUserFileReply.Validate if the designated constraints aren't met.
func (GetUserFileReplyValidationError) Cause ¶
func (e GetUserFileReplyValidationError) Cause() error
Cause function returns cause value.
func (GetUserFileReplyValidationError) Error ¶
func (e GetUserFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserFileReplyValidationError) ErrorName ¶
func (e GetUserFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserFileReplyValidationError) Field ¶
func (e GetUserFileReplyValidationError) Field() string
Field function returns field value.
func (GetUserFileReplyValidationError) Key ¶
func (e GetUserFileReplyValidationError) Key() bool
Key function returns key value.
func (GetUserFileReplyValidationError) Reason ¶
func (e GetUserFileReplyValidationError) Reason() string
Reason function returns reason value.
type GetUserFileRequest ¶
type GetUserFileRequest struct {
Directory *string `protobuf:"bytes,1,opt,name=directory,proto3,oneof" json:"directory,omitempty"`
Id *uint32 `protobuf:"varint,2,opt,name=id,proto3,oneof" json:"id,omitempty"`
Key *string `protobuf:"bytes,3,opt,name=key,proto3,oneof" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*GetUserFileRequest) Descriptor
deprecated
func (*GetUserFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserFileRequest.ProtoReflect.Descriptor instead.
func (*GetUserFileRequest) GetDirectory ¶
func (x *GetUserFileRequest) GetDirectory() string
func (*GetUserFileRequest) GetId ¶
func (x *GetUserFileRequest) GetId() uint32
func (*GetUserFileRequest) GetKey ¶
func (x *GetUserFileRequest) GetKey() string
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 ListUserFileReply ¶
type ListUserFileReply struct {
Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
List []*ListUserFileReply_File `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
// contains filtered or unexported fields
}
func (*ListUserFileReply) Descriptor
deprecated
func (*ListUserFileReply) Descriptor() ([]byte, []int)
Deprecated: Use ListUserFileReply.ProtoReflect.Descriptor instead.
func (*ListUserFileReply) GetList ¶
func (x *ListUserFileReply) GetList() []*ListUserFileReply_File
func (*ListUserFileReply) GetTotal ¶
func (x *ListUserFileReply) GetTotal() uint32
func (*ListUserFileReply) ProtoMessage ¶
func (*ListUserFileReply) ProtoMessage()
func (*ListUserFileReply) ProtoReflect ¶
func (x *ListUserFileReply) ProtoReflect() protoreflect.Message
func (*ListUserFileReply) Reset ¶
func (x *ListUserFileReply) Reset()
func (*ListUserFileReply) String ¶
func (x *ListUserFileReply) String() string
func (*ListUserFileReply) Validate ¶
func (m *ListUserFileReply) Validate() error
Validate checks the field values on ListUserFileReply 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 (*ListUserFileReply) ValidateAll ¶
func (m *ListUserFileReply) ValidateAll() error
ValidateAll checks the field values on ListUserFileReply 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 ListUserFileReplyMultiError, or nil if none found.
type ListUserFileReplyMultiError ¶
type ListUserFileReplyMultiError []error
ListUserFileReplyMultiError is an error wrapping multiple validation errors returned by ListUserFileReply.ValidateAll() if the designated constraints aren't met.
func (ListUserFileReplyMultiError) AllErrors ¶
func (m ListUserFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserFileReplyMultiError) Error ¶
func (m ListUserFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserFileReplyValidationError ¶
type ListUserFileReplyValidationError struct {
// contains filtered or unexported fields
}
ListUserFileReplyValidationError is the validation error returned by ListUserFileReply.Validate if the designated constraints aren't met.
func (ListUserFileReplyValidationError) Cause ¶
func (e ListUserFileReplyValidationError) Cause() error
Cause function returns cause value.
func (ListUserFileReplyValidationError) Error ¶
func (e ListUserFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserFileReplyValidationError) ErrorName ¶
func (e ListUserFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserFileReplyValidationError) Field ¶
func (e ListUserFileReplyValidationError) Field() string
Field function returns field value.
func (ListUserFileReplyValidationError) Key ¶
func (e ListUserFileReplyValidationError) Key() bool
Key function returns key value.
func (ListUserFileReplyValidationError) Reason ¶
func (e ListUserFileReplyValidationError) Reason() string
Reason function returns reason value.
type ListUserFileReply_File ¶
type ListUserFileReply_File struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
DirectoryId uint32 `protobuf:"varint,2,opt,name=directoryId,proto3" json:"directoryId,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
Size uint32 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
Sha string `protobuf:"bytes,6,opt,name=sha,proto3" json:"sha,omitempty"`
Key string `protobuf:"bytes,7,opt,name=key,proto3" json:"key,omitempty"`
CreatedAt uint32 `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
UpdatedAt uint32 `protobuf:"varint,10,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
// contains filtered or unexported fields
}
func (*ListUserFileReply_File) Descriptor
deprecated
func (*ListUserFileReply_File) Descriptor() ([]byte, []int)
Deprecated: Use ListUserFileReply_File.ProtoReflect.Descriptor instead.
func (*ListUserFileReply_File) GetCreatedAt ¶
func (x *ListUserFileReply_File) GetCreatedAt() uint32
func (*ListUserFileReply_File) GetDirectoryId ¶
func (x *ListUserFileReply_File) GetDirectoryId() uint32
func (*ListUserFileReply_File) GetId ¶
func (x *ListUserFileReply_File) GetId() uint32
func (*ListUserFileReply_File) GetKey ¶
func (x *ListUserFileReply_File) GetKey() string
func (*ListUserFileReply_File) GetName ¶
func (x *ListUserFileReply_File) GetName() string
func (*ListUserFileReply_File) GetSha ¶
func (x *ListUserFileReply_File) GetSha() string
func (*ListUserFileReply_File) GetSize ¶
func (x *ListUserFileReply_File) GetSize() uint32
func (*ListUserFileReply_File) GetType ¶
func (x *ListUserFileReply_File) GetType() string
func (*ListUserFileReply_File) GetUpdatedAt ¶
func (x *ListUserFileReply_File) GetUpdatedAt() uint32
func (*ListUserFileReply_File) ProtoMessage ¶
func (*ListUserFileReply_File) ProtoMessage()
func (*ListUserFileReply_File) ProtoReflect ¶
func (x *ListUserFileReply_File) ProtoReflect() protoreflect.Message
func (*ListUserFileReply_File) Reset ¶
func (x *ListUserFileReply_File) Reset()
func (*ListUserFileReply_File) String ¶
func (x *ListUserFileReply_File) String() string
func (*ListUserFileReply_File) Validate ¶
func (m *ListUserFileReply_File) Validate() error
Validate checks the field values on ListUserFileReply_File 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 (*ListUserFileReply_File) ValidateAll ¶
func (m *ListUserFileReply_File) ValidateAll() error
ValidateAll checks the field values on ListUserFileReply_File 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 ListUserFileReply_FileMultiError, or nil if none found.
type ListUserFileReply_FileMultiError ¶
type ListUserFileReply_FileMultiError []error
ListUserFileReply_FileMultiError is an error wrapping multiple validation errors returned by ListUserFileReply_File.ValidateAll() if the designated constraints aren't met.
func (ListUserFileReply_FileMultiError) AllErrors ¶
func (m ListUserFileReply_FileMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserFileReply_FileMultiError) Error ¶
func (m ListUserFileReply_FileMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserFileReply_FileValidationError ¶
type ListUserFileReply_FileValidationError struct {
// contains filtered or unexported fields
}
ListUserFileReply_FileValidationError is the validation error returned by ListUserFileReply_File.Validate if the designated constraints aren't met.
func (ListUserFileReply_FileValidationError) Cause ¶
func (e ListUserFileReply_FileValidationError) Cause() error
Cause function returns cause value.
func (ListUserFileReply_FileValidationError) Error ¶
func (e ListUserFileReply_FileValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserFileReply_FileValidationError) ErrorName ¶
func (e ListUserFileReply_FileValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserFileReply_FileValidationError) Field ¶
func (e ListUserFileReply_FileValidationError) Field() string
Field function returns field value.
func (ListUserFileReply_FileValidationError) Key ¶
func (e ListUserFileReply_FileValidationError) Key() bool
Key function returns key value.
func (ListUserFileReply_FileValidationError) Reason ¶
func (e ListUserFileReply_FileValidationError) Reason() string
Reason function returns reason value.
type ListUserFileRequest ¶
type ListUserFileRequest struct {
Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
PageSize uint32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
Order *string `protobuf:"bytes,3,opt,name=order,proto3,oneof" json:"order,omitempty"`
OrderBy *string `protobuf:"bytes,4,opt,name=orderBy,proto3,oneof" json:"orderBy,omitempty"`
DirectoryId *uint32 `protobuf:"varint,5,opt,name=directoryId,proto3,oneof" json:"directoryId,omitempty"`
Status *string `protobuf:"bytes,6,opt,name=status,proto3,oneof" json:"status,omitempty"`
Name *string `protobuf:"bytes,7,opt,name=name,proto3,oneof" json:"name,omitempty"`
KeyList []string `protobuf:"bytes,8,rep,name=keyList,proto3" json:"keyList,omitempty"`
// contains filtered or unexported fields
}
func (*ListUserFileRequest) Descriptor
deprecated
func (*ListUserFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUserFileRequest.ProtoReflect.Descriptor instead.
func (*ListUserFileRequest) GetDirectoryId ¶
func (x *ListUserFileRequest) GetDirectoryId() uint32
func (*ListUserFileRequest) GetKeyList ¶
func (x *ListUserFileRequest) GetKeyList() []string
func (*ListUserFileRequest) GetName ¶
func (x *ListUserFileRequest) GetName() string
func (*ListUserFileRequest) GetOrder ¶
func (x *ListUserFileRequest) GetOrder() string
func (*ListUserFileRequest) GetOrderBy ¶
func (x *ListUserFileRequest) GetOrderBy() string
func (*ListUserFileRequest) GetPage ¶
func (x *ListUserFileRequest) GetPage() uint32
func (*ListUserFileRequest) GetPageSize ¶
func (x *ListUserFileRequest) GetPageSize() uint32
func (*ListUserFileRequest) GetStatus ¶
func (x *ListUserFileRequest) GetStatus() string
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 PrepareUploadFileReply ¶
type PrepareUploadFileReply struct {
Uploaded bool `protobuf:"varint,1,opt,name=uploaded,proto3" json:"uploaded,omitempty"`
Key *string `protobuf:"bytes,2,opt,name=key,proto3,oneof" json:"key,omitempty"`
ChunkSize *uint32 `protobuf:"varint,3,opt,name=chunkSize,proto3,oneof" json:"chunkSize,omitempty"`
ChunkCount *uint32 `protobuf:"varint,4,opt,name=chunkCount,proto3,oneof" json:"chunkCount,omitempty"`
UploadId *string `protobuf:"bytes,5,opt,name=uploadId,proto3,oneof" json:"uploadId,omitempty"`
UploadChunks []uint32 `protobuf:"varint,6,rep,packed,name=uploadChunks,proto3" json:"uploadChunks,omitempty"`
Sha *string `protobuf:"bytes,7,opt,name=sha,proto3,oneof" json:"sha,omitempty"`
// contains filtered or unexported fields
}
func (*PrepareUploadFileReply) Descriptor
deprecated
func (*PrepareUploadFileReply) Descriptor() ([]byte, []int)
Deprecated: Use PrepareUploadFileReply.ProtoReflect.Descriptor instead.
func (*PrepareUploadFileReply) GetChunkCount ¶
func (x *PrepareUploadFileReply) GetChunkCount() uint32
func (*PrepareUploadFileReply) GetChunkSize ¶
func (x *PrepareUploadFileReply) GetChunkSize() uint32
func (*PrepareUploadFileReply) GetKey ¶
func (x *PrepareUploadFileReply) GetKey() string
func (*PrepareUploadFileReply) GetSha ¶
func (x *PrepareUploadFileReply) GetSha() string
func (*PrepareUploadFileReply) GetUploadChunks ¶
func (x *PrepareUploadFileReply) GetUploadChunks() []uint32
func (*PrepareUploadFileReply) GetUploadId ¶
func (x *PrepareUploadFileReply) GetUploadId() string
func (*PrepareUploadFileReply) GetUploaded ¶
func (x *PrepareUploadFileReply) GetUploaded() bool
func (*PrepareUploadFileReply) ProtoMessage ¶
func (*PrepareUploadFileReply) ProtoMessage()
func (*PrepareUploadFileReply) ProtoReflect ¶
func (x *PrepareUploadFileReply) ProtoReflect() protoreflect.Message
func (*PrepareUploadFileReply) Reset ¶
func (x *PrepareUploadFileReply) Reset()
func (*PrepareUploadFileReply) String ¶
func (x *PrepareUploadFileReply) String() string
func (*PrepareUploadFileReply) Validate ¶
func (m *PrepareUploadFileReply) Validate() error
Validate checks the field values on PrepareUploadFileReply 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 (*PrepareUploadFileReply) ValidateAll ¶
func (m *PrepareUploadFileReply) ValidateAll() error
ValidateAll checks the field values on PrepareUploadFileReply 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 PrepareUploadFileReplyMultiError, or nil if none found.
type PrepareUploadFileReplyMultiError ¶
type PrepareUploadFileReplyMultiError []error
PrepareUploadFileReplyMultiError is an error wrapping multiple validation errors returned by PrepareUploadFileReply.ValidateAll() if the designated constraints aren't met.
func (PrepareUploadFileReplyMultiError) AllErrors ¶
func (m PrepareUploadFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PrepareUploadFileReplyMultiError) Error ¶
func (m PrepareUploadFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PrepareUploadFileReplyValidationError ¶
type PrepareUploadFileReplyValidationError struct {
// contains filtered or unexported fields
}
PrepareUploadFileReplyValidationError is the validation error returned by PrepareUploadFileReply.Validate if the designated constraints aren't met.
func (PrepareUploadFileReplyValidationError) Cause ¶
func (e PrepareUploadFileReplyValidationError) Cause() error
Cause function returns cause value.
func (PrepareUploadFileReplyValidationError) Error ¶
func (e PrepareUploadFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PrepareUploadFileReplyValidationError) ErrorName ¶
func (e PrepareUploadFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PrepareUploadFileReplyValidationError) Field ¶
func (e PrepareUploadFileReplyValidationError) Field() string
Field function returns field value.
func (PrepareUploadFileReplyValidationError) Key ¶
func (e PrepareUploadFileReplyValidationError) Key() bool
Key function returns key value.
func (PrepareUploadFileReplyValidationError) Reason ¶
func (e PrepareUploadFileReplyValidationError) Reason() string
Reason function returns reason value.
type PrepareUploadFileRequest ¶
type PrepareUploadFileRequest struct {
DirectoryId *uint32 `protobuf:"varint,1,opt,name=directoryId,proto3,oneof" json:"directoryId,omitempty"`
DirectoryPath *string `protobuf:"bytes,2,opt,name=directoryPath,proto3,oneof" json:"directoryPath,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Size uint32 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
Sha string `protobuf:"bytes,5,opt,name=sha,proto3" json:"sha,omitempty"`
Store string `protobuf:"bytes,6,opt,name=store,proto3" json:"store,omitempty"`
// contains filtered or unexported fields
}
func (*PrepareUploadFileRequest) Descriptor
deprecated
func (*PrepareUploadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use PrepareUploadFileRequest.ProtoReflect.Descriptor instead.
func (*PrepareUploadFileRequest) GetDirectoryId ¶
func (x *PrepareUploadFileRequest) GetDirectoryId() uint32
func (*PrepareUploadFileRequest) GetDirectoryPath ¶
func (x *PrepareUploadFileRequest) GetDirectoryPath() string
func (*PrepareUploadFileRequest) GetName ¶
func (x *PrepareUploadFileRequest) GetName() string
func (*PrepareUploadFileRequest) GetSha ¶
func (x *PrepareUploadFileRequest) GetSha() string
func (*PrepareUploadFileRequest) GetSize ¶
func (x *PrepareUploadFileRequest) GetSize() uint32
func (*PrepareUploadFileRequest) GetStore ¶
func (x *PrepareUploadFileRequest) GetStore() 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 StaticFileReply ¶
type StaticFileReply struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Mime string `protobuf:"bytes,2,opt,name=mime,proto3" json:"mime,omitempty"`
// contains filtered or unexported fields
}
func (*StaticFileReply) Descriptor
deprecated
func (*StaticFileReply) Descriptor() ([]byte, []int)
Deprecated: Use StaticFileReply.ProtoReflect.Descriptor instead.
func (*StaticFileReply) GetData ¶
func (x *StaticFileReply) GetData() []byte
func (*StaticFileReply) GetMime ¶
func (x *StaticFileReply) GetMime() string
func (*StaticFileReply) ProtoMessage ¶
func (*StaticFileReply) ProtoMessage()
func (*StaticFileReply) ProtoReflect ¶
func (x *StaticFileReply) ProtoReflect() protoreflect.Message
func (*StaticFileReply) Reset ¶
func (x *StaticFileReply) Reset()
func (*StaticFileReply) String ¶
func (x *StaticFileReply) String() string
func (*StaticFileReply) Validate ¶
func (m *StaticFileReply) Validate() error
Validate checks the field values on StaticFileReply 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 (*StaticFileReply) ValidateAll ¶
func (m *StaticFileReply) ValidateAll() error
ValidateAll checks the field values on StaticFileReply 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 StaticFileReplyMultiError, or nil if none found.
type StaticFileReplyMultiError ¶
type StaticFileReplyMultiError []error
StaticFileReplyMultiError is an error wrapping multiple validation errors returned by StaticFileReply.ValidateAll() if the designated constraints aren't met.
func (StaticFileReplyMultiError) AllErrors ¶
func (m StaticFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StaticFileReplyMultiError) Error ¶
func (m StaticFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StaticFileReplyValidationError ¶
type StaticFileReplyValidationError struct {
// contains filtered or unexported fields
}
StaticFileReplyValidationError is the validation error returned by StaticFileReply.Validate if the designated constraints aren't met.
func (StaticFileReplyValidationError) Cause ¶
func (e StaticFileReplyValidationError) Cause() error
Cause function returns cause value.
func (StaticFileReplyValidationError) Error ¶
func (e StaticFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (StaticFileReplyValidationError) ErrorName ¶
func (e StaticFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (StaticFileReplyValidationError) Field ¶
func (e StaticFileReplyValidationError) Field() string
Field function returns field value.
func (StaticFileReplyValidationError) Key ¶
func (e StaticFileReplyValidationError) Key() bool
Key function returns key value.
func (StaticFileReplyValidationError) Reason ¶
func (e StaticFileReplyValidationError) Reason() string
Reason function returns reason value.
type StaticFileRequest ¶
type StaticFileRequest struct {
Store string `protobuf:"bytes,1,opt,name=store,proto3" json:"store,omitempty"`
Key string `protobuf:"bytes,9,opt,name=key,proto3" json:"key,omitempty"`
Expire string `protobuf:"bytes,2,opt,name=expire,proto3" json:"expire,omitempty"`
Sign string `protobuf:"bytes,3,opt,name=sign,proto3" json:"sign,omitempty"`
Width uint32 `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"`
Height uint32 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
Mode string `protobuf:"bytes,6,opt,name=mode,proto3" json:"mode,omitempty"`
Download bool `protobuf:"varint,7,opt,name=download,proto3" json:"download,omitempty"`
SaveName string `protobuf:"bytes,8,opt,name=saveName,proto3" json:"saveName,omitempty"`
// contains filtered or unexported fields
}
func (*StaticFileRequest) Descriptor
deprecated
func (*StaticFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use StaticFileRequest.ProtoReflect.Descriptor instead.
func (*StaticFileRequest) GetDownload ¶
func (x *StaticFileRequest) GetDownload() bool
func (*StaticFileRequest) GetExpire ¶
func (x *StaticFileRequest) GetExpire() string
func (*StaticFileRequest) GetHeight ¶
func (x *StaticFileRequest) GetHeight() uint32
func (*StaticFileRequest) GetKey ¶
func (x *StaticFileRequest) GetKey() string
func (*StaticFileRequest) GetMode ¶
func (x *StaticFileRequest) GetMode() string
func (*StaticFileRequest) GetSaveName ¶
func (x *StaticFileRequest) GetSaveName() string
func (*StaticFileRequest) GetSign ¶
func (x *StaticFileRequest) GetSign() string
func (*StaticFileRequest) GetStore ¶
func (x *StaticFileRequest) GetStore() string
func (*StaticFileRequest) GetWidth ¶
func (x *StaticFileRequest) GetWidth() uint32
func (*StaticFileRequest) ProtoMessage ¶
func (*StaticFileRequest) ProtoMessage()
func (*StaticFileRequest) ProtoReflect ¶
func (x *StaticFileRequest) ProtoReflect() protoreflect.Message
func (*StaticFileRequest) Reset ¶
func (x *StaticFileRequest) Reset()
func (*StaticFileRequest) String ¶
func (x *StaticFileRequest) String() string
func (*StaticFileRequest) Validate ¶
func (m *StaticFileRequest) Validate() error
Validate checks the field values on StaticFileRequest 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 (*StaticFileRequest) ValidateAll ¶
func (m *StaticFileRequest) ValidateAll() error
ValidateAll checks the field values on StaticFileRequest 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 StaticFileRequestMultiError, or nil if none found.
type StaticFileRequestMultiError ¶
type StaticFileRequestMultiError []error
StaticFileRequestMultiError is an error wrapping multiple validation errors returned by StaticFileRequest.ValidateAll() if the designated constraints aren't met.
func (StaticFileRequestMultiError) AllErrors ¶
func (m StaticFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StaticFileRequestMultiError) Error ¶
func (m StaticFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StaticFileRequestValidationError ¶
type StaticFileRequestValidationError struct {
// contains filtered or unexported fields
}
StaticFileRequestValidationError is the validation error returned by StaticFileRequest.Validate if the designated constraints aren't met.
func (StaticFileRequestValidationError) Cause ¶
func (e StaticFileRequestValidationError) Cause() error
Cause function returns cause value.
func (StaticFileRequestValidationError) Error ¶
func (e StaticFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (StaticFileRequestValidationError) ErrorName ¶
func (e StaticFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (StaticFileRequestValidationError) Field ¶
func (e StaticFileRequestValidationError) Field() string
Field function returns field value.
func (StaticFileRequestValidationError) Key ¶
func (e StaticFileRequestValidationError) Key() bool
Key function returns key value.
func (StaticFileRequestValidationError) Reason ¶
func (e StaticFileRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedFileServer ¶
type UnimplementedFileServer struct{}
UnimplementedFileServer must be embedded to have forward compatible implementations.
func (UnimplementedFileServer) DeleteUserFile ¶
func (UnimplementedFileServer) DeleteUserFile(context.Context, *DeleteUserFileRequest) (*DeleteUserFileReply, error)
func (UnimplementedFileServer) GetFileBytes ¶
func (UnimplementedFileServer) GetFileBytes(*GetFileBytesRequest, File_GetFileBytesServer) error
func (UnimplementedFileServer) GetUserFile ¶
func (UnimplementedFileServer) GetUserFile(context.Context, *GetUserFileRequest) (*GetUserFileReply, error)
func (UnimplementedFileServer) ListUserFile ¶
func (UnimplementedFileServer) ListUserFile(context.Context, *ListUserFileRequest) (*ListUserFileReply, error)
func (UnimplementedFileServer) PrepareUploadFile ¶
func (UnimplementedFileServer) PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileReply, error)
func (UnimplementedFileServer) UpdateUserFile ¶
func (UnimplementedFileServer) UpdateUserFile(context.Context, *UpdateUserFileRequest) (*UpdateUserFileReply, error)
func (UnimplementedFileServer) UploadFile ¶
func (UnimplementedFileServer) UploadFile(context.Context, *UploadFileRequest) (*UploadFileReply, error)
func (UnimplementedFileServer) UploadFileByURL ¶
func (UnimplementedFileServer) UploadFileByURL(context.Context, *UploadFileByURLRequest) (*UploadFileByURLReply, error)
type UnsafeFileServer ¶
type UnsafeFileServer interface {
// contains filtered or unexported methods
}
UnsafeFileServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FileServer will result in compilation errors.
type UpdateUserFileReply ¶
type UpdateUserFileReply struct {
// contains filtered or unexported fields
}
func (*UpdateUserFileReply) Descriptor
deprecated
func (*UpdateUserFileReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserFileReply.ProtoReflect.Descriptor instead.
func (*UpdateUserFileReply) ProtoMessage ¶
func (*UpdateUserFileReply) ProtoMessage()
func (*UpdateUserFileReply) ProtoReflect ¶
func (x *UpdateUserFileReply) ProtoReflect() protoreflect.Message
func (*UpdateUserFileReply) Reset ¶
func (x *UpdateUserFileReply) Reset()
func (*UpdateUserFileReply) String ¶
func (x *UpdateUserFileReply) String() string
func (*UpdateUserFileReply) Validate ¶
func (m *UpdateUserFileReply) Validate() error
Validate checks the field values on UpdateUserFileReply 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 (*UpdateUserFileReply) ValidateAll ¶
func (m *UpdateUserFileReply) ValidateAll() error
ValidateAll checks the field values on UpdateUserFileReply 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 UpdateUserFileReplyMultiError, or nil if none found.
type UpdateUserFileReplyMultiError ¶
type UpdateUserFileReplyMultiError []error
UpdateUserFileReplyMultiError is an error wrapping multiple validation errors returned by UpdateUserFileReply.ValidateAll() if the designated constraints aren't met.
func (UpdateUserFileReplyMultiError) AllErrors ¶
func (m UpdateUserFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserFileReplyMultiError) Error ¶
func (m UpdateUserFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserFileReplyValidationError ¶
type UpdateUserFileReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateUserFileReplyValidationError is the validation error returned by UpdateUserFileReply.Validate if the designated constraints aren't met.
func (UpdateUserFileReplyValidationError) Cause ¶
func (e UpdateUserFileReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserFileReplyValidationError) Error ¶
func (e UpdateUserFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserFileReplyValidationError) ErrorName ¶
func (e UpdateUserFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserFileReplyValidationError) Field ¶
func (e UpdateUserFileReplyValidationError) Field() string
Field function returns field value.
func (UpdateUserFileReplyValidationError) Key ¶
func (e UpdateUserFileReplyValidationError) Key() bool
Key function returns key value.
func (UpdateUserFileReplyValidationError) Reason ¶
func (e UpdateUserFileReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateUserFileRequest ¶
type UpdateUserFileRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
DirectoryId uint32 `protobuf:"varint,2,opt,name=directoryId,proto3" json:"directoryId,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
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 UploadChunkFileReply ¶
type UploadChunkFileReply struct {
Sha string `protobuf:"bytes,1,opt,name=sha,proto3" json:"sha,omitempty"`
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*UploadChunkFileReply) Descriptor
deprecated
func (*UploadChunkFileReply) Descriptor() ([]byte, []int)
Deprecated: Use UploadChunkFileReply.ProtoReflect.Descriptor instead.
func (*UploadChunkFileReply) GetKey ¶
func (x *UploadChunkFileReply) GetKey() string
func (*UploadChunkFileReply) GetSha ¶
func (x *UploadChunkFileReply) GetSha() string
func (*UploadChunkFileReply) ProtoMessage ¶
func (*UploadChunkFileReply) ProtoMessage()
func (*UploadChunkFileReply) ProtoReflect ¶
func (x *UploadChunkFileReply) ProtoReflect() protoreflect.Message
func (*UploadChunkFileReply) Reset ¶
func (x *UploadChunkFileReply) Reset()
func (*UploadChunkFileReply) String ¶
func (x *UploadChunkFileReply) String() string
func (*UploadChunkFileReply) Validate ¶
func (m *UploadChunkFileReply) Validate() error
Validate checks the field values on UploadChunkFileReply 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 (*UploadChunkFileReply) ValidateAll ¶
func (m *UploadChunkFileReply) ValidateAll() error
ValidateAll checks the field values on UploadChunkFileReply 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 UploadChunkFileReplyMultiError, or nil if none found.
type UploadChunkFileReplyMultiError ¶
type UploadChunkFileReplyMultiError []error
UploadChunkFileReplyMultiError is an error wrapping multiple validation errors returned by UploadChunkFileReply.ValidateAll() if the designated constraints aren't met.
func (UploadChunkFileReplyMultiError) AllErrors ¶
func (m UploadChunkFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UploadChunkFileReplyMultiError) Error ¶
func (m UploadChunkFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UploadChunkFileReplyValidationError ¶
type UploadChunkFileReplyValidationError struct {
// contains filtered or unexported fields
}
UploadChunkFileReplyValidationError is the validation error returned by UploadChunkFileReply.Validate if the designated constraints aren't met.
func (UploadChunkFileReplyValidationError) Cause ¶
func (e UploadChunkFileReplyValidationError) Cause() error
Cause function returns cause value.
func (UploadChunkFileReplyValidationError) Error ¶
func (e UploadChunkFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UploadChunkFileReplyValidationError) ErrorName ¶
func (e UploadChunkFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UploadChunkFileReplyValidationError) Field ¶
func (e UploadChunkFileReplyValidationError) Field() string
Field function returns field value.
func (UploadChunkFileReplyValidationError) Key ¶
func (e UploadChunkFileReplyValidationError) Key() bool
Key function returns key value.
func (UploadChunkFileReplyValidationError) Reason ¶
func (e UploadChunkFileReplyValidationError) Reason() string
Reason function returns reason value.
type UploadChunkFileRequest ¶
type UploadChunkFileRequest struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
UploadId string `protobuf:"bytes,2,opt,name=uploadId,proto3" json:"uploadId,omitempty"`
Index uint32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
// contains filtered or unexported fields
}
func (*UploadChunkFileRequest) Descriptor
deprecated
func (*UploadChunkFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadChunkFileRequest.ProtoReflect.Descriptor instead.
func (*UploadChunkFileRequest) GetData ¶
func (x *UploadChunkFileRequest) GetData() []byte
func (*UploadChunkFileRequest) GetIndex ¶
func (x *UploadChunkFileRequest) GetIndex() uint32
func (*UploadChunkFileRequest) GetUploadId ¶
func (x *UploadChunkFileRequest) GetUploadId() string
func (*UploadChunkFileRequest) ProtoMessage ¶
func (*UploadChunkFileRequest) ProtoMessage()
func (*UploadChunkFileRequest) ProtoReflect ¶
func (x *UploadChunkFileRequest) ProtoReflect() protoreflect.Message
func (*UploadChunkFileRequest) Reset ¶
func (x *UploadChunkFileRequest) Reset()
func (*UploadChunkFileRequest) String ¶
func (x *UploadChunkFileRequest) String() string
func (*UploadChunkFileRequest) Validate ¶
func (m *UploadChunkFileRequest) Validate() error
Validate checks the field values on UploadChunkFileRequest 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 (*UploadChunkFileRequest) ValidateAll ¶
func (m *UploadChunkFileRequest) ValidateAll() error
ValidateAll checks the field values on UploadChunkFileRequest 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 UploadChunkFileRequestMultiError, or nil if none found.
type UploadChunkFileRequestMultiError ¶
type UploadChunkFileRequestMultiError []error
UploadChunkFileRequestMultiError is an error wrapping multiple validation errors returned by UploadChunkFileRequest.ValidateAll() if the designated constraints aren't met.
func (UploadChunkFileRequestMultiError) AllErrors ¶
func (m UploadChunkFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UploadChunkFileRequestMultiError) Error ¶
func (m UploadChunkFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UploadChunkFileRequestValidationError ¶
type UploadChunkFileRequestValidationError struct {
// contains filtered or unexported fields
}
UploadChunkFileRequestValidationError is the validation error returned by UploadChunkFileRequest.Validate if the designated constraints aren't met.
func (UploadChunkFileRequestValidationError) Cause ¶
func (e UploadChunkFileRequestValidationError) Cause() error
Cause function returns cause value.
func (UploadChunkFileRequestValidationError) Error ¶
func (e UploadChunkFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UploadChunkFileRequestValidationError) ErrorName ¶
func (e UploadChunkFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UploadChunkFileRequestValidationError) Field ¶
func (e UploadChunkFileRequestValidationError) Field() string
Field function returns field value.
func (UploadChunkFileRequestValidationError) Key ¶
func (e UploadChunkFileRequestValidationError) Key() bool
Key function returns key value.
func (UploadChunkFileRequestValidationError) Reason ¶
func (e UploadChunkFileRequestValidationError) Reason() string
Reason function returns reason value.
type UploadFileByURLReply ¶
type UploadFileByURLReply struct {
Sha string `protobuf:"bytes,1,opt,name=sha,proto3" json:"sha,omitempty"`
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*UploadFileByURLReply) Descriptor
deprecated
func (*UploadFileByURLReply) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileByURLReply.ProtoReflect.Descriptor instead.
func (*UploadFileByURLReply) GetKey ¶
func (x *UploadFileByURLReply) GetKey() string
func (*UploadFileByURLReply) GetSha ¶
func (x *UploadFileByURLReply) GetSha() string
func (*UploadFileByURLReply) ProtoMessage ¶
func (*UploadFileByURLReply) ProtoMessage()
func (*UploadFileByURLReply) ProtoReflect ¶
func (x *UploadFileByURLReply) ProtoReflect() protoreflect.Message
func (*UploadFileByURLReply) Reset ¶
func (x *UploadFileByURLReply) Reset()
func (*UploadFileByURLReply) String ¶
func (x *UploadFileByURLReply) String() string
func (*UploadFileByURLReply) Validate ¶
func (m *UploadFileByURLReply) Validate() error
Validate checks the field values on UploadFileByURLReply 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 (*UploadFileByURLReply) ValidateAll ¶
func (m *UploadFileByURLReply) ValidateAll() error
ValidateAll checks the field values on UploadFileByURLReply 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 UploadFileByURLReplyMultiError, or nil if none found.
type UploadFileByURLReplyMultiError ¶
type UploadFileByURLReplyMultiError []error
UploadFileByURLReplyMultiError is an error wrapping multiple validation errors returned by UploadFileByURLReply.ValidateAll() if the designated constraints aren't met.
func (UploadFileByURLReplyMultiError) AllErrors ¶
func (m UploadFileByURLReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UploadFileByURLReplyMultiError) Error ¶
func (m UploadFileByURLReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UploadFileByURLReplyValidationError ¶
type UploadFileByURLReplyValidationError struct {
// contains filtered or unexported fields
}
UploadFileByURLReplyValidationError is the validation error returned by UploadFileByURLReply.Validate if the designated constraints aren't met.
func (UploadFileByURLReplyValidationError) Cause ¶
func (e UploadFileByURLReplyValidationError) Cause() error
Cause function returns cause value.
func (UploadFileByURLReplyValidationError) Error ¶
func (e UploadFileByURLReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UploadFileByURLReplyValidationError) ErrorName ¶
func (e UploadFileByURLReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UploadFileByURLReplyValidationError) Field ¶
func (e UploadFileByURLReplyValidationError) Field() string
Field function returns field value.
func (UploadFileByURLReplyValidationError) Key ¶
func (e UploadFileByURLReplyValidationError) Key() bool
Key function returns key value.
func (UploadFileByURLReplyValidationError) Reason ¶
func (e UploadFileByURLReplyValidationError) Reason() string
Reason function returns reason value.
type UploadFileByURLRequest ¶
type UploadFileByURLRequest struct {
DirectoryPath *string `protobuf:"bytes,1,opt,name=directoryPath,proto3,oneof" json:"directoryPath,omitempty"`
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Store string `protobuf:"bytes,4,opt,name=store,proto3" json:"store,omitempty"`
// contains filtered or unexported fields
}
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) 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 UploadFileReply ¶
type UploadFileReply struct {
Sha string `protobuf:"bytes,1,opt,name=sha,proto3" json:"sha,omitempty"`
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*UploadFileReply) Descriptor
deprecated
func (*UploadFileReply) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileReply.ProtoReflect.Descriptor instead.
func (*UploadFileReply) GetKey ¶
func (x *UploadFileReply) GetKey() string
func (*UploadFileReply) GetSha ¶
func (x *UploadFileReply) GetSha() string
func (*UploadFileReply) ProtoMessage ¶
func (*UploadFileReply) ProtoMessage()
func (*UploadFileReply) ProtoReflect ¶
func (x *UploadFileReply) ProtoReflect() protoreflect.Message
func (*UploadFileReply) Reset ¶
func (x *UploadFileReply) Reset()
func (*UploadFileReply) String ¶
func (x *UploadFileReply) String() string
func (*UploadFileReply) Validate ¶
func (m *UploadFileReply) Validate() error
Validate checks the field values on UploadFileReply 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 (*UploadFileReply) ValidateAll ¶
func (m *UploadFileReply) ValidateAll() error
ValidateAll checks the field values on UploadFileReply 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 UploadFileReplyMultiError, or nil if none found.
type UploadFileReplyMultiError ¶
type UploadFileReplyMultiError []error
UploadFileReplyMultiError is an error wrapping multiple validation errors returned by UploadFileReply.ValidateAll() if the designated constraints aren't met.
func (UploadFileReplyMultiError) AllErrors ¶
func (m UploadFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UploadFileReplyMultiError) Error ¶
func (m UploadFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UploadFileReplyValidationError ¶
type UploadFileReplyValidationError struct {
// contains filtered or unexported fields
}
UploadFileReplyValidationError is the validation error returned by UploadFileReply.Validate if the designated constraints aren't met.
func (UploadFileReplyValidationError) Cause ¶
func (e UploadFileReplyValidationError) Cause() error
Cause function returns cause value.
func (UploadFileReplyValidationError) Error ¶
func (e UploadFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UploadFileReplyValidationError) ErrorName ¶
func (e UploadFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UploadFileReplyValidationError) Field ¶
func (e UploadFileReplyValidationError) Field() string
Field function returns field value.
func (UploadFileReplyValidationError) Key ¶
func (e UploadFileReplyValidationError) Key() bool
Key function returns key value.
func (UploadFileReplyValidationError) Reason ¶
func (e UploadFileReplyValidationError) Reason() string
Reason function returns reason value.
type UploadFileRequest ¶
type UploadFileRequest struct {
DirectoryId *uint32 `protobuf:"varint,1,opt,name=directoryId,proto3,oneof" json:"directoryId,omitempty"`
DirectoryPath *string `protobuf:"bytes,2,opt,name=directoryPath,proto3,oneof" json:"directoryPath,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Sha string `protobuf:"bytes,4,opt,name=sha,proto3" json:"sha,omitempty"`
Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
Store string `protobuf:"bytes,6,opt,name=store,proto3" json:"store,omitempty"`
// contains filtered or unexported fields
}
func (*UploadFileRequest) Descriptor
deprecated
func (*UploadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileRequest.ProtoReflect.Descriptor instead.
func (*UploadFileRequest) GetData ¶
func (x *UploadFileRequest) GetData() []byte
func (*UploadFileRequest) GetDirectoryId ¶
func (x *UploadFileRequest) GetDirectoryId() uint32
func (*UploadFileRequest) GetDirectoryPath ¶
func (x *UploadFileRequest) GetDirectoryPath() string
func (*UploadFileRequest) GetName ¶
func (x *UploadFileRequest) GetName() string
func (*UploadFileRequest) GetSha ¶
func (x *UploadFileRequest) GetSha() string
func (*UploadFileRequest) GetStore ¶
func (x *UploadFileRequest) GetStore() string
func (*UploadFileRequest) ProtoMessage ¶
func (*UploadFileRequest) ProtoMessage()
func (*UploadFileRequest) ProtoReflect ¶
func (x *UploadFileRequest) ProtoReflect() protoreflect.Message
func (*UploadFileRequest) Reset ¶
func (x *UploadFileRequest) Reset()
func (*UploadFileRequest) String ¶
func (x *UploadFileRequest) String() string
func (*UploadFileRequest) Validate ¶
func (m *UploadFileRequest) Validate() error
Validate checks the field values on UploadFileRequest 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 (*UploadFileRequest) ValidateAll ¶
func (m *UploadFileRequest) ValidateAll() error
ValidateAll checks the field values on UploadFileRequest 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 UploadFileRequestMultiError, or nil if none found.
type UploadFileRequestMultiError ¶
type UploadFileRequestMultiError []error
UploadFileRequestMultiError is an error wrapping multiple validation errors returned by UploadFileRequest.ValidateAll() if the designated constraints aren't met.
func (UploadFileRequestMultiError) AllErrors ¶
func (m UploadFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UploadFileRequestMultiError) Error ¶
func (m UploadFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UploadFileRequestValidationError ¶
type UploadFileRequestValidationError struct {
// contains filtered or unexported fields
}
UploadFileRequestValidationError is the validation error returned by UploadFileRequest.Validate if the designated constraints aren't met.
func (UploadFileRequestValidationError) Cause ¶
func (e UploadFileRequestValidationError) Cause() error
Cause function returns cause value.
func (UploadFileRequestValidationError) Error ¶
func (e UploadFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UploadFileRequestValidationError) ErrorName ¶
func (e UploadFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UploadFileRequestValidationError) Field ¶
func (e UploadFileRequestValidationError) Field() string
Field function returns field value.
func (UploadFileRequestValidationError) Key ¶
func (e UploadFileRequestValidationError) Key() bool
Key function returns key value.
func (UploadFileRequestValidationError) Reason ¶
func (e UploadFileRequestValidationError) Reason() string
Reason function returns reason value.