Documentation
¶
Index ¶
- Constants
- Variables
- func AddDirectoryError() *errors.Error
- func AddDirectoryErrorFormat(format string, args ...any) *errors.Error
- func AlreadyExistFileNameError() *errors.Error
- func AlreadyExistFileNameErrorFormat(format string, args ...any) *errors.Error
- func ChunkUploadError() *errors.Error
- func ChunkUploadErrorFormat(format string, args ...any) *errors.Error
- func DatabaseError() *errors.Error
- func DatabaseErrorFormat(format string, args ...any) *errors.Error
- func DeleteDirectoryError() *errors.Error
- func DeleteDirectoryErrorFormat(format string, args ...any) *errors.Error
- func FileFormatError() *errors.Error
- func FileFormatErrorFormat(format string, args ...any) *errors.Error
- func InitStoreError() *errors.Error
- func InitStoreErrorFormat(format string, args ...any) *errors.Error
- func IsAddDirectoryError(err error) bool
- func IsAlreadyExistFileNameError(err error) bool
- func IsChunkUploadError(err error) bool
- func IsDatabaseError(err error) bool
- func IsDeleteDirectoryError(err error) bool
- func IsFileFormatError(err error) bool
- func IsInitStoreError(err error) bool
- func IsNoSupportStoreError(err error) bool
- func IsNotExistDirectoryError(err error) bool
- func IsNotExistFileError(err error) bool
- func IsNotExistResourceError(err error) bool
- func IsNotFoundError(err error) bool
- func IsParamsError(err error) bool
- func IsStatusProgressError(err error) bool
- func IsSystemError(err error) bool
- func IsTransformError(err error) bool
- func IsUpdateDirectoryError(err error) bool
- func IsUploadFileError(err error) bool
- func NoSupportStoreError() *errors.Error
- func NoSupportStoreErrorFormat(format string, args ...any) *errors.Error
- func NotExistDirectoryError() *errors.Error
- func NotExistDirectoryErrorFormat(format string, args ...any) *errors.Error
- func NotExistFileError() *errors.Error
- func NotExistFileErrorFormat(format string, args ...any) *errors.Error
- func NotExistResourceError() *errors.Error
- func NotExistResourceErrorFormat(format string, args ...any) *errors.Error
- func NotFoundError() *errors.Error
- func NotFoundErrorFormat(format string, args ...any) *errors.Error
- func ParamsError() *errors.Error
- func ParamsErrorFormat(format string, args ...any) *errors.Error
- func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- func StatusProgressError() *errors.Error
- func StatusProgressErrorFormat(format string, args ...any) *errors.Error
- func SystemError() *errors.Error
- func SystemErrorFormat(format string, args ...any) *errors.Error
- func TransformError() *errors.Error
- func TransformErrorFormat(format string, args ...any) *errors.Error
- func UpdateDirectoryError() *errors.Error
- func UpdateDirectoryErrorFormat(format string, args ...any) *errors.Error
- func UploadFileError() *errors.Error
- func UploadFileErrorFormat(format string, args ...any) *errors.Error
- type AddDirectoryRequest
- func (*AddDirectoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddDirectoryRequest) GetApp() string
- func (x *AddDirectoryRequest) GetName() string
- func (x *AddDirectoryRequest) GetParentId() uint32
- func (*AddDirectoryRequest) ProtoMessage()
- func (x *AddDirectoryRequest) ProtoReflect() protoreflect.Message
- func (x *AddDirectoryRequest) Reset()
- func (x *AddDirectoryRequest) String() string
- func (m *AddDirectoryRequest) Validate() error
- func (m *AddDirectoryRequest) ValidateAll() error
- type AddDirectoryRequestMultiError
- type AddDirectoryRequestValidationError
- func (e AddDirectoryRequestValidationError) Cause() error
- func (e AddDirectoryRequestValidationError) Error() string
- func (e AddDirectoryRequestValidationError) ErrorName() string
- func (e AddDirectoryRequestValidationError) Field() string
- func (e AddDirectoryRequestValidationError) Key() bool
- func (e AddDirectoryRequestValidationError) Reason() string
- type DeleteDirectoryRequest
- func (*DeleteDirectoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDirectoryRequest) GetApp() string
- func (x *DeleteDirectoryRequest) GetId() uint32
- func (*DeleteDirectoryRequest) ProtoMessage()
- func (x *DeleteDirectoryRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteDirectoryRequest) Reset()
- func (x *DeleteDirectoryRequest) String() string
- func (m *DeleteDirectoryRequest) Validate() error
- func (m *DeleteDirectoryRequest) ValidateAll() error
- type DeleteDirectoryRequestMultiError
- type DeleteDirectoryRequestValidationError
- func (e DeleteDirectoryRequestValidationError) Cause() error
- func (e DeleteDirectoryRequestValidationError) Error() string
- func (e DeleteDirectoryRequestValidationError) ErrorName() string
- func (e DeleteDirectoryRequestValidationError) Field() string
- func (e DeleteDirectoryRequestValidationError) Key() bool
- func (e DeleteDirectoryRequestValidationError) Reason() string
- type DeleteFileRequest
- func (*DeleteFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteFileRequest) GetApp() string
- func (x *DeleteFileRequest) GetDirectoryId() uint32
- 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 Directory
- func (*Directory) Descriptor() ([]byte, []int)deprecated
- func (x *Directory) GetApp() string
- func (x *Directory) GetCreatedAt() uint32
- func (x *Directory) GetId() uint32
- func (x *Directory) GetName() string
- func (x *Directory) GetParentId() uint32
- func (x *Directory) GetUpdatedAt() uint32
- func (*Directory) ProtoMessage()
- func (x *Directory) ProtoReflect() protoreflect.Message
- func (x *Directory) Reset()
- func (x *Directory) String() string
- func (m *Directory) Validate() error
- func (m *Directory) ValidateAll() error
- type DirectoryMultiError
- type DirectoryValidationError
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
- type File
- func (*File) Descriptor() ([]byte, []int)deprecated
- func (x *File) GetCreatedAt() uint32
- func (x *File) GetDirectoryId() uint32
- func (x *File) GetId() uint32
- func (x *File) GetName() string
- func (x *File) GetSha() string
- func (x *File) GetSize() uint32
- func (x *File) GetSrc() string
- func (x *File) GetStorage() string
- func (x *File) GetType() string
- func (*File) ProtoMessage()
- func (x *File) ProtoReflect() protoreflect.Message
- func (x *File) Reset()
- func (x *File) String() string
- func (m *File) Validate() error
- func (m *File) ValidateAll() error
- type FileMultiError
- type FileValidationError
- type GetDirectoryReply
- func (*GetDirectoryReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetDirectoryReply) GetList() []*Directory
- func (*GetDirectoryReply) ProtoMessage()
- func (x *GetDirectoryReply) ProtoReflect() protoreflect.Message
- func (x *GetDirectoryReply) Reset()
- func (x *GetDirectoryReply) String() string
- func (m *GetDirectoryReply) Validate() error
- func (m *GetDirectoryReply) ValidateAll() error
- type GetDirectoryReplyMultiError
- type GetDirectoryReplyValidationError
- func (e GetDirectoryReplyValidationError) Cause() error
- func (e GetDirectoryReplyValidationError) Error() string
- func (e GetDirectoryReplyValidationError) ErrorName() string
- func (e GetDirectoryReplyValidationError) Field() string
- func (e GetDirectoryReplyValidationError) Key() bool
- func (e GetDirectoryReplyValidationError) Reason() string
- type GetDirectoryRequest
- func (*GetDirectoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDirectoryRequest) GetApp() string
- func (x *GetDirectoryRequest) GetParentId() uint32
- func (*GetDirectoryRequest) ProtoMessage()
- func (x *GetDirectoryRequest) ProtoReflect() protoreflect.Message
- func (x *GetDirectoryRequest) Reset()
- func (x *GetDirectoryRequest) String() string
- func (m *GetDirectoryRequest) Validate() error
- func (m *GetDirectoryRequest) ValidateAll() error
- type GetDirectoryRequestMultiError
- type GetDirectoryRequestValidationError
- func (e GetDirectoryRequestValidationError) Cause() error
- func (e GetDirectoryRequestValidationError) Error() string
- func (e GetDirectoryRequestValidationError) ErrorName() string
- func (e GetDirectoryRequestValidationError) Field() string
- func (e GetDirectoryRequestValidationError) Key() bool
- func (e GetDirectoryRequestValidationError) Reason() string
- type PageFileReply
- func (*PageFileReply) Descriptor() ([]byte, []int)deprecated
- func (x *PageFileReply) GetList() []*File
- func (x *PageFileReply) GetTotal() uint32
- func (*PageFileReply) ProtoMessage()
- func (x *PageFileReply) ProtoReflect() protoreflect.Message
- func (x *PageFileReply) Reset()
- func (x *PageFileReply) String() string
- func (m *PageFileReply) Validate() error
- func (m *PageFileReply) ValidateAll() error
- type PageFileReplyMultiError
- type PageFileReplyValidationError
- func (e PageFileReplyValidationError) Cause() error
- func (e PageFileReplyValidationError) Error() string
- func (e PageFileReplyValidationError) ErrorName() string
- func (e PageFileReplyValidationError) Field() string
- func (e PageFileReplyValidationError) Key() bool
- func (e PageFileReplyValidationError) Reason() string
- type PageFileRequest
- func (*PageFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PageFileRequest) GetApp() string
- func (x *PageFileRequest) GetDirectoryId() uint32
- func (x *PageFileRequest) GetName() string
- func (x *PageFileRequest) GetPage() uint32
- func (x *PageFileRequest) GetPageSize() uint32
- func (*PageFileRequest) ProtoMessage()
- func (x *PageFileRequest) ProtoReflect() protoreflect.Message
- func (x *PageFileRequest) Reset()
- func (x *PageFileRequest) String() string
- func (m *PageFileRequest) Validate() error
- func (m *PageFileRequest) ValidateAll() error
- type PageFileRequestMultiError
- type PageFileRequestValidationError
- func (e PageFileRequestValidationError) Cause() error
- func (e PageFileRequestValidationError) Error() string
- func (e PageFileRequestValidationError) ErrorName() string
- func (e PageFileRequestValidationError) Field() string
- func (e PageFileRequestValidationError) Key() bool
- func (e PageFileRequestValidationError) 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 (*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) GetApp() string
- 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 ServiceClient
- type ServiceHTTPClient
- type ServiceHTTPClientImpl
- func (c *ServiceHTTPClientImpl) AddDirectory(ctx context.Context, in *AddDirectoryRequest, opts ...http.CallOption) (*Directory, error)
- func (c *ServiceHTTPClientImpl) DeleteDirectory(ctx context.Context, in *DeleteDirectoryRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) DeleteFile(ctx context.Context, in *DeleteFileRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) GetDirectory(ctx context.Context, in *GetDirectoryRequest, opts ...http.CallOption) (*GetDirectoryReply, error)
- func (c *ServiceHTTPClientImpl) PageFile(ctx context.Context, in *PageFileRequest, opts ...http.CallOption) (*PageFileReply, error)
- func (c *ServiceHTTPClientImpl) PrepareUploadFile(ctx context.Context, in *PrepareUploadFileRequest, opts ...http.CallOption) (*PrepareUploadFileReply, error)
- func (c *ServiceHTTPClientImpl) UpdateDirectory(ctx context.Context, in *UpdateDirectoryRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) UpdateFile(ctx context.Context, in *UpdateFileRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) UploadFile(ctx context.Context, in *UploadFileRequest, opts ...http.CallOption) (*UploadFileReply, error)
- type ServiceHTTPServer
- type ServiceServer
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) AddDirectory(context.Context, *AddDirectoryRequest) (*Directory, error)
- func (UnimplementedServiceServer) DeleteDirectory(context.Context, *DeleteDirectoryRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) DeleteFile(context.Context, *DeleteFileRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) GetDirectory(context.Context, *GetDirectoryRequest) (*GetDirectoryReply, error)
- func (UnimplementedServiceServer) PageFile(context.Context, *PageFileRequest) (*PageFileReply, error)
- func (UnimplementedServiceServer) PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileReply, error)
- func (UnimplementedServiceServer) UpdateDirectory(context.Context, *UpdateDirectoryRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) UpdateFile(context.Context, *UpdateFileRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) UploadFile(context.Context, *UploadFileRequest) (*UploadFileReply, error)
- type UnsafeServiceServer
- type UpdateDirectoryRequest
- func (*UpdateDirectoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDirectoryRequest) GetApp() string
- func (x *UpdateDirectoryRequest) GetId() uint32
- func (x *UpdateDirectoryRequest) GetName() string
- func (*UpdateDirectoryRequest) ProtoMessage()
- func (x *UpdateDirectoryRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateDirectoryRequest) Reset()
- func (x *UpdateDirectoryRequest) String() string
- func (m *UpdateDirectoryRequest) Validate() error
- func (m *UpdateDirectoryRequest) ValidateAll() error
- type UpdateDirectoryRequestMultiError
- type UpdateDirectoryRequestValidationError
- func (e UpdateDirectoryRequestValidationError) Cause() error
- func (e UpdateDirectoryRequestValidationError) Error() string
- func (e UpdateDirectoryRequestValidationError) ErrorName() string
- func (e UpdateDirectoryRequestValidationError) Field() string
- func (e UpdateDirectoryRequestValidationError) Key() bool
- func (e UpdateDirectoryRequestValidationError) Reason() string
- type UpdateFileRequest
- func (*UpdateFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateFileRequest) GetApp() string
- 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 (*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() string
- 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 ( Service_GetDirectory_FullMethodName = "/v1.Service/GetDirectory" Service_AddDirectory_FullMethodName = "/v1.Service/AddDirectory" Service_UpdateDirectory_FullMethodName = "/v1.Service/UpdateDirectory" Service_DeleteDirectory_FullMethodName = "/v1.Service/DeleteDirectory" Service_PrepareUploadFile_FullMethodName = "/v1.Service/PrepareUploadFile" Service_UploadFile_FullMethodName = "/v1.Service/UploadFile" Service_PageFile_FullMethodName = "/v1.Service/PageFile" Service_UpdateFile_FullMethodName = "/v1.Service/UpdateFile" Service_DeleteFile_FullMethodName = "/v1.Service/DeleteFile" )
const OperationServiceAddDirectory = "/v1.Service/AddDirectory"
const OperationServiceDeleteDirectory = "/v1.Service/DeleteDirectory"
const OperationServiceDeleteFile = "/v1.Service/DeleteFile"
const OperationServiceGetDirectory = "/v1.Service/GetDirectory"
const OperationServicePageFile = "/v1.Service/PageFile"
const OperationServicePrepareUploadFile = "/v1.Service/PrepareUploadFile"
const OperationServiceUpdateDirectory = "/v1.Service/UpdateDirectory"
const OperationServiceUpdateFile = "/v1.Service/UpdateFile"
const OperationServiceUploadFile = "/v1.Service/UploadFile"
Variables ¶
var ( ErrorReason_name = map[int32]string{ 0: "NotFoundError", 1: "TransformError", 2: "NoSupportStoreError", 3: "SystemError", 4: "ChunkUploadError", 5: "DatabaseError", 6: "StatusProgressError", 7: "UploadFileError", 8: "InitStoreError", 9: "FileFormatError", 10: "AddDirectoryError", 11: "UpdateDirectoryError", 12: "DeleteDirectoryError", 13: "NotExistFileError", 14: "AlreadyExistFileNameError", 15: "NotExistDirectoryError", 16: "NotExistResourceError", 17: "ParamsError", } ErrorReason_value = map[string]int32{ "NotFoundError": 0, "TransformError": 1, "NoSupportStoreError": 2, "SystemError": 3, "ChunkUploadError": 4, "DatabaseError": 5, "StatusProgressError": 6, "UploadFileError": 7, "InitStoreError": 8, "FileFormatError": 9, "AddDirectoryError": 10, "UpdateDirectoryError": 11, "DeleteDirectoryError": 12, "NotExistFileError": 13, "AlreadyExistFileNameError": 14, "NotExistDirectoryError": 15, "NotExistResourceError": 16, "ParamsError": 17, } )
Enum value maps for ErrorReason.
var File_resource_directory_proto protoreflect.FileDescriptor
var File_resource_error_reason_proto protoreflect.FileDescriptor
var File_resource_file_proto protoreflect.FileDescriptor
var File_resource_service_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetDirectory", Handler: _Service_GetDirectory_Handler, }, { MethodName: "AddDirectory", Handler: _Service_AddDirectory_Handler, }, { MethodName: "UpdateDirectory", Handler: _Service_UpdateDirectory_Handler, }, { MethodName: "DeleteDirectory", Handler: _Service_DeleteDirectory_Handler, }, { MethodName: "PrepareUploadFile", Handler: _Service_PrepareUploadFile_Handler, }, { MethodName: "UploadFile", Handler: _Service_UploadFile_Handler, }, { MethodName: "PageFile", Handler: _Service_PageFile_Handler, }, { MethodName: "UpdateFile", Handler: _Service_UpdateFile_Handler, }, { MethodName: "DeleteFile", Handler: _Service_DeleteFile_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "resource_service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func AddDirectoryError ¶
func AddDirectoryErrorFormat ¶
func ChunkUploadError ¶
func DatabaseError ¶
func DeleteDirectoryError ¶
func FileFormatError ¶
func InitStoreError ¶
func IsAddDirectoryError ¶
func IsChunkUploadError ¶
func IsDatabaseError ¶
func IsDeleteDirectoryError ¶
func IsFileFormatError ¶
func IsInitStoreError ¶
func IsNoSupportStoreError ¶
func IsNotExistFileError ¶
func IsNotExistResourceError ¶
func IsNotFoundError ¶
func IsParamsError ¶
func IsStatusProgressError ¶
func IsSystemError ¶
func IsTransformError ¶
func IsUpdateDirectoryError ¶
func IsUploadFileError ¶
func NoSupportStoreError ¶
func NotExistDirectoryError ¶
func NotExistFileError ¶
func NotExistFileErrorFormat ¶
func NotExistResourceError ¶
func NotFoundError ¶
func ParamsError ¶
func RegisterServiceHTTPServer ¶
func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
func StatusProgressError ¶
func SystemError ¶
func TransformError ¶
func UpdateDirectoryError ¶
func UploadFileError ¶
Types ¶
type AddDirectoryRequest ¶
type AddDirectoryRequest struct {
ParentId uint32 `protobuf:"varint,1,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
App string `protobuf:"bytes,3,opt,name=app,proto3" json:"app,omitempty"`
// contains filtered or unexported fields
}
func (*AddDirectoryRequest) Descriptor
deprecated
func (*AddDirectoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddDirectoryRequest.ProtoReflect.Descriptor instead.
func (*AddDirectoryRequest) GetApp ¶
func (x *AddDirectoryRequest) GetApp() string
func (*AddDirectoryRequest) GetName ¶
func (x *AddDirectoryRequest) GetName() string
func (*AddDirectoryRequest) GetParentId ¶
func (x *AddDirectoryRequest) GetParentId() uint32
func (*AddDirectoryRequest) ProtoMessage ¶
func (*AddDirectoryRequest) ProtoMessage()
func (*AddDirectoryRequest) ProtoReflect ¶
func (x *AddDirectoryRequest) ProtoReflect() protoreflect.Message
func (*AddDirectoryRequest) Reset ¶
func (x *AddDirectoryRequest) Reset()
func (*AddDirectoryRequest) String ¶
func (x *AddDirectoryRequest) String() string
func (*AddDirectoryRequest) Validate ¶
func (m *AddDirectoryRequest) Validate() error
Validate checks the field values on AddDirectoryRequest 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 (*AddDirectoryRequest) ValidateAll ¶
func (m *AddDirectoryRequest) ValidateAll() error
ValidateAll checks the field values on AddDirectoryRequest 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 AddDirectoryRequestMultiError, or nil if none found.
type AddDirectoryRequestMultiError ¶
type AddDirectoryRequestMultiError []error
AddDirectoryRequestMultiError is an error wrapping multiple validation errors returned by AddDirectoryRequest.ValidateAll() if the designated constraints aren't met.
func (AddDirectoryRequestMultiError) AllErrors ¶
func (m AddDirectoryRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddDirectoryRequestMultiError) Error ¶
func (m AddDirectoryRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddDirectoryRequestValidationError ¶
type AddDirectoryRequestValidationError struct {
// contains filtered or unexported fields
}
AddDirectoryRequestValidationError is the validation error returned by AddDirectoryRequest.Validate if the designated constraints aren't met.
func (AddDirectoryRequestValidationError) Cause ¶
func (e AddDirectoryRequestValidationError) Cause() error
Cause function returns cause value.
func (AddDirectoryRequestValidationError) Error ¶
func (e AddDirectoryRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddDirectoryRequestValidationError) ErrorName ¶
func (e AddDirectoryRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddDirectoryRequestValidationError) Field ¶
func (e AddDirectoryRequestValidationError) Field() string
Field function returns field value.
func (AddDirectoryRequestValidationError) Key ¶
func (e AddDirectoryRequestValidationError) Key() bool
Key function returns key value.
func (AddDirectoryRequestValidationError) Reason ¶
func (e AddDirectoryRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteDirectoryRequest ¶
type DeleteDirectoryRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
App string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteDirectoryRequest) Descriptor
deprecated
func (*DeleteDirectoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDirectoryRequest.ProtoReflect.Descriptor instead.
func (*DeleteDirectoryRequest) GetApp ¶
func (x *DeleteDirectoryRequest) GetApp() string
func (*DeleteDirectoryRequest) GetId ¶
func (x *DeleteDirectoryRequest) GetId() uint32
func (*DeleteDirectoryRequest) ProtoMessage ¶
func (*DeleteDirectoryRequest) ProtoMessage()
func (*DeleteDirectoryRequest) ProtoReflect ¶
func (x *DeleteDirectoryRequest) ProtoReflect() protoreflect.Message
func (*DeleteDirectoryRequest) Reset ¶
func (x *DeleteDirectoryRequest) Reset()
func (*DeleteDirectoryRequest) String ¶
func (x *DeleteDirectoryRequest) String() string
func (*DeleteDirectoryRequest) Validate ¶
func (m *DeleteDirectoryRequest) Validate() error
Validate checks the field values on DeleteDirectoryRequest 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 (*DeleteDirectoryRequest) ValidateAll ¶
func (m *DeleteDirectoryRequest) ValidateAll() error
ValidateAll checks the field values on DeleteDirectoryRequest 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 DeleteDirectoryRequestMultiError, or nil if none found.
type DeleteDirectoryRequestMultiError ¶
type DeleteDirectoryRequestMultiError []error
DeleteDirectoryRequestMultiError is an error wrapping multiple validation errors returned by DeleteDirectoryRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteDirectoryRequestMultiError) AllErrors ¶
func (m DeleteDirectoryRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteDirectoryRequestMultiError) Error ¶
func (m DeleteDirectoryRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteDirectoryRequestValidationError ¶
type DeleteDirectoryRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteDirectoryRequestValidationError is the validation error returned by DeleteDirectoryRequest.Validate if the designated constraints aren't met.
func (DeleteDirectoryRequestValidationError) Cause ¶
func (e DeleteDirectoryRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteDirectoryRequestValidationError) Error ¶
func (e DeleteDirectoryRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteDirectoryRequestValidationError) ErrorName ¶
func (e DeleteDirectoryRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteDirectoryRequestValidationError) Field ¶
func (e DeleteDirectoryRequestValidationError) Field() string
Field function returns field value.
func (DeleteDirectoryRequestValidationError) Key ¶
func (e DeleteDirectoryRequestValidationError) Key() bool
Key function returns key value.
func (DeleteDirectoryRequestValidationError) Reason ¶
func (e DeleteDirectoryRequestValidationError) 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"`
App string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"`
DirectoryId uint32 `protobuf:"varint,3,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteFileRequest) Descriptor
deprecated
func (*DeleteFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFileRequest.ProtoReflect.Descriptor instead.
func (*DeleteFileRequest) GetApp ¶
func (x *DeleteFileRequest) GetApp() string
func (*DeleteFileRequest) GetDirectoryId ¶
func (x *DeleteFileRequest) GetDirectoryId() uint32
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 Directory ¶
type Directory struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
ParentId *uint32 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3,oneof" json:"parent_id,omitempty"`
App string `protobuf:"bytes,3,opt,name=app,proto3" json:"app,omitempty"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
CreatedAt uint32 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt uint32 `protobuf:"varint,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
// contains filtered or unexported fields
}
func (*Directory) Descriptor
deprecated
func (*Directory) GetCreatedAt ¶
func (*Directory) GetParentId ¶
func (*Directory) GetUpdatedAt ¶
func (*Directory) ProtoMessage ¶
func (*Directory) ProtoMessage()
func (*Directory) ProtoReflect ¶
func (x *Directory) ProtoReflect() protoreflect.Message
func (*Directory) Validate ¶
Validate checks the field values on Directory 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 (*Directory) ValidateAll ¶
ValidateAll checks the field values on Directory 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 DirectoryMultiError, or nil if none found.
type DirectoryMultiError ¶
type DirectoryMultiError []error
DirectoryMultiError is an error wrapping multiple validation errors returned by Directory.ValidateAll() if the designated constraints aren't met.
func (DirectoryMultiError) AllErrors ¶
func (m DirectoryMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DirectoryMultiError) Error ¶
func (m DirectoryMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DirectoryValidationError ¶
type DirectoryValidationError struct {
// contains filtered or unexported fields
}
DirectoryValidationError is the validation error returned by Directory.Validate if the designated constraints aren't met.
func (DirectoryValidationError) Cause ¶
func (e DirectoryValidationError) Cause() error
Cause function returns cause value.
func (DirectoryValidationError) Error ¶
func (e DirectoryValidationError) Error() string
Error satisfies the builtin error interface
func (DirectoryValidationError) ErrorName ¶
func (e DirectoryValidationError) ErrorName() string
ErrorName returns error name.
func (DirectoryValidationError) Field ¶
func (e DirectoryValidationError) Field() string
Field function returns field value.
func (DirectoryValidationError) Key ¶
func (e DirectoryValidationError) Key() bool
Key function returns key value.
func (DirectoryValidationError) Reason ¶
func (e DirectoryValidationError) Reason() string
Reason function returns reason value.
type ErrorReason ¶
type ErrorReason int32
const ( ErrorReason_NotFoundError ErrorReason = 0 ErrorReason_TransformError ErrorReason = 1 ErrorReason_NoSupportStoreError ErrorReason = 2 ErrorReason_SystemError ErrorReason = 3 ErrorReason_ChunkUploadError ErrorReason = 4 ErrorReason_DatabaseError ErrorReason = 5 ErrorReason_StatusProgressError ErrorReason = 6 ErrorReason_UploadFileError ErrorReason = 7 ErrorReason_InitStoreError ErrorReason = 8 ErrorReason_FileFormatError ErrorReason = 9 ErrorReason_AddDirectoryError ErrorReason = 10 ErrorReason_UpdateDirectoryError ErrorReason = 11 ErrorReason_DeleteDirectoryError ErrorReason = 12 ErrorReason_NotExistFileError ErrorReason = 13 ErrorReason_AlreadyExistFileNameError ErrorReason = 14 ErrorReason_NotExistDirectoryError ErrorReason = 15 ErrorReason_NotExistResourceError ErrorReason = 16 ErrorReason_ParamsError ErrorReason = 17 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
type File ¶
type File struct {
Id uint32 `protobuf:"varint,11,opt,name=id,proto3" json:"id,omitempty"`
DirectoryId uint32 `protobuf:"varint,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,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"`
Src string `protobuf:"bytes,6,opt,name=src,proto3" json:"src,omitempty"`
Storage string `protobuf:"bytes,9,opt,name=storage,proto3" json:"storage,omitempty"`
CreatedAt uint32 `protobuf:"varint,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// contains filtered or unexported fields
}
func (*File) Descriptor
deprecated
func (*File) GetCreatedAt ¶
func (*File) GetDirectoryId ¶
func (*File) GetStorage ¶
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
func (*File) Validate ¶
Validate checks the field values on 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 (*File) ValidateAll ¶
ValidateAll checks the field values on 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 FileMultiError, or nil if none found.
type FileMultiError ¶
type FileMultiError []error
FileMultiError is an error wrapping multiple validation errors returned by File.ValidateAll() if the designated constraints aren't met.
func (FileMultiError) AllErrors ¶
func (m FileMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FileMultiError) Error ¶
func (m FileMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FileValidationError ¶
type FileValidationError struct {
// contains filtered or unexported fields
}
FileValidationError is the validation error returned by File.Validate if the designated constraints aren't met.
func (FileValidationError) Cause ¶
func (e FileValidationError) Cause() error
Cause function returns cause value.
func (FileValidationError) Error ¶
func (e FileValidationError) Error() string
Error satisfies the builtin error interface
func (FileValidationError) ErrorName ¶
func (e FileValidationError) ErrorName() string
ErrorName returns error name.
func (FileValidationError) Field ¶
func (e FileValidationError) Field() string
Field function returns field value.
func (FileValidationError) Key ¶
func (e FileValidationError) Key() bool
Key function returns key value.
func (FileValidationError) Reason ¶
func (e FileValidationError) Reason() string
Reason function returns reason value.
type GetDirectoryReply ¶
type GetDirectoryReply struct {
List []*Directory `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
// contains filtered or unexported fields
}
func (*GetDirectoryReply) Descriptor
deprecated
func (*GetDirectoryReply) Descriptor() ([]byte, []int)
Deprecated: Use GetDirectoryReply.ProtoReflect.Descriptor instead.
func (*GetDirectoryReply) GetList ¶
func (x *GetDirectoryReply) GetList() []*Directory
func (*GetDirectoryReply) ProtoMessage ¶
func (*GetDirectoryReply) ProtoMessage()
func (*GetDirectoryReply) ProtoReflect ¶
func (x *GetDirectoryReply) ProtoReflect() protoreflect.Message
func (*GetDirectoryReply) Reset ¶
func (x *GetDirectoryReply) Reset()
func (*GetDirectoryReply) String ¶
func (x *GetDirectoryReply) String() string
func (*GetDirectoryReply) Validate ¶
func (m *GetDirectoryReply) Validate() error
Validate checks the field values on GetDirectoryReply 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 (*GetDirectoryReply) ValidateAll ¶
func (m *GetDirectoryReply) ValidateAll() error
ValidateAll checks the field values on GetDirectoryReply 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 GetDirectoryReplyMultiError, or nil if none found.
type GetDirectoryReplyMultiError ¶
type GetDirectoryReplyMultiError []error
GetDirectoryReplyMultiError is an error wrapping multiple validation errors returned by GetDirectoryReply.ValidateAll() if the designated constraints aren't met.
func (GetDirectoryReplyMultiError) AllErrors ¶
func (m GetDirectoryReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetDirectoryReplyMultiError) Error ¶
func (m GetDirectoryReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetDirectoryReplyValidationError ¶
type GetDirectoryReplyValidationError struct {
// contains filtered or unexported fields
}
GetDirectoryReplyValidationError is the validation error returned by GetDirectoryReply.Validate if the designated constraints aren't met.
func (GetDirectoryReplyValidationError) Cause ¶
func (e GetDirectoryReplyValidationError) Cause() error
Cause function returns cause value.
func (GetDirectoryReplyValidationError) Error ¶
func (e GetDirectoryReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetDirectoryReplyValidationError) ErrorName ¶
func (e GetDirectoryReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetDirectoryReplyValidationError) Field ¶
func (e GetDirectoryReplyValidationError) Field() string
Field function returns field value.
func (GetDirectoryReplyValidationError) Key ¶
func (e GetDirectoryReplyValidationError) Key() bool
Key function returns key value.
func (GetDirectoryReplyValidationError) Reason ¶
func (e GetDirectoryReplyValidationError) Reason() string
Reason function returns reason value.
type GetDirectoryRequest ¶
type GetDirectoryRequest struct {
ParentId uint32 `protobuf:"varint,1,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
App string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"`
// contains filtered or unexported fields
}
func (*GetDirectoryRequest) Descriptor
deprecated
func (*GetDirectoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDirectoryRequest.ProtoReflect.Descriptor instead.
func (*GetDirectoryRequest) GetApp ¶
func (x *GetDirectoryRequest) GetApp() string
func (*GetDirectoryRequest) GetParentId ¶
func (x *GetDirectoryRequest) GetParentId() uint32
func (*GetDirectoryRequest) ProtoMessage ¶
func (*GetDirectoryRequest) ProtoMessage()
func (*GetDirectoryRequest) ProtoReflect ¶
func (x *GetDirectoryRequest) ProtoReflect() protoreflect.Message
func (*GetDirectoryRequest) Reset ¶
func (x *GetDirectoryRequest) Reset()
func (*GetDirectoryRequest) String ¶
func (x *GetDirectoryRequest) String() string
func (*GetDirectoryRequest) Validate ¶
func (m *GetDirectoryRequest) Validate() error
Validate checks the field values on GetDirectoryRequest 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 (*GetDirectoryRequest) ValidateAll ¶
func (m *GetDirectoryRequest) ValidateAll() error
ValidateAll checks the field values on GetDirectoryRequest 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 GetDirectoryRequestMultiError, or nil if none found.
type GetDirectoryRequestMultiError ¶
type GetDirectoryRequestMultiError []error
GetDirectoryRequestMultiError is an error wrapping multiple validation errors returned by GetDirectoryRequest.ValidateAll() if the designated constraints aren't met.
func (GetDirectoryRequestMultiError) AllErrors ¶
func (m GetDirectoryRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetDirectoryRequestMultiError) Error ¶
func (m GetDirectoryRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetDirectoryRequestValidationError ¶
type GetDirectoryRequestValidationError struct {
// contains filtered or unexported fields
}
GetDirectoryRequestValidationError is the validation error returned by GetDirectoryRequest.Validate if the designated constraints aren't met.
func (GetDirectoryRequestValidationError) Cause ¶
func (e GetDirectoryRequestValidationError) Cause() error
Cause function returns cause value.
func (GetDirectoryRequestValidationError) Error ¶
func (e GetDirectoryRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetDirectoryRequestValidationError) ErrorName ¶
func (e GetDirectoryRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetDirectoryRequestValidationError) Field ¶
func (e GetDirectoryRequestValidationError) Field() string
Field function returns field value.
func (GetDirectoryRequestValidationError) Key ¶
func (e GetDirectoryRequestValidationError) Key() bool
Key function returns key value.
func (GetDirectoryRequestValidationError) Reason ¶
func (e GetDirectoryRequestValidationError) Reason() string
Reason function returns reason value.
type PageFileReply ¶
type PageFileReply struct {
List []*File `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
Total *uint32 `protobuf:"varint,2,opt,name=total,proto3,oneof" json:"total,omitempty"`
// contains filtered or unexported fields
}
func (*PageFileReply) Descriptor
deprecated
func (*PageFileReply) Descriptor() ([]byte, []int)
Deprecated: Use PageFileReply.ProtoReflect.Descriptor instead.
func (*PageFileReply) GetList ¶
func (x *PageFileReply) GetList() []*File
func (*PageFileReply) GetTotal ¶
func (x *PageFileReply) GetTotal() uint32
func (*PageFileReply) ProtoMessage ¶
func (*PageFileReply) ProtoMessage()
func (*PageFileReply) ProtoReflect ¶
func (x *PageFileReply) ProtoReflect() protoreflect.Message
func (*PageFileReply) Reset ¶
func (x *PageFileReply) Reset()
func (*PageFileReply) String ¶
func (x *PageFileReply) String() string
func (*PageFileReply) Validate ¶
func (m *PageFileReply) Validate() error
Validate checks the field values on PageFileReply 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 (*PageFileReply) ValidateAll ¶
func (m *PageFileReply) ValidateAll() error
ValidateAll checks the field values on PageFileReply 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 PageFileReplyMultiError, or nil if none found.
type PageFileReplyMultiError ¶
type PageFileReplyMultiError []error
PageFileReplyMultiError is an error wrapping multiple validation errors returned by PageFileReply.ValidateAll() if the designated constraints aren't met.
func (PageFileReplyMultiError) AllErrors ¶
func (m PageFileReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageFileReplyMultiError) Error ¶
func (m PageFileReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageFileReplyValidationError ¶
type PageFileReplyValidationError struct {
// contains filtered or unexported fields
}
PageFileReplyValidationError is the validation error returned by PageFileReply.Validate if the designated constraints aren't met.
func (PageFileReplyValidationError) Cause ¶
func (e PageFileReplyValidationError) Cause() error
Cause function returns cause value.
func (PageFileReplyValidationError) Error ¶
func (e PageFileReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PageFileReplyValidationError) ErrorName ¶
func (e PageFileReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PageFileReplyValidationError) Field ¶
func (e PageFileReplyValidationError) Field() string
Field function returns field value.
func (PageFileReplyValidationError) Key ¶
func (e PageFileReplyValidationError) Key() bool
Key function returns key value.
func (PageFileReplyValidationError) Reason ¶
func (e PageFileReplyValidationError) Reason() string
Reason function returns reason value.
type PageFileRequest ¶
type PageFileRequest struct {
DirectoryId uint32 `protobuf:"varint,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
App string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"`
Name *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"`
Page uint32 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"`
PageSize uint32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// contains filtered or unexported fields
}
func (*PageFileRequest) Descriptor
deprecated
func (*PageFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use PageFileRequest.ProtoReflect.Descriptor instead.
func (*PageFileRequest) GetApp ¶
func (x *PageFileRequest) GetApp() string
func (*PageFileRequest) GetDirectoryId ¶
func (x *PageFileRequest) GetDirectoryId() uint32
func (*PageFileRequest) GetName ¶
func (x *PageFileRequest) GetName() string
func (*PageFileRequest) GetPage ¶
func (x *PageFileRequest) GetPage() uint32
func (*PageFileRequest) GetPageSize ¶
func (x *PageFileRequest) GetPageSize() uint32
func (*PageFileRequest) ProtoMessage ¶
func (*PageFileRequest) ProtoMessage()
func (*PageFileRequest) ProtoReflect ¶
func (x *PageFileRequest) ProtoReflect() protoreflect.Message
func (*PageFileRequest) Reset ¶
func (x *PageFileRequest) Reset()
func (*PageFileRequest) String ¶
func (x *PageFileRequest) String() string
func (*PageFileRequest) Validate ¶
func (m *PageFileRequest) Validate() error
Validate checks the field values on PageFileRequest 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 (*PageFileRequest) ValidateAll ¶
func (m *PageFileRequest) ValidateAll() error
ValidateAll checks the field values on PageFileRequest 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 PageFileRequestMultiError, or nil if none found.
type PageFileRequestMultiError ¶
type PageFileRequestMultiError []error
PageFileRequestMultiError is an error wrapping multiple validation errors returned by PageFileRequest.ValidateAll() if the designated constraints aren't met.
func (PageFileRequestMultiError) AllErrors ¶
func (m PageFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageFileRequestMultiError) Error ¶
func (m PageFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageFileRequestValidationError ¶
type PageFileRequestValidationError struct {
// contains filtered or unexported fields
}
PageFileRequestValidationError is the validation error returned by PageFileRequest.Validate if the designated constraints aren't met.
func (PageFileRequestValidationError) Cause ¶
func (e PageFileRequestValidationError) Cause() error
Cause function returns cause value.
func (PageFileRequestValidationError) Error ¶
func (e PageFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PageFileRequestValidationError) ErrorName ¶
func (e PageFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PageFileRequestValidationError) Field ¶
func (e PageFileRequestValidationError) Field() string
Field function returns field value.
func (PageFileRequestValidationError) Key ¶
func (e PageFileRequestValidationError) Key() bool
Key function returns key value.
func (PageFileRequestValidationError) Reason ¶
func (e PageFileRequestValidationError) Reason() string
Reason function returns reason value.
type PrepareUploadFileReply ¶
type PrepareUploadFileReply struct {
Uploaded *bool `protobuf:"varint,1,opt,name=uploaded,proto3,oneof" json:"uploaded,omitempty"`
Src *string `protobuf:"bytes,2,opt,name=src,proto3,oneof" json:"src,omitempty"`
ChunkSize *uint32 `protobuf:"varint,3,opt,name=chunk_size,json=chunkSize,proto3,oneof" json:"chunk_size,omitempty"`
ChunkCount *uint32 `protobuf:"varint,4,opt,name=chunk_count,json=chunkCount,proto3,oneof" json:"chunk_count,omitempty"`
UploadId *string `protobuf:"bytes,5,opt,name=upload_id,json=uploadId,proto3,oneof" json:"upload_id,omitempty"`
UploadChunks []uint32 `protobuf:"varint,6,rep,packed,name=upload_chunks,json=uploadChunks,proto3" json:"upload_chunks,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) 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) 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=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
DirectoryPath string `protobuf:"bytes,2,opt,name=directory_path,json=directoryPath,proto3" json:"directory_path,omitempty"`
App string `protobuf:"bytes,3,opt,name=app,proto3" json:"app,omitempty"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
Sha string `protobuf:"bytes,5,opt,name=sha,proto3" json:"sha,omitempty"`
Size uint32 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"`
// contains filtered or unexported fields
}
func (*PrepareUploadFileRequest) Descriptor
deprecated
func (*PrepareUploadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use PrepareUploadFileRequest.ProtoReflect.Descriptor instead.
func (*PrepareUploadFileRequest) GetApp ¶
func (x *PrepareUploadFileRequest) GetApp() string
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 ServiceClient ¶
type ServiceClient interface {
GetDirectory(ctx context.Context, in *GetDirectoryRequest, opts ...grpc.CallOption) (*GetDirectoryReply, error)
AddDirectory(ctx context.Context, in *AddDirectoryRequest, opts ...grpc.CallOption) (*Directory, error)
UpdateDirectory(ctx context.Context, in *UpdateDirectoryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
DeleteDirectory(ctx context.Context, in *DeleteDirectoryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
PrepareUploadFile(ctx context.Context, in *PrepareUploadFileRequest, opts ...grpc.CallOption) (*PrepareUploadFileReply, error)
UploadFile(ctx context.Context, in *UploadFileRequest, opts ...grpc.CallOption) (*UploadFileReply, error)
PageFile(ctx context.Context, in *PageFileRequest, opts ...grpc.CallOption) (*PageFileReply, error)
UpdateFile(ctx context.Context, in *UpdateFileRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
DeleteFile(ctx context.Context, in *DeleteFileRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceHTTPClient ¶
type ServiceHTTPClient interface {
AddDirectory(ctx context.Context, req *AddDirectoryRequest, opts ...http.CallOption) (rsp *Directory, err error)
DeleteDirectory(ctx context.Context, req *DeleteDirectoryRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
DeleteFile(ctx context.Context, req *DeleteFileRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
GetDirectory(ctx context.Context, req *GetDirectoryRequest, opts ...http.CallOption) (rsp *GetDirectoryReply, err error)
PageFile(ctx context.Context, req *PageFileRequest, opts ...http.CallOption) (rsp *PageFileReply, err error)
PrepareUploadFile(ctx context.Context, req *PrepareUploadFileRequest, opts ...http.CallOption) (rsp *PrepareUploadFileReply, err error)
UpdateDirectory(ctx context.Context, req *UpdateDirectoryRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
UpdateFile(ctx context.Context, req *UpdateFileRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
UploadFile(ctx context.Context, req *UploadFileRequest, opts ...http.CallOption) (rsp *UploadFileReply, err error)
}
func NewServiceHTTPClient ¶
func NewServiceHTTPClient(client *http.Client) ServiceHTTPClient
type ServiceHTTPClientImpl ¶
type ServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ServiceHTTPClientImpl) AddDirectory ¶
func (c *ServiceHTTPClientImpl) AddDirectory(ctx context.Context, in *AddDirectoryRequest, opts ...http.CallOption) (*Directory, error)
func (*ServiceHTTPClientImpl) DeleteDirectory ¶
func (c *ServiceHTTPClientImpl) DeleteDirectory(ctx context.Context, in *DeleteDirectoryRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) DeleteFile ¶
func (c *ServiceHTTPClientImpl) DeleteFile(ctx context.Context, in *DeleteFileRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) GetDirectory ¶
func (c *ServiceHTTPClientImpl) GetDirectory(ctx context.Context, in *GetDirectoryRequest, opts ...http.CallOption) (*GetDirectoryReply, error)
func (*ServiceHTTPClientImpl) PageFile ¶
func (c *ServiceHTTPClientImpl) PageFile(ctx context.Context, in *PageFileRequest, opts ...http.CallOption) (*PageFileReply, error)
func (*ServiceHTTPClientImpl) PrepareUploadFile ¶
func (c *ServiceHTTPClientImpl) PrepareUploadFile(ctx context.Context, in *PrepareUploadFileRequest, opts ...http.CallOption) (*PrepareUploadFileReply, error)
func (*ServiceHTTPClientImpl) UpdateDirectory ¶
func (c *ServiceHTTPClientImpl) UpdateDirectory(ctx context.Context, in *UpdateDirectoryRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) UpdateFile ¶
func (c *ServiceHTTPClientImpl) UpdateFile(ctx context.Context, in *UpdateFileRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) UploadFile ¶
func (c *ServiceHTTPClientImpl) UploadFile(ctx context.Context, in *UploadFileRequest, opts ...http.CallOption) (*UploadFileReply, error)
type ServiceHTTPServer ¶
type ServiceHTTPServer interface {
AddDirectory(context.Context, *AddDirectoryRequest) (*Directory, error)
DeleteDirectory(context.Context, *DeleteDirectoryRequest) (*emptypb.Empty, error)
DeleteFile(context.Context, *DeleteFileRequest) (*emptypb.Empty, error)
GetDirectory(context.Context, *GetDirectoryRequest) (*GetDirectoryReply, error)
PageFile(context.Context, *PageFileRequest) (*PageFileReply, error)
PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileReply, error)
UpdateDirectory(context.Context, *UpdateDirectoryRequest) (*emptypb.Empty, error)
UpdateFile(context.Context, *UpdateFileRequest) (*emptypb.Empty, error)
UploadFile(context.Context, *UploadFileRequest) (*UploadFileReply, error)
}
type ServiceServer ¶
type ServiceServer interface {
GetDirectory(context.Context, *GetDirectoryRequest) (*GetDirectoryReply, error)
AddDirectory(context.Context, *AddDirectoryRequest) (*Directory, error)
UpdateDirectory(context.Context, *UpdateDirectoryRequest) (*emptypb.Empty, error)
DeleteDirectory(context.Context, *DeleteDirectoryRequest) (*emptypb.Empty, error)
PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileReply, error)
UploadFile(context.Context, *UploadFileRequest) (*UploadFileReply, error)
PageFile(context.Context, *PageFileRequest) (*PageFileReply, error)
UpdateFile(context.Context, *UpdateFileRequest) (*emptypb.Empty, error)
DeleteFile(context.Context, *DeleteFileRequest) (*emptypb.Empty, error)
// contains filtered or unexported methods
}
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct {
}
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) AddDirectory ¶
func (UnimplementedServiceServer) AddDirectory(context.Context, *AddDirectoryRequest) (*Directory, error)
func (UnimplementedServiceServer) DeleteDirectory ¶
func (UnimplementedServiceServer) DeleteDirectory(context.Context, *DeleteDirectoryRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) DeleteFile ¶
func (UnimplementedServiceServer) DeleteFile(context.Context, *DeleteFileRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) GetDirectory ¶
func (UnimplementedServiceServer) GetDirectory(context.Context, *GetDirectoryRequest) (*GetDirectoryReply, error)
func (UnimplementedServiceServer) PageFile ¶
func (UnimplementedServiceServer) PageFile(context.Context, *PageFileRequest) (*PageFileReply, error)
func (UnimplementedServiceServer) PrepareUploadFile ¶
func (UnimplementedServiceServer) PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileReply, error)
func (UnimplementedServiceServer) UpdateDirectory ¶
func (UnimplementedServiceServer) UpdateDirectory(context.Context, *UpdateDirectoryRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) UpdateFile ¶
func (UnimplementedServiceServer) UpdateFile(context.Context, *UpdateFileRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) UploadFile ¶
func (UnimplementedServiceServer) UploadFile(context.Context, *UploadFileRequest) (*UploadFileReply, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.
type UpdateDirectoryRequest ¶
type UpdateDirectoryRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
App string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateDirectoryRequest) Descriptor
deprecated
func (*UpdateDirectoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDirectoryRequest.ProtoReflect.Descriptor instead.
func (*UpdateDirectoryRequest) GetApp ¶
func (x *UpdateDirectoryRequest) GetApp() string
func (*UpdateDirectoryRequest) GetId ¶
func (x *UpdateDirectoryRequest) GetId() uint32
func (*UpdateDirectoryRequest) GetName ¶
func (x *UpdateDirectoryRequest) GetName() string
func (*UpdateDirectoryRequest) ProtoMessage ¶
func (*UpdateDirectoryRequest) ProtoMessage()
func (*UpdateDirectoryRequest) ProtoReflect ¶
func (x *UpdateDirectoryRequest) ProtoReflect() protoreflect.Message
func (*UpdateDirectoryRequest) Reset ¶
func (x *UpdateDirectoryRequest) Reset()
func (*UpdateDirectoryRequest) String ¶
func (x *UpdateDirectoryRequest) String() string
func (*UpdateDirectoryRequest) Validate ¶
func (m *UpdateDirectoryRequest) Validate() error
Validate checks the field values on UpdateDirectoryRequest 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 (*UpdateDirectoryRequest) ValidateAll ¶
func (m *UpdateDirectoryRequest) ValidateAll() error
ValidateAll checks the field values on UpdateDirectoryRequest 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 UpdateDirectoryRequestMultiError, or nil if none found.
type UpdateDirectoryRequestMultiError ¶
type UpdateDirectoryRequestMultiError []error
UpdateDirectoryRequestMultiError is an error wrapping multiple validation errors returned by UpdateDirectoryRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateDirectoryRequestMultiError) AllErrors ¶
func (m UpdateDirectoryRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateDirectoryRequestMultiError) Error ¶
func (m UpdateDirectoryRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateDirectoryRequestValidationError ¶
type UpdateDirectoryRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateDirectoryRequestValidationError is the validation error returned by UpdateDirectoryRequest.Validate if the designated constraints aren't met.
func (UpdateDirectoryRequestValidationError) Cause ¶
func (e UpdateDirectoryRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateDirectoryRequestValidationError) Error ¶
func (e UpdateDirectoryRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateDirectoryRequestValidationError) ErrorName ¶
func (e UpdateDirectoryRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateDirectoryRequestValidationError) Field ¶
func (e UpdateDirectoryRequestValidationError) Field() string
Field function returns field value.
func (UpdateDirectoryRequestValidationError) Key ¶
func (e UpdateDirectoryRequestValidationError) Key() bool
Key function returns key value.
func (UpdateDirectoryRequestValidationError) Reason ¶
func (e UpdateDirectoryRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateFileRequest ¶
type UpdateFileRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
App string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
DirectoryId uint32 `protobuf:"varint,4,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateFileRequest) Descriptor
deprecated
func (*UpdateFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateFileRequest.ProtoReflect.Descriptor instead.
func (*UpdateFileRequest) GetApp ¶
func (x *UpdateFileRequest) GetApp() string
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"`
// 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) 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 string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
UploadId string `protobuf:"bytes,2,opt,name=upload_id,json=uploadId,proto3" json:"upload_id,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() string
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.
Source Files
¶
- resource_directory.pb.go
- resource_directory.pb.validate.go
- resource_error_reason.pb.go
- resource_error_reason.pb.validate.go
- resource_error_reason_errors.pb.go
- resource_file.pb.go
- resource_file.pb.validate.go
- resource_service.pb.go
- resource_service.pb.validate.go
- resource_service_grpc.pb.go
- resource_service_http.pb.go