file

package
v0.0.0-...-51115e0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Overview

Package file is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var FileSvc_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "FileSvc",
	HandlerType: (*FileSvcServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _FileSvc_List_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _FileSvc_Delete_Handler,
		},
		{
			MethodName: "DeleteUndocumentedFiles",
			Handler:    _FileSvc_DeleteUndocumentedFiles_Handler,
		},
		{
			MethodName: "DiskInfo",
			Handler:    _FileSvc_DiskInfo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "file/file.proto",
}

FileSvc_ServiceDesc is the grpc.ServiceDesc for FileSvc 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_file_file_proto protoreflect.FileDescriptor

Functions

func RegisterFileSvcHandler

func RegisterFileSvcHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterFileSvcHandler registers the http handlers for service FileSvc to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterFileSvcHandlerClient

func RegisterFileSvcHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FileSvcClient) error

RegisterFileSvcHandlerClient registers the http handlers for service FileSvc to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FileSvcClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FileSvcClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "FileSvcClient" to call the correct interceptors.

func RegisterFileSvcHandlerFromEndpoint

func RegisterFileSvcHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterFileSvcHandlerFromEndpoint is same as RegisterFileSvcHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterFileSvcHandlerServer

func RegisterFileSvcHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FileSvcServer) error

RegisterFileSvcHandlerServer registers the http handlers for service FileSvc to "mux". UnaryRPC :call FileSvcServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterFileSvcHandlerFromEndpoint instead.

func RegisterFileSvcServer

func RegisterFileSvcServer(s grpc.ServiceRegistrar, srv FileSvcServer)

Types

type DeleteUndocumentedFilesRequest

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

func (*DeleteUndocumentedFilesRequest) Descriptor deprecated

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

Deprecated: Use DeleteUndocumentedFilesRequest.ProtoReflect.Descriptor instead.

func (*DeleteUndocumentedFilesRequest) ProtoMessage

func (*DeleteUndocumentedFilesRequest) ProtoMessage()

func (*DeleteUndocumentedFilesRequest) ProtoReflect

func (*DeleteUndocumentedFilesRequest) Reset

func (x *DeleteUndocumentedFilesRequest) Reset()

func (*DeleteUndocumentedFilesRequest) String

func (*DeleteUndocumentedFilesRequest) Validate

func (m *DeleteUndocumentedFilesRequest) Validate() error

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

func (m *DeleteUndocumentedFilesRequest) ValidateAll() error

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

type DeleteUndocumentedFilesRequestMultiError

type DeleteUndocumentedFilesRequestMultiError []error

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

func (DeleteUndocumentedFilesRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DeleteUndocumentedFilesRequestMultiError) Error

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

type DeleteUndocumentedFilesRequestValidationError

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

DeleteUndocumentedFilesRequestValidationError is the validation error returned by DeleteUndocumentedFilesRequest.Validate if the designated constraints aren't met.

func (DeleteUndocumentedFilesRequestValidationError) Cause

Cause function returns cause value.

func (DeleteUndocumentedFilesRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteUndocumentedFilesRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteUndocumentedFilesRequestValidationError) Field

Field function returns field value.

func (DeleteUndocumentedFilesRequestValidationError) Key

Key function returns key value.

func (DeleteUndocumentedFilesRequestValidationError) Reason

Reason function returns reason value.

type DeleteUndocumentedFilesResponse

