v1

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationServiceAddDirectory = "/v1.Service/AddDirectory"
View Source
const OperationServiceDeleteDirectory = "/v1.Service/DeleteDirectory"
View Source
const OperationServiceDeleteFile = "/v1.Service/DeleteFile"
View Source
const OperationServiceGetDirectory = "/v1.Service/GetDirectory"
View Source
const OperationServicePageFile = "/v1.Service/PageFile"
View Source
const OperationServicePrepareUploadFile = "/v1.Service/PrepareUploadFile"
View Source
const OperationServiceUpdateDirectory = "/v1.Service/UpdateDirectory"
View Source
const OperationServiceUpdateFile = "/v1.Service/UpdateFile"
View Source
const OperationServiceUploadFile = "/v1.Service/UploadFile"

Variables

View Source
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.

View Source
var File_resource_directory_proto protoreflect.FileDescriptor
View Source
var File_resource_error_reason_proto protoreflect.FileDescriptor
View Source
var File_resource_file_proto protoreflect.FileDescriptor
View Source
var File_resource_service_proto protoreflect.FileDescriptor
View Source
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 AddDirectoryError() *errors.Error

func AddDirectoryErrorFormat

func AddDirectoryErrorFormat(format string, args ...any) *errors.Error

func AlreadyExistFileNameError

func AlreadyExistFileNameError() *errors.Error

func AlreadyExistFileNameErrorFormat

func AlreadyExistFileNameErrorFormat(format string, args ...any) *errors.Error

func ChunkUploadError

func ChunkUploadError() *errors.Error

func ChunkUploadErrorFormat

func ChunkUploadErrorFormat(format string, args ...any) *errors.Error

func DatabaseError

func DatabaseError() *errors.Error

func DatabaseErrorFormat

func DatabaseErrorFormat(format string, args ...any) *errors.Error

func DeleteDirectoryError

func DeleteDirectoryError() *errors.Error

func DeleteDirectoryErrorFormat

func DeleteDirectoryErrorFormat(format string, args ...any) *errors.Error

func FileFormatError

func FileFormatError() *errors.Error

func FileFormatErrorFormat

func FileFormatErrorFormat(format string, args ...any) *errors.Error

func InitStoreError

func InitStoreError() *errors.Error

func InitStoreErrorFormat

func InitStoreErrorFormat(format string, args ...any) *errors.Error

func IsAddDirectoryError

func IsAddDirectoryError(err error) bool

func IsAlreadyExistFileNameError

func IsAlreadyExistFileNameError(err error) bool

func IsChunkUploadError

func IsChunkUploadError(err error) bool

func IsDatabaseError

func IsDatabaseError(err error) bool

func IsDeleteDirectoryError

func IsDeleteDirectoryError(err error) bool

func IsFileFormatError

func IsFileFormatError(err error) bool

func IsInitStoreError

func IsInitStoreError(err error) bool

func IsNoSupportStoreError

func IsNoSupportStoreError(err error) bool

func IsNotExistDirectoryError

func IsNotExistDirectoryError(err error) bool

func IsNotExistFileError

func IsNotExistFileError(err error) bool

func IsNotExistResourceError

func IsNotExistResourceError(err error) bool

func IsNotFoundError

func IsNotFoundError(err error) bool

func IsParamsError

func IsParamsError(err error) bool

func IsStatusProgressError

func IsStatusProgressError(err error) bool

func IsSystemError

func IsSystemError(err error) bool

func IsTransformError

func IsTransformError(err error) bool

func IsUpdateDirectoryError

func IsUpdateDirectoryError(err error) bool

func IsUploadFileError

func IsUploadFileError(err error) bool

func NoSupportStoreError

func NoSupportStoreError() *errors.Error

func NoSupportStoreErrorFormat

func NoSupportStoreErrorFormat(format string, args ...any) *errors.Error

func NotExistDirectoryError

func NotExistDirectoryError() *errors.Error

func NotExistDirectoryErrorFormat

func NotExistDirectoryErrorFormat(format string, args ...any) *errors.Error

func NotExistFileError

func NotExistFileError() *errors.Error

func NotExistFileErrorFormat

func NotExistFileErrorFormat(format string, args ...any) *errors.Error

func NotExistResourceError

func NotExistResourceError() *errors.Error

func NotExistResourceErrorFormat

