v1

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	File_GetFile_FullMethodName           = "/resource.api.resource.file.v1.File/GetFile"
	File_ListFile_FullMethodName          = "/resource.api.resource.file.v1.File/ListFile"
	File_PrepareUploadFile_FullMethodName = "/resource.api.resource.file.v1.File/PrepareUploadFile"
	File_UploadFile_FullMethodName        = "/resource.api.resource.file.v1.File/UploadFile"
	File_UpdateFile_FullMethodName        = "/resource.api.resource.file.v1.File/UpdateFile"
	File_DeleteFile_FullMethodName        = "/resource.api.resource.file.v1.File/DeleteFile"
)
View Source
const OperationFileDeleteFile = "/resource.api.resource.file.v1.File/DeleteFile"
View Source
const OperationFileGetFile = "/resource.api.resource.file.v1.File/GetFile"
View Source
const OperationFileListFile = "/resource.api.resource.file.v1.File/ListFile"
View Source
const OperationFilePrepareUploadFile = "/resource.api.resource.file.v1.File/PrepareUploadFile"
View Source
const OperationFileUpdateFile = "/resource.api.resource.file.v1.File/UpdateFile"

Variables

View Source
var File_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "resource.api.resource.file.v1.File",
	HandlerType: (*FileServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetFile",
			Handler:    _File_GetFile_Handler,
		},
		{
			MethodName: "ListFile",
			Handler:    _File_ListFile_Handler,
		},
		{
			MethodName: "PrepareUploadFile",
			Handler:    _File_PrepareUploadFile_Handler,
		},
		{
			MethodName: "UploadFile",
			Handler:    _File_UploadFile_Handler,
		},
		{
			MethodName: "UpdateFile",
			Handler:    _File_UpdateFile_Handler,
		},
		{
			MethodName: "DeleteFile",
			Handler:    _File_DeleteFile_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/resource/file/resource_file_service.proto",
}

File_ServiceDesc is the grpc.ServiceDesc for File service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_resource_file_resource_file_proto protoreflect.FileDescriptor
View Source
var File_api_resource_file_resource_file_service_proto protoreflect.FileDescriptor

Functions

func RegisterFileHTTPServer

func RegisterFileHTTPServer(s *http.Server, srv FileHTTPServer)

func RegisterFileServer

func RegisterFileServer(s grpc.ServiceRegistrar, srv FileServer)

Types

type DeleteFileReply

type DeleteFileReply struct {
	Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteFileReply) Descriptor deprecated

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

Deprecated: Use DeleteFileReply.ProtoReflect.Descriptor instead.

func (*DeleteFileReply) GetTotal

func (x *DeleteFileReply) GetTotal() uint32

func (*DeleteFileReply) ProtoMessage

func (*DeleteFileReply) ProtoMessage()

func (*DeleteFileReply) ProtoReflect

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

func (*DeleteFileReply) Reset

func (x *DeleteFileReply) Reset()

func (*DeleteFileReply) String

func (x *DeleteFileReply) String() string

func (*DeleteFileReply) Validate

func (m *DeleteFileReply) Validate() error

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

func (*DeleteFileReply) ValidateAll

func (m *DeleteFileReply) ValidateAll() error

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

type DeleteFileReplyMultiError

type DeleteFileReplyMultiError []error

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

func (DeleteFileReplyMultiError) AllErrors

func (m DeleteFileReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteFileReplyMultiError) Error

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

type DeleteFileReplyValidationError

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

DeleteFileReplyValidationError is the validation error returned by DeleteFileReply.Validate if the designated constraints aren't met.

func (DeleteFileReplyValidationError) Cause

Cause function returns cause value.

func (DeleteFileReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteFileReplyValidationError) ErrorName

func (e DeleteFileReplyValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteFileReplyValidationError) Field

Field function returns field value.

func (DeleteFileReplyValidationError) Key

Key function returns key value.

func (DeleteFileReplyValidationError) Reason

Reason function returns reason value.

type DeleteFileRequest

type DeleteFileRequest struct {
	Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteFileRequest) Descriptor deprecated

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

Deprecated: Use DeleteFileRequest.ProtoReflect.Descriptor instead.

func (*DeleteFileRequest) GetIds

func (x *DeleteFileRequest) GetIds() []uint32

func (*DeleteFileRequest) ProtoMessage

func (*DeleteFileRequest) ProtoMessage()

func (*DeleteFileRequest) ProtoReflect

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

func (*DeleteFileRequest) Reset

func (x *DeleteFileRequest) Reset()

func (*DeleteFileRequest) String

func (x *DeleteFileRequest) String() string

func (*DeleteFileRequest) Validate

func (m *DeleteFileRequest) Validate() error

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

func (*DeleteFileRequest) ValidateAll

func (m *DeleteFileRequest) ValidateAll() error

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

type DeleteFileRequestMultiError

type DeleteFileRequestMultiError []error

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

func (DeleteFileRequestMultiError) AllErrors

func (m DeleteFileRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteFileRequestMultiError) Error

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 DownloadFileReply added in v1.0.12

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

func (*DownloadFileReply) Descriptor deprecated added in v1.0.12

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

Deprecated: Use DownloadFileReply.ProtoReflect.Descriptor instead.

func (*DownloadFileReply) GetData added in v1.0.12

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