type DeleteUndocumentedFilesResponse struct {
	Files []*File `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUndocumentedFilesResponse) Descriptor deprecated

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

Deprecated: Use DeleteUndocumentedFilesResponse.ProtoReflect.Descriptor instead.

func (*DeleteUndocumentedFilesResponse) GetFiles

func (x *DeleteUndocumentedFilesResponse) GetFiles() []*File

func (*DeleteUndocumentedFilesResponse) ProtoMessage

func (*DeleteUndocumentedFilesResponse) ProtoMessage()

func (*DeleteUndocumentedFilesResponse) ProtoReflect

func (*DeleteUndocumentedFilesResponse) Reset

func (*DeleteUndocumentedFilesResponse) String

func (*DeleteUndocumentedFilesResponse) Validate

func (m *DeleteUndocumentedFilesResponse) Validate() error

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

func (m *DeleteUndocumentedFilesResponse) ValidateAll() error

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

type DeleteUndocumentedFilesResponseMultiError

type DeleteUndocumentedFilesResponseMultiError []error

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

func (DeleteUndocumentedFilesResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DeleteUndocumentedFilesResponseMultiError) Error

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

type DeleteUndocumentedFilesResponseValidationError

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

DeleteUndocumentedFilesResponseValidationError is the validation error returned by DeleteUndocumentedFilesResponse.Validate if the designated constraints aren't met.

func (DeleteUndocumentedFilesResponseValidationError) Cause

Cause function returns cause value.

func (DeleteUndocumentedFilesResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteUndocumentedFilesResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteUndocumentedFilesResponseValidationError) Field

Field function returns field value.

func (DeleteUndocumentedFilesResponseValidationError) Key

Key function returns key value.

func (DeleteUndocumentedFilesResponseValidationError) Reason

Reason function returns reason value.

type DiskInfoRequest

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

func (*DiskInfoRequest) Descriptor deprecated

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

Deprecated: Use DiskInfoRequest.ProtoReflect.Descriptor instead.

func (*DiskInfoRequest) ProtoMessage

func (*DiskInfoRequest) ProtoMessage()

func (*DiskInfoRequest) ProtoReflect

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

func (*DiskInfoRequest) Reset

func (x *DiskInfoRequest) Reset()

func (*DiskInfoRequest) String

func (x *DiskInfoRequest) String() string

func (*DiskInfoRequest) Validate

func (m *DiskInfoRequest) Validate() error

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

func (m *DiskInfoRequest) ValidateAll() error

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

type DiskInfoRequestMultiError

type DiskInfoRequestMultiError []error

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

func (DiskInfoRequestMultiError) AllErrors

func (m DiskInfoRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DiskInfoRequestMultiError) Error

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

type DiskInfoRequestValidationError

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

DiskInfoRequestValidationError is the validation error returned by DiskInfoRequest.Validate if the designated constraints aren't met.

func (DiskInfoRequestValidationError) Cause

Cause function returns cause value.

func (DiskInfoRequestValidationError) Error

Error satisfies the builtin error interface

func (DiskInfoRequestValidationError) ErrorName

func (e DiskInfoRequestValidationError) ErrorName() string

ErrorName returns error name.

func (DiskInfoRequestValidationError) Field

Field function returns field value.

func (DiskInfoRequestValidationError) Key

Key function returns key value.

func (DiskInfoRequestValidationError) Reason

Reason function returns reason value.

type DiskInfoResponse

type DiskInfoResponse struct {
	Usage         int64  `protobuf:"varint,1,opt,name=usage,proto3" json:"usage,omitempty"`
	HumanizeUsage string `protobuf:"bytes,2,opt,name=humanize_usage,json=humanizeUsage,proto3" json:"humanize_usage,omitempty"`
	// contains filtered or unexported fields
}

func (*DiskInfoResponse) Descriptor deprecated

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

Deprecated: Use DiskInfoResponse.ProtoReflect.Descriptor instead.

func (*DiskInfoResponse) GetHumanizeUsage

func (x *DiskInfoResponse) GetHumanizeUsage() string

func (*DiskInfoResponse) GetUsage

func (x *DiskInfoResponse) GetUsage() int64

func (*DiskInfoResponse) ProtoMessage

func (*DiskInfoResponse) ProtoMessage()

func (*DiskInfoResponse) ProtoReflect

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

func (*DiskInfoResponse) Reset

func (x *DiskInfoResponse) Reset()

func (*DiskInfoResponse) String

func (x *DiskInfoResponse) String() string

func (*DiskInfoResponse) Validate

func (m *DiskInfoResponse) Validate() error

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

func (m *DiskInfoResponse) ValidateAll() error

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

type DiskInfoResponseMultiError

type DiskInfoResponseMultiError []error

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

func (DiskInfoResponseMultiError) AllErrors

func (m DiskInfoResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DiskInfoResponseMultiError) Error

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

type DiskInfoResponseValidationError

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

DiskInfoResponseValidationError is the validation error returned by DiskInfoResponse.Validate if the designated constraints aren't met.

func (DiskInfoResponseValidationError) Cause

Cause function returns cause value.

func (DiskInfoResponseValidationError) Error

Error satisfies the builtin error interface

func (DiskInfoResponseValidationError) ErrorName

ErrorName returns error name.

func (DiskInfoResponseValidationError) Field

Field function returns field value.

func (DiskInfoResponseValidationError) Key

Key function returns key value.

func (DiskInfoResponseValidationError) Reason

Reason function returns reason value.

type File

type File struct {
	Path         string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	HumanizeSize string `protobuf:"bytes,2,opt,name=humanize_size,json=humanizeSize,proto3" json:"humanize_size,omitempty"`
	Size         int64  `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	UploadBy     string `protobuf:"bytes,4,opt,name=upload_by,json=uploadBy,proto3" json:"upload_by,omitempty"`
	// contains filtered or unexported fields
}

func (*File) Descriptor deprecated

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

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetHumanizeSize

func (x *File) GetHumanizeSize() string

func (*File) GetPath

