Documentation ¶
Overview ¶
Package file is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterFileSvcHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterFileSvcHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FileSvcClient) error
- func RegisterFileSvcHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterFileSvcHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FileSvcServer) error
- func RegisterFileSvcServer(s grpc.ServiceRegistrar, srv FileSvcServer)
- type DeleteUndocumentedFilesRequest
- func (*DeleteUndocumentedFilesRequest) Descriptor() ([]byte, []int)deprecated
- func (*DeleteUndocumentedFilesRequest) ProtoMessage()
- func (x *DeleteUndocumentedFilesRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteUndocumentedFilesRequest) Reset()
- func (x *DeleteUndocumentedFilesRequest) String() string
- func (m *DeleteUndocumentedFilesRequest) Validate() error
- func (m *DeleteUndocumentedFilesRequest) ValidateAll() error
- type DeleteUndocumentedFilesRequestMultiError
- type DeleteUndocumentedFilesRequestValidationError
- func (e DeleteUndocumentedFilesRequestValidationError) Cause() error
- func (e DeleteUndocumentedFilesRequestValidationError) Error() string
- func (e DeleteUndocumentedFilesRequestValidationError) ErrorName() string
- func (e DeleteUndocumentedFilesRequestValidationError) Field() string
- func (e DeleteUndocumentedFilesRequestValidationError) Key() bool
- func (e DeleteUndocumentedFilesRequestValidationError) Reason() string
- type DeleteUndocumentedFilesResponse
- func (*DeleteUndocumentedFilesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUndocumentedFilesResponse) GetFiles() []*File
- func (*DeleteUndocumentedFilesResponse) ProtoMessage()
- func (x *DeleteUndocumentedFilesResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteUndocumentedFilesResponse) Reset()
- func (x *DeleteUndocumentedFilesResponse) String() string
- func (m *DeleteUndocumentedFilesResponse) Validate() error
- func (m *DeleteUndocumentedFilesResponse) ValidateAll() error
- type DeleteUndocumentedFilesResponseMultiError
- type DeleteUndocumentedFilesResponseValidationError
- func (e DeleteUndocumentedFilesResponseValidationError) Cause() error
- func (e DeleteUndocumentedFilesResponseValidationError) Error() string
- func (e DeleteUndocumentedFilesResponseValidationError) ErrorName() string
- func (e DeleteUndocumentedFilesResponseValidationError) Field() string
- func (e DeleteUndocumentedFilesResponseValidationError) Key() bool
- func (e DeleteUndocumentedFilesResponseValidationError) Reason() string
- type DiskInfoRequest
- func (*DiskInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (*DiskInfoRequest) ProtoMessage()
- func (x *DiskInfoRequest) ProtoReflect() protoreflect.Message
- func (x *DiskInfoRequest) Reset()
- func (x *DiskInfoRequest) String() string
- func (m *DiskInfoRequest) Validate() error
- func (m *DiskInfoRequest) ValidateAll() error
- type DiskInfoRequestMultiError
- type DiskInfoRequestValidationError
- func (e DiskInfoRequestValidationError) Cause() error
- func (e DiskInfoRequestValidationError) Error() string
- func (e DiskInfoRequestValidationError) ErrorName() string
- func (e DiskInfoRequestValidationError) Field() string
- func (e DiskInfoRequestValidationError) Key() bool
- func (e DiskInfoRequestValidationError) Reason() string
- type DiskInfoResponse
- func (*DiskInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DiskInfoResponse) GetHumanizeUsage() string
- func (x *DiskInfoResponse) GetUsage() int64
- func (*DiskInfoResponse) ProtoMessage()
- func (x *DiskInfoResponse) ProtoReflect() protoreflect.Message
- func (x *DiskInfoResponse) Reset()
- func (x *DiskInfoResponse) String() string
- func (m *DiskInfoResponse) Validate() error
- func (m *DiskInfoResponse) ValidateAll() error
- type DiskInfoResponseMultiError
- type DiskInfoResponseValidationError
- func (e DiskInfoResponseValidationError) Cause() error
- func (e DiskInfoResponseValidationError) Error() string
- func (e DiskInfoResponseValidationError) ErrorName() string
- func (e DiskInfoResponseValidationError) Field() string
- func (e DiskInfoResponseValidationError) Key() bool
- func (e DiskInfoResponseValidationError) Reason() string
- type File
- func (*File) Descriptor() ([]byte, []int)deprecated
- func (x *File) GetHumanizeSize() string
- func (x *File) GetPath() string
- func (x *File) GetSize() int64
- func (x *File) GetUploadBy() string
- func (*File) ProtoMessage()
- func (x *File) ProtoReflect() protoreflect.Message
- func (x *File) Reset()
- func (x *File) String() string
- func (m *File) Validate() error
- func (m *File) ValidateAll() error
- type FileDeleteRequest
- func (*FileDeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FileDeleteRequest) GetId() int64
- func (*FileDeleteRequest) ProtoMessage()
- func (x *FileDeleteRequest) ProtoReflect() protoreflect.Message
- func (x *FileDeleteRequest) Reset()
- func (x *FileDeleteRequest) String() string
- func (m *FileDeleteRequest) Validate() error
- func (m *FileDeleteRequest) ValidateAll() error
- type FileDeleteRequestMultiError
- type FileDeleteRequestValidationError
- func (e FileDeleteRequestValidationError) Cause() error
- func (e FileDeleteRequestValidationError) Error() string
- func (e FileDeleteRequestValidationError) ErrorName() string
- func (e FileDeleteRequestValidationError) Field() string
- func (e FileDeleteRequestValidationError) Key() bool
- func (e FileDeleteRequestValidationError) Reason() string
- type FileDeleteResponse
- func (*FileDeleteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FileDeleteResponse) GetFile() *File
- func (*FileDeleteResponse) ProtoMessage()
- func (x *FileDeleteResponse) ProtoReflect() protoreflect.Message
- func (x *FileDeleteResponse) Reset()
- func (x *FileDeleteResponse) String() string
- func (m *FileDeleteResponse) Validate() error
- func (m *FileDeleteResponse) ValidateAll() error
- type FileDeleteResponseMultiError
- type FileDeleteResponseValidationError
- func (e FileDeleteResponseValidationError) Cause() error
- func (e FileDeleteResponseValidationError) Error() string
- func (e FileDeleteResponseValidationError) ErrorName() string
- func (e FileDeleteResponseValidationError) Field() string
- func (e FileDeleteResponseValidationError) Key() bool
- func (e FileDeleteResponseValidationError) Reason() string
- type FileListRequest
- func (*FileListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FileListRequest) GetPage() int64
- func (x *FileListRequest) GetPageSize() int64
- func (x *FileListRequest) GetWithoutDeleted() bool
- func (*FileListRequest) ProtoMessage()
- func (x *FileListRequest) ProtoReflect() protoreflect.Message
- func (x *FileListRequest) Reset()
- func (x *FileListRequest) String() string
- func (m *FileListRequest) Validate() error
- func (m *FileListRequest) ValidateAll() error
- type FileListRequestMultiError
- type FileListRequestValidationError
- func (e FileListRequestValidationError) Cause() error
- func (e FileListRequestValidationError) Error() string
- func (e FileListRequestValidationError) ErrorName() string
- func (e FileListRequestValidationError) Field() string
- func (e FileListRequestValidationError) Key() bool
- func (e FileListRequestValidationError) Reason() string
- type FileListResponse
- func (*FileListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FileListResponse) GetCount() int64
- func (x *FileListResponse) GetItems() []*model.FileModel
- func (x *FileListResponse) GetPage() int64
- func (x *FileListResponse) GetPageSize() int64
- func (*FileListResponse) ProtoMessage()
- func (x *FileListResponse) ProtoReflect() protoreflect.Message
- func (x *FileListResponse) Reset()
- func (x *FileListResponse) String() string
- func (m *FileListResponse) Validate() error
- func (m *FileListResponse) ValidateAll() error
- type FileListResponseMultiError
- type FileListResponseValidationError
- func (e FileListResponseValidationError) Cause() error
- func (e FileListResponseValidationError) Error() string
- func (e FileListResponseValidationError) ErrorName() string
- func (e FileListResponseValidationError) Field() string
- func (e FileListResponseValidationError) Key() bool
- func (e FileListResponseValidationError) Reason() string
- type FileMultiError
- type FileSvcClient
- type FileSvcServer
- type FileValidationError
- type UnimplementedFileSvcServer
- func (UnimplementedFileSvcServer) Delete(context.Context, *FileDeleteRequest) (*FileDeleteResponse, error)
- func (UnimplementedFileSvcServer) DeleteUndocumentedFiles(context.Context, *DeleteUndocumentedFilesRequest) (*DeleteUndocumentedFilesResponse, error)
- func (UnimplementedFileSvcServer) DiskInfo(context.Context, *DiskInfoRequest) (*DiskInfoResponse, error)
- func (UnimplementedFileSvcServer) List(context.Context, *FileListRequest) (*FileListResponse, error)
- type UnsafeFileSvcServer
Constants ¶
This section is empty.
Variables ¶
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)
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 (x *DeleteUndocumentedFilesRequest) ProtoReflect() protoreflect.Message
func (*DeleteUndocumentedFilesRequest) Reset ¶
func (x *DeleteUndocumentedFilesRequest) Reset()
func (*DeleteUndocumentedFilesRequest) String ¶
func (x *DeleteUndocumentedFilesRequest) String() 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 ¶
func (m DeleteUndocumentedFilesRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteUndocumentedFilesRequestMultiError) Error ¶
func (m DeleteUndocumentedFilesRequestMultiError) Error() string
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 ¶
func (e DeleteUndocumentedFilesRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteUndocumentedFilesRequestValidationError) Error ¶
func (e DeleteUndocumentedFilesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteUndocumentedFilesRequestValidationError) ErrorName ¶
func (e DeleteUndocumentedFilesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteUndocumentedFilesRequestValidationError) Field ¶
func (e DeleteUndocumentedFilesRequestValidationError) Field() string
Field function returns field value.
func (DeleteUndocumentedFilesRequestValidationError) Key ¶
func (e DeleteUndocumentedFilesRequestValidationError) Key() bool
Key function returns key value.
func (DeleteUndocumentedFilesRequestValidationError) Reason ¶
func (e DeleteUndocumentedFilesRequestValidationError) Reason() string
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 (x *DeleteUndocumentedFilesResponse) ProtoReflect() protoreflect.Message
func (*DeleteUndocumentedFilesResponse) Reset ¶
func (x *DeleteUndocumentedFilesResponse) Reset()
func (*DeleteUndocumentedFilesResponse) String ¶
func (x *DeleteUndocumentedFilesResponse) String() 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 ¶
func (m DeleteUndocumentedFilesResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteUndocumentedFilesResponseMultiError) Error ¶
func (m DeleteUndocumentedFilesResponseMultiError) Error() string
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 ¶
func (e DeleteUndocumentedFilesResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteUndocumentedFilesResponseValidationError) Error ¶
func (e DeleteUndocumentedFilesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteUndocumentedFilesResponseValidationError) ErrorName ¶
func (e DeleteUndocumentedFilesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteUndocumentedFilesResponseValidationError) Field ¶
func (e DeleteUndocumentedFilesResponseValidationError) Field() string
Field function returns field value.
func (DeleteUndocumentedFilesResponseValidationError) Key ¶
func (e DeleteUndocumentedFilesResponseValidationError) Key() bool
Key function returns key value.
func (DeleteUndocumentedFilesResponseValidationError) Reason ¶
func (e DeleteUndocumentedFilesResponseValidationError) Reason() string
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 ¶
func (m DiskInfoRequestMultiError) Error() string
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 ¶
func (e DiskInfoRequestValidationError) Cause() error
Cause function returns cause value.
func (DiskInfoRequestValidationError) Error ¶
func (e DiskInfoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DiskInfoRequestValidationError) ErrorName ¶
func (e DiskInfoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DiskInfoRequestValidationError) Field ¶
func (e DiskInfoRequestValidationError) Field() string
Field function returns field value.
func (DiskInfoRequestValidationError) Key ¶
func (e DiskInfoRequestValidationError) Key() bool
Key function returns key value.
func (DiskInfoRequestValidationError) Reason ¶
func (e DiskInfoRequestValidationError) Reason() string
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 ¶
func (m DiskInfoResponseMultiError) Error() string
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 ¶
func (e DiskInfoResponseValidationError) Cause() error
Cause function returns cause value.
func (DiskInfoResponseValidationError) Error ¶
func (e DiskInfoResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DiskInfoResponseValidationError) ErrorName ¶
func (e DiskInfoResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DiskInfoResponseValidationError) Field ¶
func (e DiskInfoResponseValidationError) Field() string
Field function returns field value.
func (DiskInfoResponseValidationError) Key ¶
func (e DiskInfoResponseValidationError) Key() bool
Key function returns key value.
func (DiskInfoResponseValidationError) Reason ¶
func (e DiskInfoResponseValidationError) Reason() string
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) GetHumanizeSize ¶
func (*File) GetUploadBy ¶
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
func (*File) Validate ¶
Validate checks the field values on File with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*File) ValidateAll ¶
ValidateAll checks the field values on File with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FileMultiError, or nil if none found.
type 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 ¶
func (m FileDeleteRequestMultiError) Error() string
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 ¶
func (e FileDeleteRequestValidationError) Cause() error
Cause function returns cause value.
func (FileDeleteRequestValidationError) Error ¶
func (e FileDeleteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FileDeleteRequestValidationError) ErrorName ¶
func (e FileDeleteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FileDeleteRequestValidationError) Field ¶
func (e FileDeleteRequestValidationError) Field() string
Field function returns field value.
func (FileDeleteRequestValidationError) Key ¶
func (e FileDeleteRequestValidationError) Key() bool
Key function returns key value.
func (FileDeleteRequestValidationError) Reason ¶
func (e FileDeleteRequestValidationError) Reason() string
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 ¶
func (m FileDeleteResponseMultiError) Error() string
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 ¶
func (e FileDeleteResponseValidationError) Cause() error
Cause function returns cause value.
func (FileDeleteResponseValidationError) Error ¶
func (e FileDeleteResponseValidationError) Error() string
Error satisfies the builtin error interface
func (FileDeleteResponseValidationError) ErrorName ¶
func (e FileDeleteResponseValidationError) ErrorName() string
ErrorName returns error name.
func (FileDeleteResponseValidationError) Field ¶
func (e FileDeleteResponseValidationError) Field() string
Field function returns field value.
func (FileDeleteResponseValidationError) Key ¶
func (e FileDeleteResponseValidationError) Key() bool
Key function returns key value.
func (FileDeleteResponseValidationError) Reason ¶
func (e FileDeleteResponseValidationError) Reason() string
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 ¶
func (m FileListRequestMultiError) Error() string
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 ¶
func (e FileListRequestValidationError) Cause() error
Cause function returns cause value.
func (FileListRequestValidationError) Error ¶
func (e FileListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FileListRequestValidationError) ErrorName ¶
func (e FileListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FileListRequestValidationError) Field ¶
func (e FileListRequestValidationError) Field() string
Field function returns field value.
func (FileListRequestValidationError) Key ¶
func (e FileListRequestValidationError) Key() bool
Key function returns key value.
func (FileListRequestValidationError) Reason ¶
func (e FileListRequestValidationError) Reason() string
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 ¶
func (m FileListResponseMultiError) Error() string
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 ¶
func (e FileListResponseValidationError) Cause() error
Cause function returns cause value.
func (FileListResponseValidationError) Error ¶
func (e FileListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (FileListResponseValidationError) ErrorName ¶
func (e FileListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (FileListResponseValidationError) Field ¶
func (e FileListResponseValidationError) Field() string
Field function returns field value.
func (FileListResponseValidationError) Key ¶
func (e FileListResponseValidationError) Key() bool
Key function returns key value.
func (FileListResponseValidationError) Reason ¶
func (e FileListResponseValidationError) Reason() string
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) Delete(context.Context, *FileDeleteRequest) (*FileDeleteResponse, error)
func (UnimplementedFileSvcServer) DeleteUndocumentedFiles ¶
func (UnimplementedFileSvcServer) DeleteUndocumentedFiles(context.Context, *DeleteUndocumentedFilesRequest) (*DeleteUndocumentedFilesResponse, error)
func (UnimplementedFileSvcServer) DiskInfo ¶
func (UnimplementedFileSvcServer) DiskInfo(context.Context, *DiskInfoRequest) (*DiskInfoResponse, error)
func (UnimplementedFileSvcServer) List ¶
func (UnimplementedFileSvcServer) List(context.Context, *FileListRequest) (*FileListResponse, error)
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.