Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterFileHTTPServer(s *http.Server, srv FileHTTPServer)
- func RegisterFileServer(s grpc.ServiceRegistrar, srv FileServer)
- type DeleteFileReply
- func (*DeleteFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteFileReply) GetTotal() uint32
- func (*DeleteFileReply) ProtoMessage()
- func (x *DeleteFileReply) ProtoReflect() protoreflect.Message
- func (x *DeleteFileReply) Reset()
- func (x *DeleteFileReply) String() string
- func (m *DeleteFileReply) Validate() error
- func (m *DeleteFileReply) ValidateAll() error
- type DeleteFileReplyMultiError
- type DeleteFileReplyValidationError
- func (e DeleteFileReplyValidationError) Cause() error
- func (e DeleteFileReplyValidationError) Error() string
- func (e DeleteFileReplyValidationError) ErrorName() string
- func (e DeleteFileReplyValidationError) Field() string
- func (e DeleteFileReplyValidationError) Key() bool
- func (e DeleteFileReplyValidationError) Reason() string
- type DeleteFileRequest
- func (*DeleteFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteFileRequest) GetIds() []uint32
- func (*DeleteFileRequest) ProtoMessage()
- func (x *DeleteFileRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteFileRequest) Reset()
- func (x *DeleteFileRequest) String() string
- func (m *DeleteFileRequest) Validate() error
- func (m *DeleteFileRequest) ValidateAll() error
- type DeleteFileRequestMultiError
- type DeleteFileRequestValidationError
- func (e DeleteFileRequestValidationError) Cause() error
- func (e DeleteFileRequestValidationError) Error() string
- func (e DeleteFileRequestValidationError) ErrorName() string
- func (e DeleteFileRequestValidationError) Field() string
- func (e DeleteFileRequestValidationError) Key() bool
- func (e DeleteFileRequestValidationError) 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) GetSaveName() string
- func (x *DownloadFileRequest) GetSign() string
- func (x *DownloadFileRequest) GetSrc() 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 FileClient
- type FileHTTPClient
- type FileHTTPClientImpl
- func (c *FileHTTPClientImpl) DeleteFile(ctx context.Context, in *DeleteFileRequest, opts ...http.CallOption) (*DeleteFileReply, error)
- func (c *FileHTTPClientImpl) GetFile(ctx context.Context, in *GetFileRequest, opts ...http.CallOption) (*GetFileReply, error)
- func (c *FileHTTPClientImpl) ListFile(ctx context.Context, in *ListFileRequest, opts ...http.CallOption) (*ListFileReply, error)
- func (c *FileHTTPClientImpl) PrepareUploadFile(ctx context.Context, in *PrepareUploadFileRequest, opts ...http.CallOption) (*PrepareUploadFileReply, error)
- func (c *FileHTTPClientImpl) UpdateFile(ctx context.Context, in *UpdateFileRequest, opts ...http.CallOption) (*UpdateFileReply, error)
- type FileHTTPServer
- type FileServer
- type GetFileReply
- func (*GetFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetFileReply) GetChunkCount() uint32
- func (x *GetFileReply) GetCreatedAt() uint32
- func (x *GetFileReply) GetDirectoryId() uint32
- func (x *GetFileReply) GetId() uint32
- func (x *GetFileReply) GetName() string
- func (x *GetFileReply) GetSha() string
- func (x *GetFileReply) GetSize() uint32
- func (x *GetFileReply) GetSrc() string
- func (x *GetFileReply) GetStatus() string
- func (x *GetFileReply) GetType() string
- func (x *GetFileReply) GetUpdatedAt() uint32
- func (x *GetFileReply) GetUploadId() string
- func (x *GetFileReply) GetUrl() string
- func (*GetFileReply) ProtoMessage()
- func (x *GetFileReply) ProtoReflect() protoreflect.Message
- func (x *GetFileReply) Reset()
- func (x *GetFileReply) String() string
- func (m *GetFileReply) Validate() error
- func (m *GetFileReply) ValidateAll() error
- type GetFileReplyMultiError
- type GetFileReplyValidationError
- func (e GetFileReplyValidationError) Cause() error
- func (e GetFileReplyValidationError) Error() string
- func (e GetFileReplyValidationError) ErrorName() string
- func (e GetFileReplyValidationError) Field() string
- func (e GetFileReplyValidationError) Key() bool
- func (e GetFileReplyValidationError) Reason() string
- type GetFileRequest
- func (*GetFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFileRequest) GetId() uint32
- func (x *GetFileRequest) GetSha() string
- func (x *GetFileRequest) GetSrc() string
- func (*GetFileRequest) ProtoMessage()
- func (x *GetFileRequest) ProtoReflect() protoreflect.Message
- func (x *GetFileRequest) Reset()
- func (x *GetFileRequest) String() string
- func (m *GetFileRequest) Validate() error
- func (m *GetFileRequest) ValidateAll() error
- type GetFileRequestMultiError
- type GetFileRequestValidationError
- func (e GetFileRequestValidationError) Cause() error
- func (e GetFileRequestValidationError) Error() string
- func (e GetFileRequestValidationError) ErrorName() string
- func (e GetFileRequestValidationError) Field() string
- func (e GetFileRequestValidationError) Key() bool
- func (e GetFileRequestValidationError) Reason() string
- type ListFileReply
- func (*ListFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListFileReply) GetList() []*ListFileReply_File
- func (x *ListFileReply) GetTotal() uint32
- func (*ListFileReply) ProtoMessage()
- func (x *ListFileReply) ProtoReflect() protoreflect.Message
- func (x *ListFileReply) Reset()
- func (x *ListFileReply) String() string
- func (m *ListFileReply) Validate() error
- func (m *ListFileReply) ValidateAll() error
- type ListFileReplyMultiError
- type ListFileReplyValidationError
- func (e ListFileReplyValidationError) Cause() error
- func (e ListFileReplyValidationError) Error() string
- func (e ListFileReplyValidationError) ErrorName() string
- func (e ListFileReplyValidationError) Field() string
- func (e ListFileReplyValidationError) Key() bool
- func (e ListFileReplyValidationError) Reason() string
- type ListFileReply_File
- func (*ListFileReply_File) Descriptor() ([]byte, []int)deprecated
- func (x *ListFileReply_File) GetChunkCount() uint32
- func (x *ListFileReply_File) GetCreatedAt() uint32
- func (x *ListFileReply_File) GetDirectoryId() uint32
- func (x *ListFileReply_File) GetId() uint32
- func (x *ListFileReply_File) GetName() string
- func (x *ListFileReply_File) GetSha() string
- func (x *ListFileReply_File) GetSize() uint32
- func (x *ListFileReply_File) GetSrc() string
- func (x *ListFileReply_File) GetStatus() string
- func (x *ListFileReply_File) GetType() string
- func (x *ListFileReply_File) GetUpdatedAt() uint32
- func (x *ListFileReply_File) GetUploadId() string
- func (x *ListFileReply_File) GetUrl() string
- func (*ListFileReply_File) ProtoMessage()
- func (x *ListFileReply_File) ProtoReflect() protoreflect.Message
- func (x *ListFileReply_File) Reset()
- func (x *ListFileReply_File) String() string
- func (m *ListFileReply_File) Validate() error
- func (m *ListFileReply_File) ValidateAll() error
- type ListFileReply_FileMultiError
- type ListFileReply_FileValidationError
- func (e ListFileReply_FileValidationError) Cause() error
- func (e ListFileReply_FileValidationError) Error() string
- func (e ListFileReply_FileValidationError) ErrorName() string
- func (e ListFileReply_FileValidationError) Field() string
- func (e ListFileReply_FileValidationError) Key() bool
- func (e ListFileReply_FileValidationError) Reason() string
- type ListFileRequest
- func (*ListFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListFileRequest) GetDirectoryId() uint32
- func (x *ListFileRequest) GetName() string
- func (x *ListFileRequest) GetOrder() string
- func (x *ListFileRequest) GetOrderBy() string
- func (x *ListFileRequest) GetPage() uint32
- func (x *ListFileRequest) GetPageSize() uint32
- func (x *ListFileRequest) GetStatus() string
- func (*ListFileRequest) ProtoMessage()
- func (x *ListFileRequest) ProtoReflect() protoreflect.Message
- func (x *ListFileRequest) Reset()
- func (x *ListFileRequest) String() string
- func (m *ListFileRequest) Validate() error
- func (m *ListFileRequest) ValidateAll() error
- type ListFileRequestMultiError
- type ListFileRequestValidationError
- func (e ListFileRequestValidationError) Cause() error
- func (e ListFileRequestValidationError) Error() string
- func (e ListFileRequestValidationError) ErrorName() string
- func (e ListFileRequestValidationError) Field() string
- func (e ListFileRequestValidationError) Key() bool
- func (e ListFileRequestValidationError) Reason() string
- type PrepareUploadFileReply
- func (*PrepareUploadFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *PrepareUploadFileReply) GetChunkCount() uint32
- func (x *PrepareUploadFileReply) GetChunkSize() uint32
- func (x *PrepareUploadFileReply) GetSha() string
- func (x *PrepareUploadFileReply) GetSrc() string
- func (x *PrepareUploadFileReply) GetUploadChunks() []uint32
- func (x *PrepareUploadFileReply) GetUploadId() string
- func (x *PrepareUploadFileReply) GetUploaded() bool
- func (x *PrepareUploadFileReply) GetUrl() string
- 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 (*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) GetMode() string
- func (x *StaticFileRequest) GetSaveName() string
- func (x *StaticFileRequest) GetSign() string
- func (x *StaticFileRequest) GetSrc() 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) DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileReply, error)
- func (UnimplementedFileServer) GetFile(context.Context, *GetFileRequest) (*GetFileReply, error)
- func (UnimplementedFileServer) ListFile(context.Context, *ListFileRequest) (*ListFileReply, error)
- func (UnimplementedFileServer) PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileReply, error)
- func (UnimplementedFileServer) UpdateFile(context.Context, *UpdateFileRequest) (*UpdateFileReply, error)
- func (UnimplementedFileServer) UploadFile(context.Context, *UploadFileRequest) (*UploadFileReply, error)
- type UnsafeFileServer
- type UpdateFileReply
- func (*UpdateFileReply) Descriptor() ([]byte, []int)deprecated
- func (*UpdateFileReply) ProtoMessage()
- func (x *UpdateFileReply) ProtoReflect() protoreflect.Message
- func (x *UpdateFileReply) Reset()
- func (x *UpdateFileReply) String() string
- func (m *UpdateFileReply) Validate() error
- func (m *UpdateFileReply) ValidateAll() error
- type UpdateFileReplyMultiError
- type UpdateFileReplyValidationError
- func (e UpdateFileReplyValidationError) Cause() error
- func (e UpdateFileReplyValidationError) Error() string
- func (e UpdateFileReplyValidationError) ErrorName() string
- func (e UpdateFileReplyValidationError) Field() string
- func (e UpdateFileReplyValidationError) Key() bool
- func (e UpdateFileReplyValidationError) Reason() string
- type UpdateFileRequest
- func (*UpdateFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateFileRequest) GetDirectoryId() uint32
- func (x *UpdateFileRequest) GetId() uint32
- func (x *UpdateFileRequest) GetName() string
- func (*UpdateFileRequest) ProtoMessage()
- func (x *UpdateFileRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateFileRequest) Reset()
- func (x *UpdateFileRequest) String() string
- func (m *UpdateFileRequest) Validate() error
- func (m *UpdateFileRequest) ValidateAll() error
- type UpdateFileRequestMultiError
- type UpdateFileRequestValidationError
- func (e UpdateFileRequestValidationError) Cause() error
- func (e UpdateFileRequestValidationError) Error() string
- func (e UpdateFileRequestValidationError) ErrorName() string
- func (e UpdateFileRequestValidationError) Field() string
- func (e UpdateFileRequestValidationError) Key() bool
- func (e UpdateFileRequestValidationError) Reason() string
- type UploadFileReply
- func (*UploadFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileReply) GetSha() string
- func (x *UploadFileReply) GetSrc() string
- func (x *UploadFileReply) GetUrl() 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) GetIndex() uint32
- func (x *UploadFileRequest) GetUploadId() 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_GetFile_FullMethodName = "/resource.api.resource.file.v1.File/GetFile" File_ListFile_FullMethodName = "/resource.api.resource.file.v1.File/ListFile" File_PrepareUploadFile_FullMethodName = "/resource.api.resource.file.v1.File/PrepareUploadFile" File_UploadFile_FullMethodName = "/resource.api.resource.file.v1.File/UploadFile" File_UpdateFile_FullMethodName = "/resource.api.resource.file.v1.File/UpdateFile" File_DeleteFile_FullMethodName = "/resource.api.resource.file.v1.File/DeleteFile" )
const OperationFileDeleteFile = "/resource.api.resource.file.v1.File/DeleteFile"
const OperationFileGetFile = "/resource.api.resource.file.v1.File/GetFile"
const OperationFileListFile = "/resource.api.resource.file.v1.File/ListFile"
const OperationFilePrepareUploadFile = "/resource.api.resource.file.v1.File/PrepareUploadFile"
const OperationFileUpdateFile = "/resource.api.resource.file.v1.File/UpdateFile"
Variables ¶
var File_ServiceDesc = grpc.ServiceDesc{ ServiceName: "resource.api.resource.file.v1.File", HandlerType: (*FileServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetFile", Handler: _File_GetFile_Handler, }, { MethodName: "ListFile", Handler: _File_ListFile_Handler, }, { MethodName: "PrepareUploadFile", Handler: _File_PrepareUploadFile_Handler, }, { MethodName: "UploadFile", Handler: _File_UploadFile_Handler, }, { MethodName: "UpdateFile", Handler: _File_UpdateFile_Handler, }, { MethodName: "DeleteFile", Handler: _File_DeleteFile_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/resource/file/resource_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_resource_file_resource_file_proto protoreflect.FileDescriptor
var File_api_resource_file_resource_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 DeleteFileReply ¶
type DeleteFileReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*DeleteFileReply) Descriptor
deprecated
func (*DeleteFileReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFileReply.ProtoReflect.Descriptor instead.
func (*DeleteFileReply) GetTotal ¶
func (x *DeleteFileReply) GetTotal() uint32
func (*DeleteFileReply) ProtoMessage ¶
func (*DeleteFileReply) ProtoMessage()
func (*DeleteFileReply) ProtoReflect ¶
func (x *DeleteFileReply) ProtoReflect() protoreflect.Message
func (*DeleteFileReply) Reset ¶
func (x *DeleteFileReply) Reset()
func (*DeleteFileReply) String ¶
func (x *DeleteFileReply) String() string
func (*DeleteFileReply) Validate ¶
func (m *DeleteFileReply) Validate() error
Validate checks the field values on DeleteFileReply 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 (*DeleteFileReply) ValidateAll ¶
func (m *DeleteFileReply) ValidateAll() error
ValidateAll checks the field values on DeleteFileReply 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 DeleteFileReplyMultiError, or nil if none found.
type DeleteFileReplyMultiError ¶
type DeleteFileReplyMultiError []error
DeleteFileReplyMultiError is an error wrapping multiple validation errors returned by DeleteFileReply.ValidateAll() if the designated constraints aren't met.
func (DeleteFileReplyMultiError) AllErrors ¶
func (m DeleteFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteFileReplyMultiError) Error ¶
func (m DeleteFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteFileReplyValidationError ¶
type DeleteFileReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteFileReplyValidationError is the validation error returned by DeleteFileReply.Validate if the designated constraints aren't met.
func (DeleteFileReplyValidationError) Cause ¶
func (e DeleteFileReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteFileReplyValidationError) Error ¶
func (e DeleteFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteFileReplyValidationError) ErrorName ¶
func (e DeleteFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteFileReplyValidationError) Field ¶
func (e DeleteFileReplyValidationError) Field() string
Field function returns field value.
func (DeleteFileReplyValidationError) Key ¶
func (e DeleteFileReplyValidationError) Key() bool
Key function returns key value.
func (DeleteFileReplyValidationError) Reason ¶
func (e DeleteFileReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteFileRequest ¶
type DeleteFileRequest struct { Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*DeleteFileRequest) Descriptor
deprecated
func (*DeleteFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFileRequest.ProtoReflect.Descriptor instead.
func (*DeleteFileRequest) GetIds ¶
func (x *DeleteFileRequest) GetIds() []uint32
func (*DeleteFileRequest) ProtoMessage ¶
func (*DeleteFileRequest) ProtoMessage()
func (*DeleteFileRequest) ProtoReflect ¶
func (x *DeleteFileRequest) ProtoReflect() protoreflect.Message
func (*DeleteFileRequest) Reset ¶
func (x *DeleteFileRequest) Reset()
func (*DeleteFileRequest) String ¶
func (x *DeleteFileRequest) String() string
func (*DeleteFileRequest) Validate ¶
func (m *DeleteFileRequest) Validate() error
Validate checks the field values on DeleteFileRequest 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 (*DeleteFileRequest) ValidateAll ¶
func (m *DeleteFileRequest) ValidateAll() error
ValidateAll checks the field values on DeleteFileRequest 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 DeleteFileRequestMultiError, or nil if none found.
type DeleteFileRequestMultiError ¶
type DeleteFileRequestMultiError []error
DeleteFileRequestMultiError is an error wrapping multiple validation errors returned by DeleteFileRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteFileRequestMultiError) AllErrors ¶
func (m DeleteFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteFileRequestMultiError) Error ¶
func (m DeleteFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteFileRequestValidationError ¶
type DeleteFileRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteFileRequestValidationError is the validation error returned by DeleteFileRequest.Validate if the designated constraints aren't met.
func (DeleteFileRequestValidationError) Cause ¶
func (e DeleteFileRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteFileRequestValidationError) Error ¶
func (e DeleteFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteFileRequestValidationError) ErrorName ¶
func (e DeleteFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteFileRequestValidationError) Field ¶
func (e DeleteFileRequestValidationError) Field() string
Field function returns field value.
func (DeleteFileRequestValidationError) Key ¶
func (e DeleteFileRequestValidationError) Key() bool
Key function returns key value.
func (DeleteFileRequestValidationError) Reason ¶
func (e DeleteFileRequestValidationError) Reason() string
Reason function returns reason value.
type DownloadFileReply ¶ added in v1.0.12
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
added in
v1.0.12
func (*DownloadFileReply) Descriptor() ([]byte, []int)
Deprecated: Use DownloadFileReply.ProtoReflect.Descriptor instead.
func (*DownloadFileReply) GetData ¶ added in v1.0.12
func (x *DownloadFileReply) GetData() []byte
func (*DownloadFileReply) GetMime ¶ added in v1.0.12
func (x *DownloadFileReply) GetMime() string
func (*DownloadFileReply) ProtoMessage ¶ added in v1.0.12
func (*DownloadFileReply) ProtoMessage()
func (*DownloadFileReply) ProtoReflect ¶ added in v1.0.12
func (x *DownloadFileReply) ProtoReflect() protoreflect.Message
func (*DownloadFileReply) Reset ¶ added in v1.0.12
func (x *DownloadFileReply) Reset()
func (*DownloadFileReply) String ¶ added in v1.0.12
func (x *DownloadFileReply) String() string
func (*DownloadFileReply) Validate ¶ added in v1.0.12
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 ¶ added in v1.0.12
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 ¶ added in v1.0.12
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 ¶ added in v1.0.12
func (m DownloadFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DownloadFileReplyMultiError) Error ¶ added in v1.0.12
func (m DownloadFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DownloadFileReplyValidationError ¶ added in v1.0.12
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 ¶ added in v1.0.12
func (e DownloadFileReplyValidationError) Cause() error
Cause function returns cause value.
func (DownloadFileReplyValidationError) Error ¶ added in v1.0.12
func (e DownloadFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DownloadFileReplyValidationError) ErrorName ¶ added in v1.0.12
func (e DownloadFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DownloadFileReplyValidationError) Field ¶ added in v1.0.12
func (e DownloadFileReplyValidationError) Field() string
Field function returns field value.
func (DownloadFileReplyValidationError) Key ¶ added in v1.0.12
func (e DownloadFileReplyValidationError) Key() bool
Key function returns key value.
func (DownloadFileReplyValidationError) Reason ¶ added in v1.0.12
func (e DownloadFileReplyValidationError) Reason() string
Reason function returns reason value.
type DownloadFileRequest ¶ added in v1.0.12
type DownloadFileRequest struct { Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,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
added in
v1.0.12
func (*DownloadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use DownloadFileRequest.ProtoReflect.Descriptor instead.
func (*DownloadFileRequest) GetExpire ¶ added in v1.0.12
func (x *DownloadFileRequest) GetExpire() string
func (*DownloadFileRequest) GetSaveName ¶ added in v1.0.12
func (x *DownloadFileRequest) GetSaveName() string
func (*DownloadFileRequest) GetSign ¶ added in v1.0.12
func (x *DownloadFileRequest) GetSign() string
func (*DownloadFileRequest) GetSrc ¶ added in v1.0.12
func (x *DownloadFileRequest) GetSrc() string
func (*DownloadFileRequest) ProtoMessage ¶ added in v1.0.12
func (*DownloadFileRequest) ProtoMessage()
func (*DownloadFileRequest) ProtoReflect ¶ added in v1.0.12
func (x *DownloadFileRequest) ProtoReflect() protoreflect.Message
func (*DownloadFileRequest) Reset ¶ added in v1.0.12
func (x *DownloadFileRequest) Reset()
func (*DownloadFileRequest) String ¶ added in v1.0.12
func (x *DownloadFileRequest) String() string
func (*DownloadFileRequest) Validate ¶ added in v1.0.12
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 ¶ added in v1.0.12
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 ¶ added in v1.0.12
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 ¶ added in v1.0.12
func (m DownloadFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DownloadFileRequestMultiError) Error ¶ added in v1.0.12
func (m DownloadFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DownloadFileRequestValidationError ¶ added in v1.0.12
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 ¶ added in v1.0.12
func (e DownloadFileRequestValidationError) Cause() error
Cause function returns cause value.
func (DownloadFileRequestValidationError) Error ¶ added in v1.0.12
func (e DownloadFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DownloadFileRequestValidationError) ErrorName ¶ added in v1.0.12
func (e DownloadFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DownloadFileRequestValidationError) Field ¶ added in v1.0.12
func (e DownloadFileRequestValidationError) Field() string
Field function returns field value.
func (DownloadFileRequestValidationError) Key ¶ added in v1.0.12
func (e DownloadFileRequestValidationError) Key() bool
Key function returns key value.
func (DownloadFileRequestValidationError) Reason ¶ added in v1.0.12
func (e DownloadFileRequestValidationError) Reason() string
Reason function returns reason value.
type FileClient ¶
type FileClient interface { // GetFile 获取指定的文件信息 GetFile(ctx context.Context, in *GetFileRequest, opts ...grpc.CallOption) (*GetFileReply, error) // ListFile 获取文件信息列表 ListFile(ctx context.Context, in *ListFileRequest, opts ...grpc.CallOption) (*ListFileReply, 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) // UpdateFile 更新文件信息 UpdateFile(ctx context.Context, in *UpdateFileRequest, opts ...grpc.CallOption) (*UpdateFileReply, error) // DeleteFile 删除文件信息 DeleteFile(ctx context.Context, in *DeleteFileRequest, opts ...grpc.CallOption) (*DeleteFileReply, 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 { DeleteFile(ctx context.Context, req *DeleteFileRequest, opts ...http.CallOption) (rsp *DeleteFileReply, err error) GetFile(ctx context.Context, req *GetFileRequest, opts ...http.CallOption) (rsp *GetFileReply, err error) ListFile(ctx context.Context, req *ListFileRequest, opts ...http.CallOption) (rsp *ListFileReply, err error) PrepareUploadFile(ctx context.Context, req *PrepareUploadFileRequest, opts ...http.CallOption) (rsp *PrepareUploadFileReply, err error) UpdateFile(ctx context.Context, req *UpdateFileRequest, opts ...http.CallOption) (rsp *UpdateFileReply, err error) }
func NewFileHTTPClient ¶
func NewFileHTTPClient(client *http.Client) FileHTTPClient
type FileHTTPClientImpl ¶
type FileHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*FileHTTPClientImpl) DeleteFile ¶
func (c *FileHTTPClientImpl) DeleteFile(ctx context.Context, in *DeleteFileRequest, opts ...http.CallOption) (*DeleteFileReply, error)
func (*FileHTTPClientImpl) GetFile ¶
func (c *FileHTTPClientImpl) GetFile(ctx context.Context, in *GetFileRequest, opts ...http.CallOption) (*GetFileReply, error)
func (*FileHTTPClientImpl) ListFile ¶
func (c *FileHTTPClientImpl) ListFile(ctx context.Context, in *ListFileRequest, opts ...http.CallOption) (*ListFileReply, error)
func (*FileHTTPClientImpl) PrepareUploadFile ¶
func (c *FileHTTPClientImpl) PrepareUploadFile(ctx context.Context, in *PrepareUploadFileRequest, opts ...http.CallOption) (*PrepareUploadFileReply, error)
func (*FileHTTPClientImpl) UpdateFile ¶
func (c *FileHTTPClientImpl) UpdateFile(ctx context.Context, in *UpdateFileRequest, opts ...http.CallOption) (*UpdateFileReply, error)
type FileHTTPServer ¶
type FileHTTPServer interface { // DeleteFile DeleteFile 删除文件信息 DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileReply, error) // GetFile GetFile 获取指定的文件信息 GetFile(context.Context, *GetFileRequest) (*GetFileReply, error) // ListFile ListFile 获取文件信息列表 ListFile(context.Context, *ListFileRequest) (*ListFileReply, error) // PrepareUploadFile PrepareUploadFile 预上传文件信息 PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileReply, error) // UpdateFile UpdateFile 更新文件信息 UpdateFile(context.Context, *UpdateFileRequest) (*UpdateFileReply, error) }
type FileServer ¶
type FileServer interface { // GetFile 获取指定的文件信息 GetFile(context.Context, *GetFileRequest) (*GetFileReply, error) // ListFile 获取文件信息列表 ListFile(context.Context, *ListFileRequest) (*ListFileReply, error) // PrepareUploadFile 预上传文件信息 PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileReply, error) // UploadFile 上传文件 UploadFile(context.Context, *UploadFileRequest) (*UploadFileReply, error) // UpdateFile 更新文件信息 UpdateFile(context.Context, *UpdateFileRequest) (*UpdateFileReply, error) // DeleteFile 删除文件信息 DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileReply, error) // contains filtered or unexported methods }
FileServer is the server API for File service. All implementations must embed UnimplementedFileServer for forward compatibility
type GetFileReply ¶
type GetFileReply 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"` Src string `protobuf:"bytes,7,opt,name=src,proto3" json:"src,omitempty"` Url string `protobuf:"bytes,8,opt,name=url,proto3" json:"url,omitempty"` Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"` UploadId string `protobuf:"bytes,10,opt,name=uploadId,proto3" json:"uploadId,omitempty"` ChunkCount uint32 `protobuf:"varint,11,opt,name=chunkCount,proto3" json:"chunkCount,omitempty"` CreatedAt uint32 `protobuf:"varint,12,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt uint32 `protobuf:"varint,13,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*GetFileReply) Descriptor
deprecated
func (*GetFileReply) Descriptor() ([]byte, []int)
Deprecated: Use GetFileReply.ProtoReflect.Descriptor instead.
func (*GetFileReply) GetChunkCount ¶
func (x *GetFileReply) GetChunkCount() uint32
func (*GetFileReply) GetCreatedAt ¶
func (x *GetFileReply) GetCreatedAt() uint32
func (*GetFileReply) GetDirectoryId ¶
func (x *GetFileReply) GetDirectoryId() uint32
func (*GetFileReply) GetId ¶
func (x *GetFileReply) GetId() uint32
func (*GetFileReply) GetName ¶
func (x *GetFileReply) GetName() string
func (*GetFileReply) GetSha ¶
func (x *GetFileReply) GetSha() string
func (*GetFileReply) GetSize ¶
func (x *GetFileReply) GetSize() uint32
func (*GetFileReply) GetSrc ¶
func (x *GetFileReply) GetSrc() string
func (*GetFileReply) GetStatus ¶
func (x *GetFileReply) GetStatus() string
func (*GetFileReply) GetType ¶
func (x *GetFileReply) GetType() string
func (*GetFileReply) GetUpdatedAt ¶
func (x *GetFileReply) GetUpdatedAt() uint32
func (*GetFileReply) GetUploadId ¶
func (x *GetFileReply) GetUploadId() string
func (*GetFileReply) GetUrl ¶
func (x *GetFileReply) GetUrl() string
func (*GetFileReply) ProtoMessage ¶
func (*GetFileReply) ProtoMessage()
func (*GetFileReply) ProtoReflect ¶
func (x *GetFileReply) ProtoReflect() protoreflect.Message
func (*GetFileReply) Reset ¶
func (x *GetFileReply) Reset()
func (*GetFileReply) String ¶
func (x *GetFileReply) String() string
func (*GetFileReply) Validate ¶
func (m *GetFileReply) Validate() error
Validate checks the field values on GetFileReply 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 (*GetFileReply) ValidateAll ¶
func (m *GetFileReply) ValidateAll() error
ValidateAll checks the field values on GetFileReply 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 GetFileReplyMultiError, or nil if none found.
type GetFileReplyMultiError ¶
type GetFileReplyMultiError []error
GetFileReplyMultiError is an error wrapping multiple validation errors returned by GetFileReply.ValidateAll() if the designated constraints aren't met.
func (GetFileReplyMultiError) AllErrors ¶
func (m GetFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetFileReplyMultiError) Error ¶
func (m GetFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetFileReplyValidationError ¶
type GetFileReplyValidationError struct {
// contains filtered or unexported fields
}
GetFileReplyValidationError is the validation error returned by GetFileReply.Validate if the designated constraints aren't met.
func (GetFileReplyValidationError) Cause ¶
func (e GetFileReplyValidationError) Cause() error
Cause function returns cause value.
func (GetFileReplyValidationError) Error ¶
func (e GetFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetFileReplyValidationError) ErrorName ¶
func (e GetFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetFileReplyValidationError) Field ¶
func (e GetFileReplyValidationError) Field() string
Field function returns field value.
func (GetFileReplyValidationError) Key ¶
func (e GetFileReplyValidationError) Key() bool
Key function returns key value.
func (GetFileReplyValidationError) Reason ¶
func (e GetFileReplyValidationError) Reason() string
Reason function returns reason value.
type GetFileRequest ¶
type GetFileRequest struct { Id *uint32 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"` Sha *string `protobuf:"bytes,2,opt,name=sha,proto3,oneof" json:"sha,omitempty"` Src *string `protobuf:"bytes,3,opt,name=src,proto3,oneof" json:"src,omitempty"` // contains filtered or unexported fields }
func (*GetFileRequest) Descriptor
deprecated
func (*GetFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFileRequest.ProtoReflect.Descriptor instead.
func (*GetFileRequest) GetId ¶
func (x *GetFileRequest) GetId() uint32
func (*GetFileRequest) GetSha ¶
func (x *GetFileRequest) GetSha() string
func (*GetFileRequest) GetSrc ¶ added in v1.0.12
func (x *GetFileRequest) GetSrc() string
func (*GetFileRequest) ProtoMessage ¶
func (*GetFileRequest) ProtoMessage()
func (*GetFileRequest) ProtoReflect ¶
func (x *GetFileRequest) ProtoReflect() protoreflect.Message
func (*GetFileRequest) Reset ¶
func (x *GetFileRequest) Reset()
func (*GetFileRequest) String ¶
func (x *GetFileRequest) String() string
func (*GetFileRequest) Validate ¶
func (m *GetFileRequest) Validate() error
Validate checks the field values on GetFileRequest 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 (*GetFileRequest) ValidateAll ¶
func (m *GetFileRequest) ValidateAll() error
ValidateAll checks the field values on GetFileRequest 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 GetFileRequestMultiError, or nil if none found.
type GetFileRequestMultiError ¶
type GetFileRequestMultiError []error
GetFileRequestMultiError is an error wrapping multiple validation errors returned by GetFileRequest.ValidateAll() if the designated constraints aren't met.
func (GetFileRequestMultiError) AllErrors ¶
func (m GetFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetFileRequestMultiError) Error ¶
func (m GetFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetFileRequestValidationError ¶
type GetFileRequestValidationError struct {
// contains filtered or unexported fields
}
GetFileRequestValidationError is the validation error returned by GetFileRequest.Validate if the designated constraints aren't met.
func (GetFileRequestValidationError) Cause ¶
func (e GetFileRequestValidationError) Cause() error
Cause function returns cause value.
func (GetFileRequestValidationError) Error ¶
func (e GetFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetFileRequestValidationError) ErrorName ¶
func (e GetFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetFileRequestValidationError) Field ¶
func (e GetFileRequestValidationError) Field() string
Field function returns field value.
func (GetFileRequestValidationError) Key ¶
func (e GetFileRequestValidationError) Key() bool
Key function returns key value.
func (GetFileRequestValidationError) Reason ¶
func (e GetFileRequestValidationError) Reason() string
Reason function returns reason value.
type ListFileReply ¶
type ListFileReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*ListFileReply_File `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*ListFileReply) Descriptor
deprecated
func (*ListFileReply) Descriptor() ([]byte, []int)
Deprecated: Use ListFileReply.ProtoReflect.Descriptor instead.
func (*ListFileReply) GetList ¶
func (x *ListFileReply) GetList() []*ListFileReply_File
func (*ListFileReply) GetTotal ¶
func (x *ListFileReply) GetTotal() uint32
func (*ListFileReply) ProtoMessage ¶
func (*ListFileReply) ProtoMessage()
func (*ListFileReply) ProtoReflect ¶
func (x *ListFileReply) ProtoReflect() protoreflect.Message
func (*ListFileReply) Reset ¶
func (x *ListFileReply) Reset()
func (*ListFileReply) String ¶
func (x *ListFileReply) String() string
func (*ListFileReply) Validate ¶
func (m *ListFileReply) Validate() error
Validate checks the field values on ListFileReply 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 (*ListFileReply) ValidateAll ¶
func (m *ListFileReply) ValidateAll() error
ValidateAll checks the field values on ListFileReply 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 ListFileReplyMultiError, or nil if none found.
type ListFileReplyMultiError ¶
type ListFileReplyMultiError []error
ListFileReplyMultiError is an error wrapping multiple validation errors returned by ListFileReply.ValidateAll() if the designated constraints aren't met.
func (ListFileReplyMultiError) AllErrors ¶
func (m ListFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListFileReplyMultiError) Error ¶
func (m ListFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListFileReplyValidationError ¶
type ListFileReplyValidationError struct {
// contains filtered or unexported fields
}
ListFileReplyValidationError is the validation error returned by ListFileReply.Validate if the designated constraints aren't met.
func (ListFileReplyValidationError) Cause ¶
func (e ListFileReplyValidationError) Cause() error
Cause function returns cause value.
func (ListFileReplyValidationError) Error ¶
func (e ListFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListFileReplyValidationError) ErrorName ¶
func (e ListFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListFileReplyValidationError) Field ¶
func (e ListFileReplyValidationError) Field() string
Field function returns field value.
func (ListFileReplyValidationError) Key ¶
func (e ListFileReplyValidationError) Key() bool
Key function returns key value.
func (ListFileReplyValidationError) Reason ¶
func (e ListFileReplyValidationError) Reason() string
Reason function returns reason value.
type ListFileReply_File ¶
type ListFileReply_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"` Src string `protobuf:"bytes,7,opt,name=src,proto3" json:"src,omitempty"` Url string `protobuf:"bytes,8,opt,name=url,proto3" json:"url,omitempty"` Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"` UploadId string `protobuf:"bytes,10,opt,name=uploadId,proto3" json:"uploadId,omitempty"` ChunkCount uint32 `protobuf:"varint,11,opt,name=chunkCount,proto3" json:"chunkCount,omitempty"` CreatedAt uint32 `protobuf:"varint,12,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt uint32 `protobuf:"varint,13,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*ListFileReply_File) Descriptor
deprecated
func (*ListFileReply_File) Descriptor() ([]byte, []int)
Deprecated: Use ListFileReply_File.ProtoReflect.Descriptor instead.
func (*ListFileReply_File) GetChunkCount ¶
func (x *ListFileReply_File) GetChunkCount() uint32
func (*ListFileReply_File) GetCreatedAt ¶
func (x *ListFileReply_File) GetCreatedAt() uint32
func (*ListFileReply_File) GetDirectoryId ¶
func (x *ListFileReply_File) GetDirectoryId() uint32
func (*ListFileReply_File) GetId ¶
func (x *ListFileReply_File) GetId() uint32
func (*ListFileReply_File) GetName ¶
func (x *ListFileReply_File) GetName() string
func (*ListFileReply_File) GetSha ¶
func (x *ListFileReply_File) GetSha() string
func (*ListFileReply_File) GetSize ¶
func (x *ListFileReply_File) GetSize() uint32
func (*ListFileReply_File) GetSrc ¶
func (x *ListFileReply_File) GetSrc() string
func (*ListFileReply_File) GetStatus ¶
func (x *ListFileReply_File) GetStatus() string
func (*ListFileReply_File) GetType ¶
func (x *ListFileReply_File) GetType() string
func (*ListFileReply_File) GetUpdatedAt ¶
func (x *ListFileReply_File) GetUpdatedAt() uint32
func (*ListFileReply_File) GetUploadId ¶
func (x *ListFileReply_File) GetUploadId() string
func (*ListFileReply_File) GetUrl ¶
func (x *ListFileReply_File) GetUrl() string
func (*ListFileReply_File) ProtoMessage ¶
func (*ListFileReply_File) ProtoMessage()
func (*ListFileReply_File) ProtoReflect ¶
func (x *ListFileReply_File) ProtoReflect() protoreflect.Message
func (*ListFileReply_File) Reset ¶
func (x *ListFileReply_File) Reset()
func (*ListFileReply_File) String ¶
func (x *ListFileReply_File) String() string
func (*ListFileReply_File) Validate ¶
func (m *ListFileReply_File) Validate() error
Validate checks the field values on ListFileReply_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 (*ListFileReply_File) ValidateAll ¶
func (m *ListFileReply_File) ValidateAll() error
ValidateAll checks the field values on ListFileReply_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 ListFileReply_FileMultiError, or nil if none found.
type ListFileReply_FileMultiError ¶
type ListFileReply_FileMultiError []error
ListFileReply_FileMultiError is an error wrapping multiple validation errors returned by ListFileReply_File.ValidateAll() if the designated constraints aren't met.
func (ListFileReply_FileMultiError) AllErrors ¶
func (m ListFileReply_FileMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListFileReply_FileMultiError) Error ¶
func (m ListFileReply_FileMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListFileReply_FileValidationError ¶
type ListFileReply_FileValidationError struct {
// contains filtered or unexported fields
}
ListFileReply_FileValidationError is the validation error returned by ListFileReply_File.Validate if the designated constraints aren't met.
func (ListFileReply_FileValidationError) Cause ¶
func (e ListFileReply_FileValidationError) Cause() error
Cause function returns cause value.
func (ListFileReply_FileValidationError) Error ¶
func (e ListFileReply_FileValidationError) Error() string
Error satisfies the builtin error interface
func (ListFileReply_FileValidationError) ErrorName ¶
func (e ListFileReply_FileValidationError) ErrorName() string
ErrorName returns error name.
func (ListFileReply_FileValidationError) Field ¶
func (e ListFileReply_FileValidationError) Field() string
Field function returns field value.
func (ListFileReply_FileValidationError) Key ¶
func (e ListFileReply_FileValidationError) Key() bool
Key function returns key value.
func (ListFileReply_FileValidationError) Reason ¶
func (e ListFileReply_FileValidationError) Reason() string
Reason function returns reason value.
type ListFileRequest ¶
type ListFileRequest 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"` // contains filtered or unexported fields }
func (*ListFileRequest) Descriptor
deprecated
func (*ListFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListFileRequest.ProtoReflect.Descriptor instead.
func (*ListFileRequest) GetDirectoryId ¶
func (x *ListFileRequest) GetDirectoryId() uint32
func (*ListFileRequest) GetName ¶ added in v1.0.12
func (x *ListFileRequest) GetName() string
func (*ListFileRequest) GetOrder ¶
func (x *ListFileRequest) GetOrder() string
func (*ListFileRequest) GetOrderBy ¶
func (x *ListFileRequest) GetOrderBy() string
func (*ListFileRequest) GetPage ¶
func (x *ListFileRequest) GetPage() uint32
func (*ListFileRequest) GetPageSize ¶
func (x *ListFileRequest) GetPageSize() uint32
func (*ListFileRequest) GetStatus ¶
func (x *ListFileRequest) GetStatus() string
func (*ListFileRequest) ProtoMessage ¶
func (*ListFileRequest) ProtoMessage()
func (*ListFileRequest) ProtoReflect ¶
func (x *ListFileRequest) ProtoReflect() protoreflect.Message
func (*ListFileRequest) Reset ¶
func (x *ListFileRequest) Reset()
func (*ListFileRequest) String ¶
func (x *ListFileRequest) String() string
func (*ListFileRequest) Validate ¶
func (m *ListFileRequest) Validate() error
Validate checks the field values on ListFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListFileRequest) ValidateAll ¶
func (m *ListFileRequest) ValidateAll() error
ValidateAll checks the field values on ListFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListFileRequestMultiError, or nil if none found.
type ListFileRequestMultiError ¶
type ListFileRequestMultiError []error
ListFileRequestMultiError is an error wrapping multiple validation errors returned by ListFileRequest.ValidateAll() if the designated constraints aren't met.
func (ListFileRequestMultiError) AllErrors ¶
func (m ListFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListFileRequestMultiError) Error ¶
func (m ListFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListFileRequestValidationError ¶
type ListFileRequestValidationError struct {
// contains filtered or unexported fields
}
ListFileRequestValidationError is the validation error returned by ListFileRequest.Validate if the designated constraints aren't met.
func (ListFileRequestValidationError) Cause ¶
func (e ListFileRequestValidationError) Cause() error
Cause function returns cause value.
func (ListFileRequestValidationError) Error ¶
func (e ListFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListFileRequestValidationError) ErrorName ¶
func (e ListFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListFileRequestValidationError) Field ¶
func (e ListFileRequestValidationError) Field() string
Field function returns field value.
func (ListFileRequestValidationError) Key ¶
func (e ListFileRequestValidationError) Key() bool
Key function returns key value.
func (ListFileRequestValidationError) Reason ¶
func (e ListFileRequestValidationError) Reason() string
Reason function returns reason value.
type PrepareUploadFileReply ¶
type PrepareUploadFileReply struct { Uploaded bool `protobuf:"varint,1,opt,name=uploaded,proto3" json:"uploaded,omitempty"` Src *string `protobuf:"bytes,2,opt,name=src,proto3,oneof" json:"src,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"` Url *string `protobuf:"bytes,8,opt,name=url,proto3,oneof" json:"url,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) GetSha ¶
func (x *PrepareUploadFileReply) GetSha() string
func (*PrepareUploadFileReply) GetSrc ¶
func (x *PrepareUploadFileReply) GetSrc() 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) GetUrl ¶
func (x *PrepareUploadFileReply) GetUrl() string
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"` // 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) 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 { Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,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) GetMode ¶
func (x *StaticFileRequest) GetMode() string
func (*StaticFileRequest) GetSaveName ¶
func (x *StaticFileRequest) GetSaveName() string
func (*StaticFileRequest) GetSign ¶
func (x *StaticFileRequest) GetSign() string
func (*StaticFileRequest) GetSrc ¶
func (x *StaticFileRequest) GetSrc() 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) DeleteFile ¶
func (UnimplementedFileServer) DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileReply, error)
func (UnimplementedFileServer) GetFile ¶
func (UnimplementedFileServer) GetFile(context.Context, *GetFileRequest) (*GetFileReply, error)
func (UnimplementedFileServer) ListFile ¶
func (UnimplementedFileServer) ListFile(context.Context, *ListFileRequest) (*ListFileReply, error)
func (UnimplementedFileServer) PrepareUploadFile ¶
func (UnimplementedFileServer) PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileReply, error)
func (UnimplementedFileServer) UpdateFile ¶
func (UnimplementedFileServer) UpdateFile(context.Context, *UpdateFileRequest) (*UpdateFileReply, error)
func (UnimplementedFileServer) UploadFile ¶
func (UnimplementedFileServer) UploadFile(context.Context, *UploadFileRequest) (*UploadFileReply, 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 UpdateFileReply ¶
type UpdateFileReply struct {
// contains filtered or unexported fields
}
func (*UpdateFileReply) Descriptor
deprecated
func (*UpdateFileReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateFileReply.ProtoReflect.Descriptor instead.
func (*UpdateFileReply) ProtoMessage ¶
func (*UpdateFileReply) ProtoMessage()
func (*UpdateFileReply) ProtoReflect ¶
func (x *UpdateFileReply) ProtoReflect() protoreflect.Message
func (*UpdateFileReply) Reset ¶
func (x *UpdateFileReply) Reset()
func (*UpdateFileReply) String ¶
func (x *UpdateFileReply) String() string
func (*UpdateFileReply) Validate ¶
func (m *UpdateFileReply) Validate() error
Validate checks the field values on UpdateFileReply 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 (*UpdateFileReply) ValidateAll ¶
func (m *UpdateFileReply) ValidateAll() error
ValidateAll checks the field values on UpdateFileReply 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 UpdateFileReplyMultiError, or nil if none found.
type UpdateFileReplyMultiError ¶
type UpdateFileReplyMultiError []error
UpdateFileReplyMultiError is an error wrapping multiple validation errors returned by UpdateFileReply.ValidateAll() if the designated constraints aren't met.
func (UpdateFileReplyMultiError) AllErrors ¶
func (m UpdateFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateFileReplyMultiError) Error ¶
func (m UpdateFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateFileReplyValidationError ¶
type UpdateFileReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateFileReplyValidationError is the validation error returned by UpdateFileReply.Validate if the designated constraints aren't met.
func (UpdateFileReplyValidationError) Cause ¶
func (e UpdateFileReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateFileReplyValidationError) Error ¶
func (e UpdateFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateFileReplyValidationError) ErrorName ¶
func (e UpdateFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateFileReplyValidationError) Field ¶
func (e UpdateFileReplyValidationError) Field() string
Field function returns field value.
func (UpdateFileReplyValidationError) Key ¶
func (e UpdateFileReplyValidationError) Key() bool
Key function returns key value.
func (UpdateFileReplyValidationError) Reason ¶
func (e UpdateFileReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateFileRequest ¶
type UpdateFileRequest 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 (*UpdateFileRequest) Descriptor
deprecated
func (*UpdateFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateFileRequest.ProtoReflect.Descriptor instead.
func (*UpdateFileRequest) GetDirectoryId ¶
func (x *UpdateFileRequest) GetDirectoryId() uint32
func (*UpdateFileRequest) GetId ¶
func (x *UpdateFileRequest) GetId() uint32
func (*UpdateFileRequest) GetName ¶
func (x *UpdateFileRequest) GetName() string
func (*UpdateFileRequest) ProtoMessage ¶
func (*UpdateFileRequest) ProtoMessage()
func (*UpdateFileRequest) ProtoReflect ¶
func (x *UpdateFileRequest) ProtoReflect() protoreflect.Message
func (*UpdateFileRequest) Reset ¶
func (x *UpdateFileRequest) Reset()
func (*UpdateFileRequest) String ¶
func (x *UpdateFileRequest) String() string
func (*UpdateFileRequest) Validate ¶
func (m *UpdateFileRequest) Validate() error
Validate checks the field values on UpdateFileRequest 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 (*UpdateFileRequest) ValidateAll ¶
func (m *UpdateFileRequest) ValidateAll() error
ValidateAll checks the field values on UpdateFileRequest 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 UpdateFileRequestMultiError, or nil if none found.
type UpdateFileRequestMultiError ¶
type UpdateFileRequestMultiError []error
UpdateFileRequestMultiError is an error wrapping multiple validation errors returned by UpdateFileRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateFileRequestMultiError) AllErrors ¶
func (m UpdateFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateFileRequestMultiError) Error ¶
func (m UpdateFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateFileRequestValidationError ¶
type UpdateFileRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateFileRequestValidationError is the validation error returned by UpdateFileRequest.Validate if the designated constraints aren't met.
func (UpdateFileRequestValidationError) Cause ¶
func (e UpdateFileRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateFileRequestValidationError) Error ¶
func (e UpdateFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateFileRequestValidationError) ErrorName ¶
func (e UpdateFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateFileRequestValidationError) Field ¶
func (e UpdateFileRequestValidationError) Field() string
Field function returns field value.
func (UpdateFileRequestValidationError) Key ¶
func (e UpdateFileRequestValidationError) Key() bool
Key function returns key value.
func (UpdateFileRequestValidationError) Reason ¶
func (e UpdateFileRequestValidationError) Reason() string
Reason function returns reason value.
type UploadFileReply ¶
type UploadFileReply struct { Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"` Sha string `protobuf:"bytes,2,opt,name=sha,proto3" json:"sha,omitempty"` Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*UploadFileReply) Descriptor
deprecated
func (*UploadFileReply) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileReply.ProtoReflect.Descriptor instead.
func (*UploadFileReply) GetSha ¶
func (x *UploadFileReply) GetSha() string
func (*UploadFileReply) GetSrc ¶
func (x *UploadFileReply) GetSrc() string
func (*UploadFileReply) GetUrl ¶
func (x *UploadFileReply) GetUrl() 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 { 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 (*UploadFileRequest) Descriptor
deprecated
func (*UploadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileRequest.ProtoReflect.Descriptor instead.
func (*UploadFileRequest) GetData ¶
func (x *UploadFileRequest) GetData() []byte
func (*UploadFileRequest) GetIndex ¶
func (x *UploadFileRequest) GetIndex() uint32
func (*UploadFileRequest) GetUploadId ¶
func (x *UploadFileRequest) GetUploadId() 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.