func (x *File) GetPath() string

func (*File) GetSize

func (x *File) GetSize() int64

func (*File) GetUploadBy

func (x *File) GetUploadBy() 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 FileDeleteRequest

type FileDeleteRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*FileDeleteRequest) Descriptor deprecated

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

Deprecated: Use FileDeleteRequest.ProtoReflect.Descriptor instead.

func (*FileDeleteRequest) GetId

func (x *FileDeleteRequest) GetId() int64

func (*FileDeleteRequest) ProtoMessage

func (*FileDeleteRequest) ProtoMessage()

func (*FileDeleteRequest) ProtoReflect

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

func (*FileDeleteRequest) Reset

func (x *FileDeleteRequest) Reset()

func (*FileDeleteRequest) String

func (x *FileDeleteRequest) String() string

func (*FileDeleteRequest) Validate

func (m *FileDeleteRequest) Validate() error

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

func (m *FileDeleteRequest) ValidateAll() error

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

type FileDeleteRequestMultiError

type FileDeleteRequestMultiError []error

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

func (FileDeleteRequestMultiError) AllErrors

func (m FileDeleteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FileDeleteRequestMultiError) Error

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

type FileDeleteRequestValidationError

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

FileDeleteRequestValidationError is the validation error returned by FileDeleteRequest.Validate if the designated constraints aren't met.

func (FileDeleteRequestValidationError) Cause

Cause function returns cause value.

func (FileDeleteRequestValidationError) Error

Error satisfies the builtin error interface

func (FileDeleteRequestValidationError) ErrorName

ErrorName returns error name.

func (FileDeleteRequestValidationError) Field

Field function returns field value.

func (FileDeleteRequestValidationError) Key

Key function returns key value.

func (FileDeleteRequestValidationError) Reason

Reason function returns reason value.

type FileDeleteResponse

