v1

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Service_AllDirectory_FullMethodName      = "/file.Service/AllDirectory"
	Service_AddDirectory_FullMethodName      = "/file.Service/AddDirectory"
	Service_UpdateDirectory_FullMethodName   = "/file.Service/UpdateDirectory"
	Service_DeleteDirectory_FullMethodName   = "/file.Service/DeleteDirectory"
	Service_PrepareUploadFile_FullMethodName = "/file.Service/PrepareUploadFile"
	Service_UploadFile_FullMethodName        = "/file.Service/UploadFile"
	Service_PageFile_FullMethodName          = "/file.Service/PageFile"
	Service_GetFileBySha_FullMethodName      = "/file.Service/GetFileBySha"
	Service_UpdateFile_FullMethodName        = "/file.Service/UpdateFile"
	Service_DeleteFile_FullMethodName        = "/file.Service/DeleteFile"
)
View Source
const OperationServiceAddDirectory = "/file.Service/AddDirectory"
View Source
const OperationServiceAllDirectory = "/file.Service/AllDirectory"
View Source
const OperationServiceDeleteDirectory = "/file.Service/DeleteDirectory"
View Source
const OperationServiceDeleteFile = "/file.Service/DeleteFile"
View Source
const OperationServiceGetFileBySha = "/file.Service/GetFileBySha"
View Source
const OperationServicePageFile = "/file.Service/PageFile"
View Source
const OperationServicePrepareUploadFile = "/file.Service/PrepareUploadFile"
View Source
const OperationServiceUpdateDirectory = "/file.Service/UpdateDirectory"
View Source
const OperationServiceUpdateFile = "/file.Service/UpdateFile"

Variables