func (*DownloadFileReply) GetMime added in v1.0.12

func (x *DownloadFileReply) GetMime() string

func (*DownloadFileReply) ProtoMessage added in v1.0.12

func (*DownloadFileReply) ProtoMessage()

func (*DownloadFileReply) ProtoReflect added in v1.0.12

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

func (*DownloadFileReply) Reset added in v1.0.12

func (x *DownloadFileReply) Reset()

func (*DownloadFileReply) String added in v1.0.12

func (x *DownloadFileReply) String() string

func (*DownloadFileReply) Validate added in v1.0.12

func (m *DownloadFileReply) Validate() error

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

func (*DownloadFileReply) ValidateAll added in v1.0.12

func (m *DownloadFileReply) ValidateAll() error

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

type DownloadFileReplyMultiError added in v1.0.12

type DownloadFileReplyMultiError []error

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

func (DownloadFileReplyMultiError) AllErrors added in v1.0.12

func (m DownloadFileReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DownloadFileReplyMultiError) Error added in v1.0.12

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

type DownloadFileReplyValidationError added in v1.0.12

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

DownloadFileReplyValidationError is the validation error returned by DownloadFileReply.Validate if the designated constraints aren't met.

func (DownloadFileReplyValidationError) Cause added in v1.0.12

Cause function returns cause value.

func (DownloadFileReplyValidationError) Error added in v1.0.12

Error satisfies the builtin error interface

func (DownloadFileReplyValidationError) ErrorName added in v1.0.12

ErrorName returns error name.

func (DownloadFileReplyValidationError) Field added in v1.0.12

Field function returns field value.

func (DownloadFileReplyValidationError) Key added in v1.0.12

Key function returns key value.

func (DownloadFileReplyValidationError) Reason added in v1.0.12

Reason function returns reason value.

type DownloadFileRequest added in v1.0.12

type DownloadFileRequest struct {
	Src      string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"`
	Expire   string `protobuf:"bytes,2,opt,name=expire,proto3" json:"expire,omitempty"`
	Sign     string `protobuf:"bytes,3,opt,name=sign,proto3" json:"sign,omitempty"`
	SaveName string `protobuf:"bytes,4,opt,name=saveName,proto3" json:"saveName,omitempty"`
	// contains filtered or unexported fields
}

func (*DownloadFileRequest) Descriptor deprecated added in v1.0.12

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

Deprecated: Use DownloadFileRequest.ProtoReflect.Descriptor instead.

func (*DownloadFileRequest) GetExpire added in v1.0.12

func (x *DownloadFileRequest) GetExpire() string

func (*DownloadFileRequest) GetSaveName added in v1.0.12

func (x *DownloadFileRequest) GetSaveName() string

func (*DownloadFileRequest) GetSign added in v1.0.12

func (x *DownloadFileRequest) GetSign() string

func (*DownloadFileRequest) GetSrc added in v1.0.12

func (x *DownloadFileRequest) GetSrc() string

func (*DownloadFileRequest) ProtoMessage added in v1.0.12

func (*DownloadFileRequest) ProtoMessage()

func (*DownloadFileRequest) ProtoReflect added in v1.0.12

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

func (*DownloadFileRequest) Reset added in v1.0.12

func (x *DownloadFileRequest) Reset()

func (*DownloadFileRequest) String added in v1.0.12

func (x *DownloadFileRequest) String() string

func (*DownloadFileRequest) Validate added in v1.0.12

func (m *DownloadFileRequest) Validate() error

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

func (*DownloadFileRequest) ValidateAll added in v1.0.12

func (m *DownloadFileRequest) ValidateAll() error

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

type DownloadFileRequestMultiError added in v1.0.12

type DownloadFileRequestMultiError []error

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

func (DownloadFileRequestMultiError) AllErrors added in v1.0.12

func (m DownloadFileRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DownloadFileRequestMultiError) Error added in v1.0.12

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

type DownloadFileRequestValidationError added in v1.0.12

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

DownloadFileRequestValidationError is the validation error returned by DownloadFileRequest.Validate if the designated constraints aren't met.

func (DownloadFileRequestValidationError) Cause added in v1.0.12

Cause function returns cause value.

func (DownloadFileRequestValidationError) Error added in v1.0.12

Error satisfies the builtin error interface

func (DownloadFileRequestValidationError) ErrorName added in v1.0.12

ErrorName returns error name.

func (DownloadFileRequestValidationError) Field added in v1.0.12

Field function returns field value.

func (DownloadFileRequestValidationError) Key added in v1.0.12

Key function returns key value.

func (DownloadFileRequestValidationError) Reason added in v1.0.12

Reason function returns reason value.

type FileClient

type FileClient interface {
	// GetFile 获取指定的文件信息
	GetFile(ctx context.Context, in *GetFileRequest, opts ...grpc.CallOption) (*GetFileReply, error)
	// ListFile 获取文件信息列表
	ListFile(ctx context.Context, in *ListFileRequest, opts ...grpc.CallOption) (*ListFileReply, error)
	// PrepareUploadFile 预上传文件信息
	PrepareUploadFile(ctx context.Context, in *PrepareUploadFileRequest, opts ...grpc.CallOption) (*PrepareUploadFileReply, error)
	// UploadFile 上传文件
	UploadFile(ctx context.Context, in *UploadFileRequest, opts ...grpc.CallOption) (*UploadFileReply, error)
	// UpdateFile 更新文件信息
	UpdateFile(ctx context.Context, in *UpdateFileRequest, opts ...grpc.CallOption) (*UpdateFileReply, error)
	// DeleteFile 删除文件信息
	DeleteFile(ctx context.Context, in *DeleteFileRequest, opts ...grpc.CallOption) (*DeleteFileReply, error)
}