type FileDeleteResponse struct {
	File *File `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
	// contains filtered or unexported fields
}

func (*FileDeleteResponse) Descriptor deprecated

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

Deprecated: Use FileDeleteResponse.ProtoReflect.Descriptor instead.

func (*FileDeleteResponse) GetFile

func (x *FileDeleteResponse) GetFile() *File

func (*FileDeleteResponse) ProtoMessage

func (*FileDeleteResponse) ProtoMessage()

func (*FileDeleteResponse) ProtoReflect

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

func (*FileDeleteResponse) Reset

func (x *FileDeleteResponse) Reset()

func (*FileDeleteResponse) String

func (x *FileDeleteResponse) String() string

func (*FileDeleteResponse) Validate

func (m *FileDeleteResponse) Validate() error

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

func (m *FileDeleteResponse) ValidateAll() error

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

type FileDeleteResponseMultiError

type FileDeleteResponseMultiError []error

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

func (FileDeleteResponseMultiError) AllErrors

func (m FileDeleteResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FileDeleteResponseMultiError) Error

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

type FileDeleteResponseValidationError

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

FileDeleteResponseValidationError is the validation error returned by FileDeleteResponse.Validate if the designated constraints aren't met.

func (FileDeleteResponseValidationError) Cause

Cause function returns cause value.

func (FileDeleteResponseValidationError) Error

Error satisfies the builtin error interface

func (FileDeleteResponseValidationError) ErrorName

ErrorName returns error name.

func (FileDeleteResponseValidationError) Field

Field function returns field value.

func (FileDeleteResponseValidationError) Key

Key function returns key value.

func (FileDeleteResponseValidationError) Reason

Reason function returns reason value.

type FileListRequest

type FileListRequest struct {
	Page           int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize       int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	WithoutDeleted bool  `protobuf:"varint,3,opt,name=without_deleted,json=withoutDeleted,proto3" json:"without_deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*FileListRequest) Descriptor deprecated

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

Deprecated: Use FileListRequest.ProtoReflect.Descriptor instead.

func (*FileListRequest) GetPage

func (x *FileListRequest) GetPage() int64

func (*FileListRequest) GetPageSize

func (x *FileListRequest) GetPageSize() int64

func (*FileListRequest) GetWithoutDeleted

func (x *FileListRequest) GetWithoutDeleted() bool

func (*FileListRequest) ProtoMessage

func (*FileListRequest) ProtoMessage()

func (*FileListRequest) ProtoReflect

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

func (*FileListRequest) Reset

func (x *FileListRequest) Reset()

func (*FileListRequest) String

func (x *FileListRequest) String() string

func (*FileListRequest) Validate

func (m *FileListRequest) Validate() error

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

func (m *FileListRequest) ValidateAll() error

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

type FileListRequestMultiError

type FileListRequestMultiError []error

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

func (FileListRequestMultiError) AllErrors

func (m FileListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FileListRequestMultiError) Error

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

type FileListRequestValidationError

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

FileListRequestValidationError is the validation error returned by FileListRequest.Validate if the designated constraints aren't met.

func (FileListRequestValidationError) Cause

Cause function returns cause value.

func (FileListRequestValidationError) Error

Error satisfies the builtin error interface

func (FileListRequestValidationError) ErrorName

func (e FileListRequestValidationError) ErrorName() string

ErrorName returns error name.

func (FileListRequestValidationError) Field

Field function returns field value.

func (FileListRequestValidationError) Key

Key function returns key value.

func (FileListRequestValidationError) Reason

Reason function returns reason value.

type FileListResponse

type FileListResponse struct {
	Page     int64              `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int64              `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Items    []*model.FileModel `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`
	Count    int64              `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*FileListResponse) Descriptor deprecated

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

Deprecated: Use FileListResponse.ProtoReflect.Descriptor instead.

func (*FileListResponse) GetCount

func (x *FileListResponse) GetCount() int64

func (*FileListResponse) GetItems

func (x *FileListResponse) GetItems() []*model.FileModel

func (*FileListResponse) GetPage

func (x *FileListResponse) GetPage() int64

func (*FileListResponse) GetPageSize

func (x *FileListResponse) GetPageSize() int64

func (*FileListResponse) ProtoMessage

func (*FileListResponse) ProtoMessage()

func (*FileListResponse) ProtoReflect

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

func (*FileListResponse) Reset

func (x *FileListResponse) Reset()

func (*FileListResponse) String

func (x *FileListResponse) String() string

func (*FileListResponse) Validate

func (m *FileListResponse) Validate() error

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

func (m *FileListResponse) ValidateAll() error

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

type FileListResponseMultiError

type FileListResponseMultiError []error

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

func (FileListResponseMultiError) AllErrors

func (m FileListResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FileListResponseMultiError) Error

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

type FileListResponseValidationError

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

FileListResponseValidationError is the validation error returned by FileListResponse.Validate if the designated constraints aren't met.

func (FileListResponseValidationError) Cause

Cause function returns cause value.

func (FileListResponseValidationError) Error

Error satisfies the builtin error interface

func (FileListResponseValidationError) ErrorName

ErrorName returns error name.

func (FileListResponseValidationError) Field

Field function returns field value.

func (FileListResponseValidationError) Key

Key function returns key value.

func (FileListResponseValidationError) Reason

Reason function returns reason value.

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 FileSvcClient

type FileSvcClient interface {
	//  文件列表
	List(ctx context.Context, in *FileListRequest, opts ...grpc.CallOption) (*FileListResponse, error)
	//  删除文件
	Delete(ctx context.Context, in *FileDeleteRequest, opts ...grpc.CallOption) (*FileDeleteResponse, error)
	//  DeleteUndocumentedFiles 删除未被记录的文件,model 表中没有,但是文件目录中有
	DeleteUndocumentedFiles(ctx context.Context, in *DeleteUndocumentedFilesRequest, opts ...grpc.CallOption) (*DeleteUndocumentedFilesResponse, error)
	// DiskInfo 查看上传文件目录大小
	DiskInfo(ctx context.Context, in *DiskInfoRequest, opts ...grpc.CallOption) (*DiskInfoResponse, error)
}

FileSvcClient is the client API for FileSvc 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 NewFileSvcClient

func NewFileSvcClient(cc grpc.ClientConnInterface) FileSvcClient

type FileSvcServer

type FileSvcServer interface {
	//  文件列表
	List(context.Context, *FileListRequest) (*FileListResponse, error)
	//  删除文件
	Delete(context.Context, *FileDeleteRequest) (*FileDeleteResponse, error)
	//  DeleteUndocumentedFiles 删除未被记录的文件,model 表中没有,但是文件目录中有
	DeleteUndocumentedFiles(context.Context, *DeleteUndocumentedFilesRequest) (*DeleteUndocumentedFilesResponse, error)
	// DiskInfo 查看上传文件目录大小
	DiskInfo(context.Context, *DiskInfoRequest) (*DiskInfoResponse, error)
	// contains filtered or unexported methods
}

FileSvcServer is the server API for FileSvc service. All implementations must embed UnimplementedFileSvcServer for forward compatibility

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 UnimplementedFileSvcServer

type UnimplementedFileSvcServer struct {
}

UnimplementedFileSvcServer must be embedded to have forward compatible implementations.

func (UnimplementedFileSvcServer) Delete

func (UnimplementedFileSvcServer) DiskInfo

func (UnimplementedFileSvcServer) List

type UnsafeFileSvcServer

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

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

Jump to

Keyboard shortcuts

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