View Source
var File_resource_directory_proto protoreflect.FileDescriptor
View Source
var File_resource_file_proto protoreflect.FileDescriptor
View Source
var File_resource_file_service_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "file.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AllDirectory",
			Handler:    _Service_AllDirectory_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: "GetFileBySha",
			Handler:    _Service_GetFileBySha_Handler,
		},
		{
			MethodName: "UpdateFile",
			Handler:    _Service_UpdateFile_Handler,
		},
		{
			MethodName: "DeleteFile",
			Handler:    _Service_DeleteFile_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "resource_file_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 RegisterServiceHTTPServer

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

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

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 AllDirectoryReply

type AllDirectoryReply struct {
	List []*Directory `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*AllDirectoryReply) Descriptor deprecated

func (*AllDirectoryReply) Descriptor() ([]byte, []int)

Deprecated: Use AllDirectoryReply.ProtoReflect.Descriptor instead.

func (*AllDirectoryReply) GetList

func (x *AllDirectoryReply) GetList() []*Directory

func (*AllDirectoryReply) ProtoMessage

func (*AllDirectoryReply) ProtoMessage()

func (*AllDirectoryReply) ProtoReflect

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

func (*AllDirectoryReply) Reset

func (x *AllDirectoryReply) Reset()

func (*AllDirectoryReply) String

func (x *AllDirectoryReply) String() string

func (*AllDirectoryReply) Validate

func (m *AllDirectoryReply) Validate() error

Validate checks the field values on AllDirectoryReply 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 (*AllDirectoryReply) ValidateAll

func (m *AllDirectoryReply) ValidateAll() error

ValidateAll checks the field values on AllDirectoryReply 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 AllDirectoryReplyMultiError, or nil if none found.

type AllDirectoryReplyMultiError

type AllDirectoryReplyMultiError []error

AllDirectoryReplyMultiError is an error wrapping multiple validation errors returned by AllDirectoryReply.ValidateAll() if the designated constraints aren't met.

func (AllDirectoryReplyMultiError) AllErrors

func (m AllDirectoryReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AllDirectoryReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AllDirectoryReplyValidationError

type AllDirectoryReplyValidationError struct {
	// contains filtered or unexported fields
}

AllDirectoryReplyValidationError is the validation error returned by AllDirectoryReply.Validate if the designated constraints aren't met.

func (AllDirectoryReplyValidationError) Cause

Cause function returns cause value.

func (AllDirectoryReplyValidationError) Error

Error satisfies the builtin error interface

func (AllDirectoryReplyValidationError) ErrorName

ErrorName returns error name.

func (AllDirectoryReplyValidationError) Field

Field function returns field value.

func (AllDirectoryReplyValidationError) Key

Key function returns key value.

func (AllDirectoryReplyValidationError) Reason

Reason function returns reason value.

type AllDirectoryRequest

type AllDirectoryRequest 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 (*AllDirectoryRequest) Descriptor deprecated

func (*AllDirectoryRequest) Descriptor() ([]byte, []int)

Deprecated: Use AllDirectoryRequest.ProtoReflect.Descriptor instead.

func (*AllDirectoryRequest) GetApp

func (x *AllDirectoryRequest) GetApp() string

func (*AllDirectoryRequest) GetParentId

func (x *AllDirectoryRequest) GetParentId() uint32

func (*AllDirectoryRequest) ProtoMessage

func (*AllDirectoryRequest) ProtoMessage()

func (*AllDirectoryRequest) ProtoReflect

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

func (*AllDirectoryRequest) Reset

func (x *AllDirectoryRequest) Reset()

func (*AllDirectoryRequest) String

func (x *AllDirectoryRequest) String() string

func (*AllDirectoryRequest) Validate

func (m *AllDirectoryRequest) Validate() error

Validate checks the field values on AllDirectoryRequest 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 (*AllDirectoryRequest) ValidateAll

func (m *AllDirectoryRequest) ValidateAll() error

ValidateAll checks the field values on AllDirectoryRequest 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 AllDirectoryRequestMultiError, or nil if none found.

type AllDirectoryRequestMultiError

type AllDirectoryRequestMultiError []error

AllDirectoryRequestMultiError is an error wrapping multiple validation errors returned by AllDirectoryRequest.ValidateAll() if the designated constraints aren't met.

func (AllDirectoryRequestMultiError) AllErrors

func (m AllDirectoryRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AllDirectoryRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AllDirectoryRequestValidationError

type AllDirectoryRequestValidationError struct {
	// contains filtered or unexported fields
}

AllDirectoryRequestValidationError is the validation error returned by AllDirectoryRequest.Validate if the designated constraints aren't met.

func (AllDirectoryRequestValidationError) Cause

Cause function returns cause value.

func (AllDirectoryRequestValidationError) Error

Error satisfies the builtin error interface

func (AllDirectoryRequestValidationError) ErrorName

ErrorName returns error name.

func (AllDirectoryRequestValidationError) Field

Field function returns field value.

func (AllDirectoryRequestValidationError) Key

Key function returns key value.

func (AllDirectoryRequestValidationError) 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 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 GetFileByShaRequest

type GetFileByShaRequest struct {
	Sha string `protobuf:"bytes,5,opt,name=sha,proto3" json:"sha,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFileByShaRequest) Descriptor deprecated

func (*GetFileByShaRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetFileByShaRequest.ProtoReflect.Descriptor instead.

func (*GetFileByShaRequest) GetSha

func (x *GetFileByShaRequest) GetSha() string

func (*GetFileByShaRequest) ProtoMessage

func (*GetFileByShaRequest) ProtoMessage()

func (*GetFileByShaRequest) ProtoReflect

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

func (*GetFileByShaRequest) Reset

func (x *GetFileByShaRequest) Reset()

func (*GetFileByShaRequest) String

func (x *GetFileByShaRequest) String() string

func (*GetFileByShaRequest) Validate

func (m *GetFileByShaRequest) Validate() error

Validate checks the field values on GetFileByShaRequest 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 (*GetFileByShaRequest) ValidateAll

func (m *GetFileByShaRequest) ValidateAll() error

ValidateAll checks the field values on GetFileByShaRequest 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 GetFileByShaRequestMultiError, or nil if none found.

type GetFileByShaRequestMultiError

type GetFileByShaRequestMultiError []error

GetFileByShaRequestMultiError is an error wrapping multiple validation errors returned by GetFileByShaRequest.ValidateAll() if the designated constraints aren't met.

func (GetFileByShaRequestMultiError) AllErrors

func (m GetFileByShaRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetFileByShaRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetFileByShaRequestValidationError

type GetFileByShaRequestValidationError struct {
	// contains filtered or unexported fields
}

GetFileByShaRequestValidationError is the validation error returned by GetFileByShaRequest.Validate if the designated constraints aren't met.

func (GetFileByShaRequestValidationError) Cause

Cause function returns cause value.

func (GetFileByShaRequestValidationError) Error

Error satisfies the builtin error interface

func (GetFileByShaRequestValidationError) ErrorName

ErrorName returns error name.

func (GetFileByShaRequestValidationError) Field

Field function returns field value.

func (GetFileByShaRequestValidationError) Key

Key function returns key value.

func (GetFileByShaRequestValidationError) Reason

Reason function returns reason value.

type GetFileReply

type GetFileReply struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Mime string `protobuf:"bytes,2,opt,name=mime,proto3" json:"mime,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFileReply) Descriptor deprecated

func (*GetFileReply) Descriptor() ([]byte, []int)

Deprecated: Use GetFileReply.ProtoReflect.Descriptor instead.

func (*GetFileReply) GetData

func (x *GetFileReply) GetData() []byte

func (*GetFileReply) GetMime

func (x *GetFileReply) GetMime() string

func (*GetFileReply) ProtoMessage

func (*GetFileReply) ProtoMessage()

func (*GetFileReply) ProtoReflect

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

func (*GetFileReply) Reset

func (x *GetFileReply) Reset()

func (*GetFileReply) String

func (x *GetFileReply) String() string

func (*GetFileReply) Validate

func (m *GetFileReply) Validate() error

Validate checks the field values on GetFileReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetFileReply) ValidateAll

func (m *GetFileReply) ValidateAll() error

ValidateAll checks the field values on GetFileReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetFileReplyMultiError, or nil if none found.

type GetFileReplyMultiError

type GetFileReplyMultiError []error

GetFileReplyMultiError is an error wrapping multiple validation errors returned by GetFileReply.ValidateAll() if the designated constraints aren't met.

func (GetFileReplyMultiError) AllErrors

func (m GetFileReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetFileReplyMultiError) Error

func (m GetFileReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetFileReplyValidationError

type GetFileReplyValidationError struct {
	// contains filtered or unexported fields
}

GetFileReplyValidationError is the validation error returned by GetFileReply.Validate if the designated constraints aren't met.

func (GetFileReplyValidationError) Cause

Cause function returns cause value.

func (GetFileReplyValidationError) Error

Error satisfies the builtin error interface

func (GetFileReplyValidationError) ErrorName

func (e GetFileReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetFileReplyValidationError) Field

Field function returns field value.

func (GetFileReplyValidationError) Key

Key function returns key value.

func (GetFileReplyValidationError) Reason

Reason function returns reason value.

type GetFileRequest

type GetFileRequest struct {
	Src      string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"`
	Width    uint32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"`
	Height   uint32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	Mode     string `protobuf:"bytes,4,opt,name=mode,proto3" json:"mode,omitempty"`
	IsRange  bool   `protobuf:"varint,5,opt,name=is_range,json=isRange,proto3" json:"is_range,omitempty"`
	Start    uint32 `protobuf:"varint,6,opt,name=start,proto3" json:"start,omitempty"`
	End      uint32 `protobuf:"varint,7,opt,name=end,proto3" json:"end,omitempty"`
	Download bool   `protobuf:"varint,8,opt,name=download,proto3" json:"download,omitempty"`
	SaveName string `protobuf:"bytes,9,opt,name=save_name,json=saveName,proto3" json:"save_name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFileRequest) Descriptor deprecated

func (*GetFileRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetFileRequest.ProtoReflect.Descriptor instead.

func (*GetFileRequest) GetDownload added in v1.0.8

func (x *GetFileRequest) GetDownload() bool

func (*GetFileRequest) GetEnd added in v1.0.6

func (x *GetFileRequest) GetEnd() uint32

func (*GetFileRequest) GetHeight

func (x *GetFileRequest) GetHeight() uint32

func (*GetFileRequest) GetIsRange added in v1.0.6

func (x *GetFileRequest) GetIsRange() bool

func (*GetFileRequest) GetMode

func (x *GetFileRequest) GetMode() string

func (*GetFileRequest) GetSaveName added in v1.0.8

func (x *GetFileRequest) GetSaveName() string

func (*GetFileRequest) GetSrc

func (x *GetFileRequest) GetSrc() string

func (*GetFileRequest) GetStart added in v1.0.6

func (x *GetFileRequest) GetStart() uint32

func (*GetFileRequest) GetWidth

func (x *GetFileRequest) GetWidth() uint32

func (*GetFileRequest) ProtoMessage

func (*GetFileRequest) ProtoMessage()

func (*GetFileRequest) ProtoReflect

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

func (*GetFileRequest) Reset

func (x *GetFileRequest) Reset()

func (*GetFileRequest) String

func (x *GetFileRequest) String() string

func (*GetFileRequest) Validate

func (m *GetFileRequest) Validate() error

Validate checks the field values on GetFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetFileRequest) ValidateAll

func (m *GetFileRequest) ValidateAll() error

ValidateAll checks the field values on GetFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetFileRequestMultiError, or nil if none found.

type GetFileRequestMultiError

type GetFileRequestMultiError []error

GetFileRequestMultiError is an error wrapping multiple validation errors returned by GetFileRequest.ValidateAll() if the designated constraints aren't met.

func (GetFileRequestMultiError) AllErrors

func (m GetFileRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetFileRequestMultiError) Error

func (m GetFileRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetFileRequestValidationError

type GetFileRequestValidationError struct {
	// contains filtered or unexported fields
}

GetFileRequestValidationError is the validation error returned by GetFileRequest.Validate if the designated constraints aren't met.

func (GetFileRequestValidationError) Cause

Cause function returns cause value.

func (GetFileRequestValidationError) Error

Error satisfies the builtin error interface

func (GetFileRequestValidationError) ErrorName

func (e GetFileRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetFileRequestValidationError) Field

Field function returns field value.

func (GetFileRequestValidationError) Key

Key function returns key value.

func (GetFileRequestValidationError) 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 {
	AllDirectory(ctx context.Context, in *AllDirectoryRequest, opts ...grpc.CallOption) (*AllDirectoryReply, 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)
	GetFileBySha(ctx context.Context, in *GetFileByShaRequest, opts ...grpc.CallOption) (*File, 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)
	AllDirectory(ctx context.Context, req *AllDirectoryRequest, opts ...http.CallOption) (rsp *AllDirectoryReply, 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)
	GetFileBySha(ctx context.Context, req *GetFileByShaRequest, opts ...http.CallOption) (rsp *File, 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)
}

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

func (*ServiceHTTPClientImpl) DeleteDirectory

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

func (*ServiceHTTPClientImpl) DeleteFile

func (*ServiceHTTPClientImpl) GetFileBySha

func (c *ServiceHTTPClientImpl) GetFileBySha(ctx context.Context, in *GetFileByShaRequest, opts ...http.CallOption) (*File, error)

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

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

func (UnimplementedServiceServer) DeleteDirectory

func (UnimplementedServiceServer) DeleteFile

func (UnimplementedServiceServer) GetFileBySha

func (UnimplementedServiceServer) PageFile

func (UnimplementedServiceServer) PrepareUploadFile

func (UnimplementedServiceServer) UpdateDirectory

func (UnimplementedServiceServer) UpdateFile

func (UnimplementedServiceServer) UploadFile added in v1.0.8

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     []byte `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() []byte

func (*UploadFileRequest) GetIndex

func (x *UploadFileRequest) GetIndex() uint32

func (*UploadFileRequest) GetUploadId

func (x *UploadFileRequest) GetUploadId() string

func (*UploadFileRequest) ProtoMessage

func (*UploadFileRequest) ProtoMessage()

func (*UploadFileRequest) ProtoReflect

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

func (*UploadFileRequest) Reset

func (x *UploadFileRequest) Reset()

func (*UploadFileRequest) String

func (x *UploadFileRequest) String() string

func (*UploadFileRequest) Validate

func (m *UploadFileRequest) Validate() error

Validate checks the field values on UploadFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UploadFileRequest) ValidateAll

func (m *UploadFileRequest) ValidateAll() error

ValidateAll checks the field values on UploadFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UploadFileRequestMultiError, or nil if none found.

type UploadFileRequestMultiError

type UploadFileRequestMultiError []error

UploadFileRequestMultiError is an error wrapping multiple validation errors returned by UploadFileRequest.ValidateAll() if the designated constraints aren't met.

func (UploadFileRequestMultiError) AllErrors

func (m UploadFileRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UploadFileRequestMultiError) Error

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