FileClient is the client API for File service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewFileClient

func NewFileClient(cc grpc.ClientConnInterface) FileClient

type FileHTTPClient

type FileHTTPClient interface {
	DeleteFile(ctx context.Context, req *DeleteFileRequest, opts ...http.CallOption) (rsp *DeleteFileReply, err error)
	GetFile(ctx context.Context, req *GetFileRequest, opts ...http.CallOption) (rsp *GetFileReply, err error)
	ListFile(ctx context.Context, req *ListFileRequest, opts ...http.CallOption) (rsp *ListFileReply, err error)
	PrepareUploadFile(ctx context.Context, req *PrepareUploadFileRequest, opts ...http.CallOption) (rsp *PrepareUploadFileReply, err error)
	UpdateFile(ctx context.Context, req *UpdateFileRequest, opts ...http.CallOption) (rsp *UpdateFileReply, err error)
}

func NewFileHTTPClient

func NewFileHTTPClient(client *http.Client) FileHTTPClient

type FileHTTPClientImpl

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

func (*FileHTTPClientImpl) DeleteFile

func (*FileHTTPClientImpl) GetFile

func (*FileHTTPClientImpl) ListFile

func (*FileHTTPClientImpl) PrepareUploadFile

func (*FileHTTPClientImpl) UpdateFile

type FileHTTPServer

type FileHTTPServer interface {
	// DeleteFile DeleteFile 删除文件信息
	DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileReply, error)
	// GetFile GetFile 获取指定的文件信息
	GetFile(context.Context, *GetFileRequest) (*GetFileReply, error)
	// ListFile ListFile 获取文件信息列表
	ListFile(context.Context, *ListFileRequest) (*ListFileReply, error)
	// PrepareUploadFile PrepareUploadFile 预上传文件信息
	PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileReply, error)
	// UpdateFile UpdateFile 更新文件信息
	UpdateFile(context.Context, *UpdateFileRequest) (*UpdateFileReply, error)
}

type FileServer

type FileServer interface {
	// GetFile 获取指定的文件信息
	GetFile(context.Context, *GetFileRequest) (*GetFileReply, error)
	// ListFile 获取文件信息列表
	ListFile(context.Context, *ListFileRequest) (*ListFileReply, error)
	// PrepareUploadFile 预上传文件信息
	PrepareUploadFile(context.Context, *PrepareUploadFileRequest) (*PrepareUploadFileReply, error)
	// UploadFile 上传文件
	UploadFile(context.Context, *UploadFileRequest) (*UploadFileReply, error)
	// UpdateFile 更新文件信息
	UpdateFile(context.Context, *UpdateFileRequest) (*UpdateFileReply, error)
	// DeleteFile 删除文件信息
	DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileReply, error)
	// contains filtered or unexported methods
}

FileServer is the server API for File service. All implementations must embed UnimplementedFileServer for forward compatibility

type GetFileReply