func NotExistResourceErrorFormat(format string, args ...any) *errors.Error

func NotFoundError

func NotFoundError() *errors.Error

func NotFoundErrorFormat

func NotFoundErrorFormat(format string, args ...any) *errors.Error

func ParamsError

func ParamsError() *errors.Error

func ParamsErrorFormat

func ParamsErrorFormat(format string, args ...any) *errors.Error

func RegisterServiceHTTPServer

func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

func StatusProgressError

func StatusProgressError() *errors.Error

func StatusProgressErrorFormat

func StatusProgressErrorFormat(format string, args ...any) *errors.Error

func SystemError

func SystemError() *errors.Error

func SystemErrorFormat

func SystemErrorFormat(format string, args ...any) *errors.Error

func TransformError

func TransformError() *errors.Error

func TransformErrorFormat

func TransformErrorFormat(format string, args ...any) *errors.Error

func UpdateDirectoryError

func UpdateDirectoryError() *errors.Error

func UpdateDirectoryErrorFormat

func UpdateDirectoryErrorFormat(format string, args ...any) *errors.Error

func UploadFileError

func UploadFileError() *errors.Error

func UploadFileErrorFormat

func UploadFileErrorFormat(format string, args ...any) *errors.Error

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

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

Cause function returns cause value.

func (AddDirectoryRequestValidationError) Error

Error satisfies the builtin error interface

func (AddDirectoryRequestValidationError) ErrorName

ErrorName returns error name.

func (AddDirectoryRequestValidationError) Field

Field function returns field value.

func (AddDirectoryRequestValidationError) Key

Key function returns key value.

func (AddDirectoryRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteDirectoryRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteDirectoryRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteDirectoryRequestValidationError) Field

Field function returns field value.

func (DeleteDirectoryRequestValidationError) Key

Key function returns key value.

func (DeleteDirectoryRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteFileRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteFileRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteFileRequestValidationError) Field

Field function returns field value.

func (DeleteFileRequestValidationError) Key

Key function returns key value.

func (DeleteFileRequestValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Directory.ProtoReflect.Descriptor instead.

func (*Directory) GetApp

func (x *Directory) GetApp() string

func (*Directory) GetCreatedAt

func (x *Directory) GetCreatedAt() uint32

func (*Directory) GetId

func (x *Directory) GetId() uint32

func (*Directory) GetName

func (x *Directory) GetName() string

func (*Directory) GetParentId

func (x *Directory) GetParentId() uint32

func (*Directory) GetUpdatedAt

func (x *Directory) GetUpdatedAt() uint32

func (*Directory) ProtoMessage

func (*Directory) ProtoMessage()

func (*Directory) ProtoReflect

func (x *Directory) ProtoReflect() protoreflect.Message

func (*Directory) Reset

func (x *Directory) Reset()

func (*Directory) String

func (x *Directory) String() string

func (*Directory) Validate

func (m *Directory) Validate() error

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

func (m *Directory) ValidateAll() error

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

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) 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

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) Descriptor() ([]byte, []int)

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetCreatedAt

func (x *File) GetCreatedAt() uint32

func (*File) GetDirectoryId

func (x *File) GetDirectoryId() uint32

func (*File) GetId

func (x *File) GetId() uint32

func (*File) GetName

func (x *File) GetName() string

func (*File) GetSha

func (x *File) GetSha() string

func (*File) GetSize

func (x *File) GetSize() uint32

func (*File) GetSrc

func (x *File) GetSrc() string

func (*File) GetStorage

func (x *File) GetStorage() string

func (*File) GetType

func (x *File) GetType() string

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

func (x *File) ProtoReflect() protoreflect.Message

func (*File) Reset

func (x *File) Reset()

func (*File) String

func (x *File) String() string

func (*File) Validate

func (m *File) Validate() error

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

func (m *File) ValidateAll() error

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

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

Cause function returns cause value.

func (GetDirectoryReplyValidationError) Error

Error satisfies the builtin error interface

func (GetDirectoryReplyValidationError) ErrorName

ErrorName returns error name.

func (GetDirectoryReplyValidationError) Field

Field function returns field value.

func (GetDirectoryReplyValidationError) Key

Key function returns key value.

func (GetDirectoryReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetDirectoryRequestValidationError) Error

Error satisfies the builtin error interface