type GetFileReply struct {
	Id          uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	DirectoryId uint32 `protobuf:"varint,2,opt,name=directoryId,proto3" json:"directoryId,omitempty"`
	Name        string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Type        string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	Size        uint32 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
	Sha         string `protobuf:"bytes,6,opt,name=sha,proto3" json:"sha,omitempty"`
	Src         string `protobuf:"bytes,7,opt,name=src,proto3" json:"src,omitempty"`
	Url         string `protobuf:"bytes,8,opt,name=url,proto3" json:"url,omitempty"`
	Status      string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"`
	UploadId    string `protobuf:"bytes,10,opt,name=uploadId,proto3" json:"uploadId,omitempty"`
	ChunkCount  uint32 `protobuf:"varint,11,opt,name=chunkCount,proto3" json:"chunkCount,omitempty"`
	CreatedAt   uint32 `protobuf:"varint,12,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt   uint32 `protobuf:"varint,13,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFileReply) Descriptor deprecated

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

Deprecated: Use GetFileReply.ProtoReflect.Descriptor instead.

func (*GetFileReply) GetChunkCount

func (x *GetFileReply) GetChunkCount() uint32

func (*GetFileReply) GetCreatedAt

func (x *GetFileReply) GetCreatedAt() uint32

func (*GetFileReply) GetDirectoryId

func (x *GetFileReply) GetDirectoryId() uint32

func (*GetFileReply) GetId

func (x *GetFileReply) GetId() uint32

func (*GetFileReply) GetName

func (x *GetFileReply) GetName() string

func (*GetFileReply) GetSha

func (x *GetFileReply) GetSha() string

func (*GetFileReply) GetSize

func (x *GetFileReply) GetSize() uint32

func (*GetFileReply) GetSrc

func (x *GetFileReply) GetSrc() string

func (*GetFileReply) GetStatus

func (x *GetFileReply) GetStatus() string

func (*GetFileReply) GetType

func (x *GetFileReply) GetType() string

func (*GetFileReply) GetUpdatedAt

func (x *GetFileReply) GetUpdatedAt() uint32

func (*GetFileReply) GetUploadId

func (x *GetFileReply) GetUploadId() string

func (*GetFileReply) GetUrl

func (x *GetFileReply) GetUrl() string

func (*GetFileReply) ProtoMessage

func (*GetFileReply) ProtoMessage()

func (*GetFileReply) ProtoReflect

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

func (*GetFileReply) Reset

func (x *GetFileReply) Reset()

func (*GetFileReply) String

func (x *GetFileReply) String() string

func (*GetFileReply) Validate

func (m *GetFileReply) Validate() error

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

func (*GetFileReply) ValidateAll

func (m *GetFileReply) ValidateAll() error

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

type GetFileReplyMultiError

type GetFileReplyMultiError []error

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

func (GetFileReplyMultiError) AllErrors

func (m GetFileReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetFileReplyMultiError) Error

func (m GetFileReplyMultiError) Error() string

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

type GetFileReplyValidationError

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

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

func (GetFileReplyValidationError) Cause

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 {
	Id  *uint32 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
	Sha *string `protobuf:"bytes,2,opt,name=sha,proto3,oneof" json:"sha,omitempty"`
	Src *string `protobuf:"bytes,3,opt,name=src,proto3,oneof" json:"src,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFileRequest) Descriptor deprecated

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

Deprecated: Use GetFileRequest.ProtoReflect.Descriptor instead.

func (*GetFileRequest) GetId

func (x *GetFileRequest) GetId() uint32

func (*GetFileRequest) GetSha

func (x *GetFileRequest) GetSha() string

func (*GetFileRequest) GetSrc added in v1.0.12

func (x *GetFileRequest) GetSrc() string

func (*GetFileRequest) ProtoMessage

func (*GetFileRequest) ProtoMessage()

func (*GetFileRequest) ProtoReflect

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

func (*GetFileRequest) Reset

func (x *GetFileRequest) Reset()

func (*GetFileRequest) String

func (x *GetFileRequest) String() string

func (*GetFileRequest) Validate

func (m *GetFileRequest) Validate() error

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

func (*GetFileRequest) ValidateAll

func (m *GetFileRequest) ValidateAll() error

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

type GetFileRequestMultiError

type GetFileRequestMultiError []error

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

func (GetFileRequestMultiError) AllErrors

func (m GetFileRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetFileRequestMultiError) Error

func (m GetFileRequestMultiError) Error() string

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

type GetFileRequestValidationError

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

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

func (GetFileRequestValidationError) Cause

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 ListFileReply

type ListFileReply struct {
	Total uint32                `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	List  []*ListFileReply_File `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFileReply) Descriptor deprecated

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

Deprecated: Use ListFileReply.ProtoReflect.Descriptor instead.

func (*ListFileReply) GetList

func (x *ListFileReply) GetList() []*ListFileReply_File

func (*ListFileReply) GetTotal

func (x *ListFileReply) GetTotal() uint32

func (*ListFileReply) ProtoMessage

func (*ListFileReply) ProtoMessage()

func (*ListFileReply) ProtoReflect

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

func (*ListFileReply) Reset

func (x *ListFileReply) Reset()

func (*ListFileReply) String

func (x *ListFileReply) String() string

func (*ListFileReply) Validate

func (m *ListFileReply) Validate() error

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

func (*ListFileReply) ValidateAll

func (m *ListFileReply) ValidateAll() error

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

type ListFileReplyMultiError

type ListFileReplyMultiError []error

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

func (ListFileReplyMultiError) AllErrors

func (m ListFileReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListFileReplyMultiError) Error

func (m ListFileReplyMultiError) Error() string

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

type ListFileReplyValidationError

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

ListFileReplyValidationError is the validation error returned by ListFileReply.Validate if the designated constraints aren't met.

func (ListFileReplyValidationError) Cause

Cause function returns cause value.

func (ListFileReplyValidationError) Error

Error satisfies the builtin error interface

func (ListFileReplyValidationError) ErrorName

func (e ListFileReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListFileReplyValidationError) Field

Field function returns field value.

func (ListFileReplyValidationError) Key

Key function returns key value.

func (ListFileReplyValidationError) Reason

Reason function returns reason value.

type ListFileReply_File

type ListFileReply_File struct {
	Id          uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	DirectoryId uint32 `protobuf:"varint,2,opt,name=directoryId,proto3" json:"directoryId,omitempty"`
	Name        string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Type        string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	Size        uint32 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
	Sha         string `protobuf:"bytes,6,opt,name=sha,proto3" json:"sha,omitempty"`
	Src         string `protobuf:"bytes,7,opt,name=src,proto3" json:"src,omitempty"`
	Url         string `protobuf:"bytes,8,opt,name=url,proto3" json:"url,omitempty"`
	Status      string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"`
	UploadId    string `protobuf:"bytes,10,opt,name=uploadId,proto3" json:"uploadId,omitempty"`
	ChunkCount  uint32 `protobuf:"varint,11,opt,name=chunkCount,proto3" json:"chunkCount,omitempty"`
	CreatedAt   uint32 `protobuf:"varint,12,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt   uint32 `protobuf:"varint,13,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFileReply_File) Descriptor deprecated

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

Deprecated: Use ListFileReply_File.ProtoReflect.Descriptor instead.

func (*ListFileReply_File) GetChunkCount

func (x *ListFileReply_File) GetChunkCount() uint32

func (*ListFileReply_File) GetCreatedAt

func (x *ListFileReply_File) GetCreatedAt() uint32

func (*ListFileReply_File) GetDirectoryId

func (x *ListFileReply_File) GetDirectoryId() uint32

func (*ListFileReply_File) GetId

func (x *ListFileReply_File) GetId() uint32

func (*ListFileReply_File) GetName

func (x *ListFileReply_File) GetName() string

func (*ListFileReply_File) GetSha

func (x *ListFileReply_File) GetSha() string

func (*ListFileReply_File) GetSize

func (x *ListFileReply_File) GetSize() uint32

func (*ListFileReply_File) GetSrc

func (x *ListFileReply_File) GetSrc() string

func (*ListFileReply_File) GetStatus

func (x *ListFileReply_File) GetStatus() string

func (*ListFileReply_File) GetType

func (x *ListFileReply_File) GetType() string

func (*ListFileReply_File) GetUpdatedAt

func (x *ListFileReply_File) GetUpdatedAt() uint32

func (*ListFileReply_File) GetUploadId

func (x *ListFileReply_File) GetUploadId() string

func (*ListFileReply_File) GetUrl

func (x *ListFileReply_File) GetUrl() string

func (*ListFileReply_File) ProtoMessage

func (*ListFileReply_File) ProtoMessage()

func (*ListFileReply_File) ProtoReflect

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

func (*ListFileReply_File) Reset

func (x *ListFileReply_File) Reset()

func (*ListFileReply_File) String

func (x *ListFileReply_File) String() string

func (*ListFileReply_File) Validate

func (m *ListFileReply_File) Validate() error

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

func (*ListFileReply_File) ValidateAll

func (m *ListFileReply_File) ValidateAll() error

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

type ListFileReply_FileMultiError

type ListFileReply_FileMultiError []error

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

func (ListFileReply_FileMultiError) AllErrors

func (m ListFileReply_FileMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListFileReply_FileMultiError) Error

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

type ListFileReply_FileValidationError

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

ListFileReply_FileValidationError is the validation error returned by ListFileReply_File.Validate if the designated constraints aren't met.

func (ListFileReply_FileValidationError) Cause

Cause function returns cause value.

func (ListFileReply_FileValidationError) Error

Error satisfies the builtin error interface

func (ListFileReply_FileValidationError) ErrorName

ErrorName returns error name.

func (ListFileReply_FileValidationError) Field

Field function returns field value.

func (ListFileReply_FileValidationError) Key

Key function returns key value.

func (ListFileReply_FileValidationError) Reason

Reason function returns reason value.

type ListFileRequest

type ListFileRequest struct {
	Page        uint32  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize    uint32  `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	Order       *string `protobuf:"bytes,3,opt,name=order,proto3,oneof" json:"order,omitempty"`
	OrderBy     *string `protobuf:"bytes,4,opt,name=orderBy,proto3,oneof" json:"orderBy,omitempty"`
	DirectoryId *uint32 `protobuf:"varint,5,opt,name=directoryId,proto3,oneof" json:"directoryId,omitempty"`
	Status      *string `protobuf:"bytes,6,opt,name=status,proto3,oneof" json:"status,omitempty"`
	Name        *string `protobuf:"bytes,7,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFileRequest) Descriptor deprecated

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

Deprecated: Use ListFileRequest.ProtoReflect.Descriptor instead.

func (*ListFileRequest) GetDirectoryId

func (x *ListFileRequest) GetDirectoryId() uint32

func (*ListFileRequest) GetName added in v1.0.12

func (x *ListFileRequest) GetName() string

func (*ListFileRequest) GetOrder

func (x *ListFileRequest) GetOrder() string

func (*ListFileRequest) GetOrderBy

func (x *ListFileRequest) GetOrderBy() string

func (*ListFileRequest) GetPage

func (x *ListFileRequest) GetPage() uint32

func (*ListFileRequest) GetPageSize

func (x *ListFileRequest) GetPageSize() uint32

func (*ListFileRequest) GetStatus

func (x *ListFileRequest) GetStatus() string

func (*ListFileRequest) ProtoMessage

func (*ListFileRequest) ProtoMessage()

func (*ListFileRequest) ProtoReflect

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

func (*ListFileRequest) Reset

func (x *ListFileRequest) Reset()

func (*ListFileRequest) String

func (x *ListFileRequest) String() string

func (*ListFileRequest) Validate

func (m *ListFileRequest) Validate() error

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

func (*ListFileRequest) ValidateAll

func (m *ListFileRequest) ValidateAll() error

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

type ListFileRequestMultiError

type ListFileRequestMultiError []error

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

func (ListFileRequestMultiError) AllErrors

func (m ListFileRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListFileRequestMultiError) Error

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

type ListFileRequestValidationError

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

ListFileRequestValidationError is the validation error returned by ListFileRequest.Validate if the designated constraints aren't met.

func (ListFileRequestValidationError) Cause

Cause function returns cause value.

func (ListFileRequestValidationError) Error

Error satisfies the builtin error interface

func (ListFileRequestValidationError) ErrorName

func (e ListFileRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListFileRequestValidationError) Field

Field function returns field value.

func (ListFileRequestValidationError) Key

Key function returns key value.

func (ListFileRequestValidationError) Reason

Reason function returns reason value.

type PrepareUploadFileReply

type PrepareUploadFileReply struct {
	Uploaded     bool     `protobuf:"varint,1,opt,name=uploaded,proto3" json:"uploaded,omitempty"`
	Src          *string  `protobuf:"bytes,2,opt,name=src,proto3,oneof" json:"src,omitempty"`
	ChunkSize    *uint32  `protobuf:"varint,3,opt,name=chunkSize,proto3,oneof" json:"chunkSize,omitempty"`
	ChunkCount   *uint32  `protobuf:"varint,4,opt,name=chunkCount,proto3,oneof" json:"chunkCount,omitempty"`
	UploadId     *string  `protobuf:"bytes,5,opt,name=uploadId,proto3,oneof" json:"uploadId,omitempty"`
	UploadChunks []uint32 `protobuf:"varint,6,rep,packed,name=uploadChunks,proto3" json:"uploadChunks,omitempty"`
	Sha          *string  `protobuf:"bytes,7,opt,name=sha,proto3,oneof" json:"sha,omitempty"`
	Url          *string  `protobuf:"bytes,8,opt,name=url,proto3,oneof" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*PrepareUploadFileReply) Descriptor deprecated

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

Deprecated: Use PrepareUploadFileReply.ProtoReflect.Descriptor instead.

func (*PrepareUploadFileReply) GetChunkCount

func (x *PrepareUploadFileReply) GetChunkCount() uint32

func (*PrepareUploadFileReply) GetChunkSize

func (x *PrepareUploadFileReply) GetChunkSize() uint32

func (*PrepareUploadFileReply) GetSha

func (x *PrepareUploadFileReply) GetSha() string

func (*PrepareUploadFileReply) GetSrc

func (x *PrepareUploadFileReply) GetSrc() string

func (*PrepareUploadFileReply) GetUploadChunks

func (x *PrepareUploadFileReply) GetUploadChunks() []uint32

func (*PrepareUploadFileReply) GetUploadId

func (x *PrepareUploadFileReply) GetUploadId() string

func (*PrepareUploadFileReply) GetUploaded

func (x *PrepareUploadFileReply) GetUploaded() bool

func (*PrepareUploadFileReply) GetUrl

func (x *PrepareUploadFileReply) GetUrl() string

func (*PrepareUploadFileReply) ProtoMessage

func (*PrepareUploadFileReply) ProtoMessage()

func (*PrepareUploadFileReply) ProtoReflect

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

func (*PrepareUploadFileReply) Reset

func (x *PrepareUploadFileReply) Reset()

func (*PrepareUploadFileReply) String

func (x *PrepareUploadFileReply) String() string

func (*PrepareUploadFileReply) Validate

func (m *PrepareUploadFileReply) Validate() error

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

func (*PrepareUploadFileReply) ValidateAll

func (m *PrepareUploadFileReply) ValidateAll() error

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

type PrepareUploadFileReplyMultiError

type PrepareUploadFileReplyMultiError []error

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

func (PrepareUploadFileReplyMultiError) AllErrors

func (m PrepareUploadFileReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PrepareUploadFileReplyMultiError) Error

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=directoryId,proto3,oneof" json:"directoryId,omitempty"`
	DirectoryPath *string `protobuf:"bytes,2,opt,name=directoryPath,proto3,oneof" json:"directoryPath,omitempty"`
	Name          string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Size          uint32  `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
	Sha           string  `protobuf:"bytes,5,opt,name=sha,proto3" json:"sha,omitempty"`
	// contains filtered or unexported fields
}

func (*PrepareUploadFileRequest) Descriptor deprecated

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

Deprecated: Use PrepareUploadFileRequest.ProtoReflect.Descriptor instead.

func (*PrepareUploadFileRequest) GetDirectoryId

func (x *PrepareUploadFileRequest) GetDirectoryId() uint32

func (*PrepareUploadFileRequest) GetDirectoryPath

func (x *PrepareUploadFileRequest) GetDirectoryPath() string

func (*PrepareUploadFileRequest) GetName

func (x *PrepareUploadFileRequest) GetName() string

func (*PrepareUploadFileRequest) GetSha

func (x *PrepareUploadFileRequest) GetSha() string

func (*PrepareUploadFileRequest) GetSize

func (x *PrepareUploadFileRequest) GetSize() uint32

func (*PrepareUploadFileRequest) ProtoMessage

func (*PrepareUploadFileRequest) ProtoMessage()

func (*PrepareUploadFileRequest) ProtoReflect

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

func (*PrepareUploadFileRequest) Reset

func (x *PrepareUploadFileRequest) Reset()

func (*PrepareUploadFileRequest) String

func (x *PrepareUploadFileRequest) String() string

func (*PrepareUploadFileRequest) Validate

func (m *PrepareUploadFileRequest) Validate() error

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

func (*PrepareUploadFileRequest) ValidateAll

func (m *PrepareUploadFileRequest) ValidateAll() error

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

type PrepareUploadFileRequestMultiError

type PrepareUploadFileRequestMultiError []error

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

func (PrepareUploadFileRequestMultiError) AllErrors

func (m PrepareUploadFileRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PrepareUploadFileRequestMultiError) Error

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 StaticFileReply

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

func (*StaticFileReply) Descriptor deprecated

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

Deprecated: Use StaticFileReply.ProtoReflect.Descriptor instead.

func (*StaticFileReply) GetData

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

func (*StaticFileReply) GetMime

func (x *StaticFileReply) GetMime() string

func (*StaticFileReply) ProtoMessage

func (*StaticFileReply) ProtoMessage()

func (*StaticFileReply) ProtoReflect

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

func (*StaticFileReply) Reset

func (x *StaticFileReply) Reset()

func (*StaticFileReply) String

func (x *StaticFileReply) String() string

func (*StaticFileReply) Validate

func (m *StaticFileReply) Validate() error

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

func (*StaticFileReply) ValidateAll

func (m *StaticFileReply) ValidateAll() error

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

type StaticFileReplyMultiError

type StaticFileReplyMultiError []error

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

func (StaticFileReplyMultiError) AllErrors

func (m StaticFileReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StaticFileReplyMultiError) Error

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

type StaticFileReplyValidationError

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

StaticFileReplyValidationError is the validation error returned by StaticFileReply.Validate if the designated constraints aren't met.

func (StaticFileReplyValidationError) Cause

Cause function returns cause value.

func (StaticFileReplyValidationError) Error

Error satisfies the builtin error interface

func (StaticFileReplyValidationError) ErrorName

func (e StaticFileReplyValidationError) ErrorName() string

ErrorName returns error name.

func (StaticFileReplyValidationError) Field

Field function returns field value.

func (StaticFileReplyValidationError) Key

Key function returns key value.

func (StaticFileReplyValidationError) Reason

Reason function returns reason value.

type StaticFileRequest

type StaticFileRequest struct {
	Src      string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"`
	Expire   string `protobuf:"bytes,2,opt,name=expire,proto3" json:"expire,omitempty"`
	Sign     string `protobuf:"bytes,3,opt,name=sign,proto3" json:"sign,omitempty"`
	Width    uint32 `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"`
	Height   uint32 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
	Mode     string `protobuf:"bytes,6,opt,name=mode,proto3" json:"mode,omitempty"`
	Download bool   `protobuf:"varint,7,opt,name=download,proto3" json:"download,omitempty"`
	SaveName string `protobuf:"bytes,8,opt,name=saveName,proto3" json:"saveName,omitempty"`
	// contains filtered or unexported fields
}

func (*StaticFileRequest) Descriptor deprecated

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

Deprecated: Use StaticFileRequest.ProtoReflect.Descriptor instead.

func (*StaticFileRequest) GetDownload

func (x *StaticFileRequest) GetDownload() bool

func (*StaticFileRequest) GetExpire

func (x *StaticFileRequest) GetExpire() string

func (*StaticFileRequest) GetHeight

func (x *StaticFileRequest) GetHeight() uint32

func (*StaticFileRequest) GetMode

func (x *StaticFileRequest) GetMode() string

func (*StaticFileRequest) GetSaveName

func (x *StaticFileRequest) GetSaveName() string

func (*StaticFileRequest) GetSign

func (x *StaticFileRequest) GetSign() string

func (*StaticFileRequest) GetSrc

func (x *StaticFileRequest) GetSrc() string

func (*StaticFileRequest) GetWidth

func (x *StaticFileRequest) GetWidth() uint32

func (*StaticFileRequest) ProtoMessage

func (*StaticFileRequest) ProtoMessage()

func (*StaticFileRequest) ProtoReflect

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

func (*StaticFileRequest) Reset

func (x *StaticFileRequest) Reset()

func (*StaticFileRequest) String

func (x *StaticFileRequest) String() string

func (*StaticFileRequest) Validate

func (m *StaticFileRequest) Validate() error

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

func (*StaticFileRequest) ValidateAll

func (m *StaticFileRequest) ValidateAll() error

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

type StaticFileRequestMultiError

type StaticFileRequestMultiError []error

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

func (StaticFileRequestMultiError) AllErrors

func (m StaticFileRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StaticFileRequestMultiError) Error

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

type StaticFileRequestValidationError

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

StaticFileRequestValidationError is the validation error returned by StaticFileRequest.Validate if the designated constraints aren't met.

func (StaticFileRequestValidationError) Cause

Cause function returns cause value.

func (StaticFileRequestValidationError) Error

Error satisfies the builtin error interface

func (StaticFileRequestValidationError) ErrorName

ErrorName returns error name.

func (StaticFileRequestValidationError) Field

Field function returns field value.

func (StaticFileRequestValidationError) Key

Key function returns key value.

func (StaticFileRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedFileServer

type UnimplementedFileServer struct {
}

UnimplementedFileServer must be embedded to have forward compatible implementations.

func (UnimplementedFileServer) DeleteFile

func (UnimplementedFileServer) GetFile

func (UnimplementedFileServer) ListFile

func (UnimplementedFileServer) PrepareUploadFile

func (UnimplementedFileServer) UpdateFile

func (UnimplementedFileServer) UploadFile

type UnsafeFileServer

type UnsafeFileServer interface {
	// contains filtered or unexported methods
}

UnsafeFileServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FileServer will result in compilation errors.

type UpdateFileReply

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

func (*UpdateFileReply) Descriptor deprecated

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

Deprecated: Use UpdateFileReply.ProtoReflect.Descriptor instead.

func (*UpdateFileReply) ProtoMessage

func (*UpdateFileReply) ProtoMessage()

func (*UpdateFileReply) ProtoReflect

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

func (*UpdateFileReply) Reset

func (x *UpdateFileReply) Reset()

func (*UpdateFileReply) String

func (x *UpdateFileReply) String() string

func (*UpdateFileReply) Validate

func (m *UpdateFileReply) Validate() error

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

func (*UpdateFileReply) ValidateAll

func (m *UpdateFileReply) ValidateAll() error

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

type UpdateFileReplyMultiError

type UpdateFileReplyMultiError []error

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

func (UpdateFileReplyMultiError) AllErrors

func (m UpdateFileReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateFileReplyMultiError) Error

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

type UpdateFileReplyValidationError

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

UpdateFileReplyValidationError is the validation error returned by UpdateFileReply.Validate if the designated constraints aren't met.

func (UpdateFileReplyValidationError) Cause

Cause function returns cause value.

func (UpdateFileReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateFileReplyValidationError) ErrorName

func (e UpdateFileReplyValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateFileReplyValidationError) Field

Field function returns field value.

func (UpdateFileReplyValidationError) Key

Key function returns key value.

func (UpdateFileReplyValidationError) Reason

Reason function returns reason value.

type UpdateFileRequest

type UpdateFileRequest struct {
	Id          uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	DirectoryId uint32 `protobuf:"varint,2,opt,name=directoryId,proto3" json:"directoryId,omitempty"`
	Name        string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateFileRequest) Descriptor deprecated

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

Deprecated: Use UpdateFileRequest.ProtoReflect.Descriptor instead.

func (*UpdateFileRequest) GetDirectoryId

func (x *UpdateFileRequest) GetDirectoryId() uint32

func (*UpdateFileRequest) GetId

func (x *UpdateFileRequest) GetId() uint32

func (*UpdateFileRequest) GetName

func (x *UpdateFileRequest) GetName() string

func (*UpdateFileRequest) ProtoMessage

func (*UpdateFileRequest) ProtoMessage()

func (*UpdateFileRequest) ProtoReflect

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

func (*UpdateFileRequest) Reset

func (x *UpdateFileRequest) Reset()

func (*UpdateFileRequest) String

func (x *UpdateFileRequest) String() string

func (*UpdateFileRequest) Validate

func (m *UpdateFileRequest) Validate() error

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

func (*UpdateFileRequest) ValidateAll

func (m *UpdateFileRequest) ValidateAll() error

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

type UpdateFileRequestMultiError

type UpdateFileRequestMultiError []error

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

func (UpdateFileRequestMultiError) AllErrors

func (m UpdateFileRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateFileRequestMultiError) Error

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"`
	Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadFileReply) Descriptor deprecated

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

Deprecated: Use UploadFileReply.ProtoReflect.Descriptor instead.

func (*UploadFileReply) GetSha

func (x *UploadFileReply) GetSha() string

func (*UploadFileReply) GetSrc

func (x *UploadFileReply) GetSrc() string

func (*UploadFileReply) GetUrl

func (x *UploadFileReply) GetUrl() string

func (*UploadFileReply) ProtoMessage

func (*UploadFileReply) ProtoMessage()

func (*UploadFileReply) ProtoReflect

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

func (*UploadFileReply) Reset

func (x *UploadFileReply) Reset()

func (*UploadFileReply) String

func (x *UploadFileReply) String() string

func (*UploadFileReply) Validate

func (m *UploadFileReply) Validate() error

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

func (*UploadFileReply) ValidateAll

func (m *UploadFileReply) ValidateAll() error

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

type UploadFileReplyMultiError

type UploadFileReplyMultiError []error

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

func (UploadFileReplyMultiError) AllErrors

func (m UploadFileReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UploadFileReplyMultiError) Error

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=uploadId,proto3" json:"uploadId,omitempty"`
	Index    uint32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadFileRequest) Descriptor deprecated

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

Deprecated: Use UploadFileRequest.ProtoReflect.Descriptor instead.

func (*UploadFileRequest) GetData

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

func (*UploadFileRequest) GetIndex

func (x *UploadFileRequest) GetIndex() uint32

func (*UploadFileRequest) GetUploadId

func (x *UploadFileRequest) GetUploadId() string

func (*UploadFileRequest) ProtoMessage

func (*UploadFileRequest) ProtoMessage()

func (*UploadFileRequest) ProtoReflect

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

func (*UploadFileRequest) Reset

func (x *UploadFileRequest) Reset()

func (*UploadFileRequest) String

func (x *UploadFileRequest) String() string

func (*UploadFileRequest) Validate

func (m *UploadFileRequest) Validate() error

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

func (*UploadFileRequest) ValidateAll

func (m *UploadFileRequest) ValidateAll() error

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

type UploadFileRequestMultiError

type UploadFileRequestMultiError []error

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

func (UploadFileRequestMultiError) AllErrors

func (m UploadFileRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UploadFileRequestMultiError) Error

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