func (GetDirectoryRequestValidationError) ErrorName

ErrorName returns error name.

func (GetDirectoryRequestValidationError) Field

Field function returns field value.

func (GetDirectoryRequestValidationError) Key

Key function returns key value.

func (GetDirectoryRequestValidationError) Reason

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

Cause function returns cause value.

func (PageFileReplyValidationError) Error

Error satisfies the builtin error interface

func (PageFileReplyValidationError) ErrorName

func (e PageFileReplyValidationError) ErrorName() string

ErrorName returns error name.

func (PageFileReplyValidationError) Field

Field function returns field value.

func (PageFileReplyValidationError) Key

Key function returns key value.

func (PageFileReplyValidationError) Reason

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

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

Cause function returns cause value.

func (PageFileRequestValidationError) Error

Error satisfies the builtin error interface

func (PageFileRequestValidationError) ErrorName

func (e PageFileRequestValidationError) ErrorName() string

ErrorName returns error name.

func (PageFileRequestValidationError) Field

Field function returns field value.

func (PageFileRequestValidationError) Key

Key function returns key value.

func (PageFileRequestValidationError) Reason

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

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

Cause function returns cause value.

func (PrepareUploadFileReplyValidationError) Error

Error satisfies the builtin error interface

func (PrepareUploadFileReplyValidationError) ErrorName

ErrorName returns error name.

func (PrepareUploadFileReplyValidationError) Field

Field function returns field value.

func (PrepareUploadFileReplyValidationError) Key

Key function returns key value.

func (PrepareUploadFileReplyValidationError) Reason

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

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

Cause function returns cause value.

func (PrepareUploadFileRequestValidationError) Error

Error satisfies the builtin error interface

func (PrepareUploadFileRequestValidationError) ErrorName

ErrorName returns error name.

func (PrepareUploadFileRequestValidationError) Field

Field function returns field value.

func (PrepareUploadFileRequestValidationError) Key

Key function returns key value.

func (PrepareUploadFileRequestValidationError) Reason

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 (*ServiceHTTPClientImpl) GetDirectory

func (*ServiceHTTPClientImpl) PageFile

func (*ServiceHTTPClientImpl) PrepareUploadFile

func (*ServiceHTTPClientImpl) UpdateDirectory

func (c *ServiceHTTPClientImpl) UpdateDirectory(ctx context.Context, in *UpdateDirectoryRequest, opts ...http.CallOption) (*emptypb.Empty, error)

func (*ServiceHTTPClientImpl) UpdateFile

func (*ServiceHTTPClientImpl) UploadFile

type ServiceServer

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) DeleteDirectory

func (UnimplementedServiceServer) DeleteFile

func (UnimplementedServiceServer) GetDirectory

func (UnimplementedServiceServer) PageFile

func (UnimplementedServiceServer) PrepareUploadFile

func (UnimplementedServiceServer) UpdateDirectory

func (UnimplementedServiceServer) UpdateFile

func (UnimplementedServiceServer) UploadFile

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

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

Cause function returns cause value.

func (UpdateDirectoryRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateDirectoryRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateDirectoryRequestValidationError) Field

Field function returns field value.

func (UpdateDirectoryRequestValidationError) Key

Key function returns key value.

func (UpdateDirectoryRequestValidationError) Reason

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

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

Cause function returns cause value.

func (UpdateFileRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateFileRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateFileRequestValidationError) Field

Field function returns field value.

func (UpdateFileRequestValidationError) Key

Key function returns key value.

func (UpdateFileRequestValidationError) Reason

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

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

Cause function returns cause value.

func (UploadFileReplyValidationError) Error

Error satisfies the builtin error interface

func (UploadFileReplyValidationError) ErrorName

func (e UploadFileReplyValidationError) ErrorName() string

ErrorName returns error name.

func (UploadFileReplyValidationError) Field

Field function returns field value.

func (UploadFileReplyValidationError) Key

Key function returns key value.

func (UploadFileReplyValidationError) Reason

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

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

Cause function returns cause value.

func (UploadFileRequestValidationError) Error

Error satisfies the builtin error interface

func (UploadFileRequestValidationError) ErrorName

ErrorName returns error name.

func (UploadFileRequestValidationError) Field

Field function returns field value.

func (UploadFileRequestValidationError) Key

Key function returns key value.

func (UploadFileRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL