Documentation
¶
Overview ¶
Package file is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterFileHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterFileHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FileClient) error
- func RegisterFileHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterFileHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FileServer) error
- func RegisterFileServer(s grpc.ServiceRegistrar, srv FileServer)
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRequest) GetId() int32
- func (*DeleteRequest) ProtoMessage()
- func (x *DeleteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRequest) Reset()
- func (x *DeleteRequest) String() string
- func (m *DeleteRequest) Validate() error
- func (m *DeleteRequest) ValidateAll() error
- type DeleteRequestMultiError
- type DeleteRequestValidationError
- func (e DeleteRequestValidationError) Cause() error
- func (e DeleteRequestValidationError) Error() string
- func (e DeleteRequestValidationError) ErrorName() string
- func (e DeleteRequestValidationError) Field() string
- func (e DeleteRequestValidationError) Key() bool
- func (e DeleteRequestValidationError) Reason() string
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteResponse) ProtoMessage()
- func (x *DeleteResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteResponse) Reset()
- func (x *DeleteResponse) String() string
- func (m *DeleteResponse) Validate() error
- func (m *DeleteResponse) ValidateAll() error
- type DeleteResponseMultiError
- type DeleteResponseValidationError
- func (e DeleteResponseValidationError) Cause() error
- func (e DeleteResponseValidationError) Error() string
- func (e DeleteResponseValidationError) ErrorName() string
- func (e DeleteResponseValidationError) Field() string
- func (e DeleteResponseValidationError) Key() bool
- func (e DeleteResponseValidationError) 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 FileClient
- type FileServer
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetPage() int32
- func (x *ListRequest) GetPageSize() int32
- func (x *ListRequest) GetWithoutDeleted() bool
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- func (m *ListRequest) Validate() error
- func (m *ListRequest) ValidateAll() error
- type ListRequestMultiError
- type ListRequestValidationError
- func (e ListRequestValidationError) Cause() error
- func (e ListRequestValidationError) Error() string
- func (e ListRequestValidationError) ErrorName() string
- func (e ListRequestValidationError) Field() string
- func (e ListRequestValidationError) Key() bool
- func (e ListRequestValidationError) Reason() string
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetCount() int32
- func (x *ListResponse) GetItems() []*types.FileModel
- func (x *ListResponse) GetPage() int32
- func (x *ListResponse) GetPageSize() int32
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- func (m *ListResponse) Validate() error
- func (m *ListResponse) ValidateAll() error
- type ListResponseMultiError
- type ListResponseValidationError
- func (e ListResponseValidationError) Cause() error
- func (e ListResponseValidationError) Error() string
- func (e ListResponseValidationError) ErrorName() string
- func (e ListResponseValidationError) Field() string
- func (e ListResponseValidationError) Key() bool
- func (e ListResponseValidationError) Reason() string
- type MaxUploadSizeRequest
- func (*MaxUploadSizeRequest) Descriptor() ([]byte, []int)deprecated
- func (*MaxUploadSizeRequest) ProtoMessage()
- func (x *MaxUploadSizeRequest) ProtoReflect() protoreflect.Message
- func (x *MaxUploadSizeRequest) Reset()
- func (x *MaxUploadSizeRequest) String() string
- func (m *MaxUploadSizeRequest) Validate() error
- func (m *MaxUploadSizeRequest) ValidateAll() error
- type MaxUploadSizeRequestMultiError
- type MaxUploadSizeRequestValidationError
- func (e MaxUploadSizeRequestValidationError) Cause() error
- func (e MaxUploadSizeRequestValidationError) Error() string
- func (e MaxUploadSizeRequestValidationError) ErrorName() string
- func (e MaxUploadSizeRequestValidationError) Field() string
- func (e MaxUploadSizeRequestValidationError) Key() bool
- func (e MaxUploadSizeRequestValidationError) Reason() string
- type MaxUploadSizeResponse
- func (*MaxUploadSizeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MaxUploadSizeResponse) GetBytes() uint32
- func (x *MaxUploadSizeResponse) GetHumanizeSize() string
- func (*MaxUploadSizeResponse) ProtoMessage()
- func (x *MaxUploadSizeResponse) ProtoReflect() protoreflect.Message
- func (x *MaxUploadSizeResponse) Reset()
- func (x *MaxUploadSizeResponse) String() string
- func (m *MaxUploadSizeResponse) Validate() error
- func (m *MaxUploadSizeResponse) ValidateAll() error
- type MaxUploadSizeResponseMultiError
- type MaxUploadSizeResponseValidationError
- func (e MaxUploadSizeResponseValidationError) Cause() error
- func (e MaxUploadSizeResponseValidationError) Error() string
- func (e MaxUploadSizeResponseValidationError) ErrorName() string
- func (e MaxUploadSizeResponseValidationError) Field() string
- func (e MaxUploadSizeResponseValidationError) Key() bool
- func (e MaxUploadSizeResponseValidationError) Reason() string
- type ShowRecordsRequest
- func (*ShowRecordsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ShowRecordsRequest) GetId() int32
- func (*ShowRecordsRequest) ProtoMessage()
- func (x *ShowRecordsRequest) ProtoReflect() protoreflect.Message
- func (x *ShowRecordsRequest) Reset()
- func (x *ShowRecordsRequest) String() string
- func (m *ShowRecordsRequest) Validate() error
- func (m *ShowRecordsRequest) ValidateAll() error
- type ShowRecordsRequestMultiError
- type ShowRecordsRequestValidationError
- func (e ShowRecordsRequestValidationError) Cause() error
- func (e ShowRecordsRequestValidationError) Error() string
- func (e ShowRecordsRequestValidationError) ErrorName() string
- func (e ShowRecordsRequestValidationError) Field() string
- func (e ShowRecordsRequestValidationError) Key() bool
- func (e ShowRecordsRequestValidationError) Reason() string
- type ShowRecordsResponse
- func (*ShowRecordsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ShowRecordsResponse) GetItems() []string
- func (*ShowRecordsResponse) ProtoMessage()
- func (x *ShowRecordsResponse) ProtoReflect() protoreflect.Message
- func (x *ShowRecordsResponse) Reset()
- func (x *ShowRecordsResponse) String() string
- func (m *ShowRecordsResponse) Validate() error
- func (m *ShowRecordsResponse) ValidateAll() error
- type ShowRecordsResponseMultiError
- type ShowRecordsResponseValidationError
- func (e ShowRecordsResponseValidationError) Cause() error
- func (e ShowRecordsResponseValidationError) Error() string
- func (e ShowRecordsResponseValidationError) ErrorName() string
- func (e ShowRecordsResponseValidationError) Field() string
- func (e ShowRecordsResponseValidationError) Key() bool
- func (e ShowRecordsResponseValidationError) Reason() string
- type UnimplementedFileServer
- func (UnimplementedFileServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedFileServer) DiskInfo(context.Context, *DiskInfoRequest) (*DiskInfoResponse, error)
- func (UnimplementedFileServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedFileServer) MaxUploadSize(context.Context, *MaxUploadSizeRequest) (*MaxUploadSizeResponse, error)
- func (UnimplementedFileServer) ShowRecords(context.Context, *ShowRecordsRequest) (*ShowRecordsResponse, error)
- type UnsafeFileServer
Constants ¶
const ( File_List_FullMethodName = "/file.File/List" File_ShowRecords_FullMethodName = "/file.File/ShowRecords" File_Delete_FullMethodName = "/file.File/Delete" File_DiskInfo_FullMethodName = "/file.File/DiskInfo" File_MaxUploadSize_FullMethodName = "/file.File/MaxUploadSize" )
Variables ¶
var File_ServiceDesc = grpc.ServiceDesc{ ServiceName: "file.File", HandlerType: (*FileServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "List", Handler: _File_List_Handler, }, { MethodName: "ShowRecords", Handler: _File_ShowRecords_Handler, }, { MethodName: "Delete", Handler: _File_Delete_Handler, }, { MethodName: "DiskInfo", Handler: _File_DiskInfo_Handler, }, { MethodName: "MaxUploadSize", Handler: _File_MaxUploadSize_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "file/file.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)
var File_file_file_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFileHandler ¶
RegisterFileHandler registers the http handlers for service File to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterFileHandlerClient ¶
RegisterFileHandlerClient registers the http handlers for service File to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FileClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FileClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "FileClient" to call the correct interceptors.
func RegisterFileHandlerFromEndpoint ¶
func RegisterFileHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterFileHandlerFromEndpoint is same as RegisterFileHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterFileHandlerServer ¶
RegisterFileHandlerServer registers the http handlers for service File to "mux". UnaryRPC :call FileServer 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 RegisterFileHandlerFromEndpoint instead.
func RegisterFileServer ¶
func RegisterFileServer(s grpc.ServiceRegistrar, srv FileServer)
Types ¶
type DeleteRequest ¶
type DeleteRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetId ¶
func (x *DeleteRequest) GetId() int32
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
func (*DeleteRequest) Validate ¶
func (m *DeleteRequest) Validate() error
Validate checks the field values on DeleteRequest 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 (*DeleteRequest) ValidateAll ¶
func (m *DeleteRequest) ValidateAll() error
ValidateAll checks the field values on DeleteRequest 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 DeleteRequestMultiError, or nil if none found.
type DeleteRequestMultiError ¶
type DeleteRequestMultiError []error
DeleteRequestMultiError is an error wrapping multiple validation errors returned by DeleteRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteRequestMultiError) AllErrors ¶
func (m DeleteRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRequestMultiError) Error ¶
func (m DeleteRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRequestValidationError ¶
type DeleteRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteRequestValidationError is the validation error returned by DeleteRequest.Validate if the designated constraints aren't met.
func (DeleteRequestValidationError) Cause ¶
func (e DeleteRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteRequestValidationError) Error ¶
func (e DeleteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRequestValidationError) ErrorName ¶
func (e DeleteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRequestValidationError) Field ¶
func (e DeleteRequestValidationError) Field() string
Field function returns field value.
func (DeleteRequestValidationError) Key ¶
func (e DeleteRequestValidationError) Key() bool
Key function returns key value.
func (DeleteRequestValidationError) Reason ¶
func (e DeleteRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteResponse ¶
type DeleteResponse struct {
// contains filtered or unexported fields
}
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
func (*DeleteResponse) Validate ¶
func (m *DeleteResponse) Validate() error
Validate checks the field values on DeleteResponse 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 (*DeleteResponse) ValidateAll ¶
func (m *DeleteResponse) ValidateAll() error
ValidateAll checks the field values on DeleteResponse 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 DeleteResponseMultiError, or nil if none found.
type DeleteResponseMultiError ¶
type DeleteResponseMultiError []error
DeleteResponseMultiError is an error wrapping multiple validation errors returned by DeleteResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteResponseMultiError) AllErrors ¶
func (m DeleteResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteResponseMultiError) Error ¶
func (m DeleteResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteResponseValidationError ¶
type DeleteResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteResponseValidationError is the validation error returned by DeleteResponse.Validate if the designated constraints aren't met.
func (DeleteResponseValidationError) Cause ¶
func (e DeleteResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteResponseValidationError) Error ¶
func (e DeleteResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteResponseValidationError) ErrorName ¶
func (e DeleteResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteResponseValidationError) Field ¶
func (e DeleteResponseValidationError) Field() string
Field function returns field value.
func (DeleteResponseValidationError) Key ¶
func (e DeleteResponseValidationError) Key() bool
Key function returns key value.
func (DeleteResponseValidationError) Reason ¶
func (e DeleteResponseValidationError) 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 FileClient ¶
type FileClient interface { List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) ShowRecords(ctx context.Context, in *ShowRecordsRequest, opts ...grpc.CallOption) (*ShowRecordsResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) DiskInfo(ctx context.Context, in *DiskInfoRequest, opts ...grpc.CallOption) (*DiskInfoResponse, error) MaxUploadSize(ctx context.Context, in *MaxUploadSizeRequest, opts ...grpc.CallOption) (*MaxUploadSizeResponse, 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 FileServer ¶
type FileServer interface { List(context.Context, *ListRequest) (*ListResponse, error) ShowRecords(context.Context, *ShowRecordsRequest) (*ShowRecordsResponse, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) DiskInfo(context.Context, *DiskInfoRequest) (*DiskInfoResponse, error) MaxUploadSize(context.Context, *MaxUploadSizeRequest) (*MaxUploadSizeResponse, error) // contains filtered or unexported methods }
FileServer is the server API for File service. All implementations must embed UnimplementedFileServer for forward compatibility
type ListRequest ¶
type ListRequest struct { Page *int32 `protobuf:"varint,1,opt,name=page,proto3,oneof" json:"page,omitempty"` PageSize *int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3,oneof" 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 (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetPage ¶
func (x *ListRequest) GetPage() int32
func (*ListRequest) GetPageSize ¶
func (x *ListRequest) GetPageSize() int32
func (*ListRequest) GetWithoutDeleted ¶
func (x *ListRequest) GetWithoutDeleted() bool
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
func (*ListRequest) Validate ¶
func (m *ListRequest) Validate() error
Validate checks the field values on ListRequest 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 (*ListRequest) ValidateAll ¶
func (m *ListRequest) ValidateAll() error
ValidateAll checks the field values on ListRequest 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 ListRequestMultiError, or nil if none found.
type ListRequestMultiError ¶
type ListRequestMultiError []error
ListRequestMultiError is an error wrapping multiple validation errors returned by ListRequest.ValidateAll() if the designated constraints aren't met.
func (ListRequestMultiError) AllErrors ¶
func (m ListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRequestMultiError) Error ¶
func (m ListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRequestValidationError ¶
type ListRequestValidationError struct {
// contains filtered or unexported fields
}
ListRequestValidationError is the validation error returned by ListRequest.Validate if the designated constraints aren't met.
func (ListRequestValidationError) Cause ¶
func (e ListRequestValidationError) Cause() error
Cause function returns cause value.
func (ListRequestValidationError) Error ¶
func (e ListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListRequestValidationError) ErrorName ¶
func (e ListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListRequestValidationError) Field ¶
func (e ListRequestValidationError) Field() string
Field function returns field value.
func (ListRequestValidationError) Key ¶
func (e ListRequestValidationError) Key() bool
Key function returns key value.
func (ListRequestValidationError) Reason ¶
func (e ListRequestValidationError) Reason() string
Reason function returns reason value.
type ListResponse ¶
type ListResponse struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Items []*types.FileModel `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetCount ¶
func (x *ListResponse) GetCount() int32
func (*ListResponse) GetItems ¶
func (x *ListResponse) GetItems() []*types.FileModel
func (*ListResponse) GetPage ¶
func (x *ListResponse) GetPage() int32
func (*ListResponse) GetPageSize ¶
func (x *ListResponse) GetPageSize() int32
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
func (*ListResponse) Validate ¶
func (m *ListResponse) Validate() error
Validate checks the field values on ListResponse 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 (*ListResponse) ValidateAll ¶
func (m *ListResponse) ValidateAll() error
ValidateAll checks the field values on ListResponse 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 ListResponseMultiError, or nil if none found.
type ListResponseMultiError ¶
type ListResponseMultiError []error
ListResponseMultiError is an error wrapping multiple validation errors returned by ListResponse.ValidateAll() if the designated constraints aren't met.
func (ListResponseMultiError) AllErrors ¶
func (m ListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListResponseMultiError) Error ¶
func (m ListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListResponseValidationError ¶
type ListResponseValidationError struct {
// contains filtered or unexported fields
}
ListResponseValidationError is the validation error returned by ListResponse.Validate if the designated constraints aren't met.
func (ListResponseValidationError) Cause ¶
func (e ListResponseValidationError) Cause() error
Cause function returns cause value.
func (ListResponseValidationError) Error ¶
func (e ListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListResponseValidationError) ErrorName ¶
func (e ListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListResponseValidationError) Field ¶
func (e ListResponseValidationError) Field() string
Field function returns field value.
func (ListResponseValidationError) Key ¶
func (e ListResponseValidationError) Key() bool
Key function returns key value.
func (ListResponseValidationError) Reason ¶
func (e ListResponseValidationError) Reason() string
Reason function returns reason value.
type MaxUploadSizeRequest ¶
type MaxUploadSizeRequest struct {
// contains filtered or unexported fields
}
func (*MaxUploadSizeRequest) Descriptor
deprecated
func (*MaxUploadSizeRequest) Descriptor() ([]byte, []int)
Deprecated: Use MaxUploadSizeRequest.ProtoReflect.Descriptor instead.
func (*MaxUploadSizeRequest) ProtoMessage ¶
func (*MaxUploadSizeRequest) ProtoMessage()
func (*MaxUploadSizeRequest) ProtoReflect ¶
func (x *MaxUploadSizeRequest) ProtoReflect() protoreflect.Message
func (*MaxUploadSizeRequest) Reset ¶
func (x *MaxUploadSizeRequest) Reset()
func (*MaxUploadSizeRequest) String ¶
func (x *MaxUploadSizeRequest) String() string
func (*MaxUploadSizeRequest) Validate ¶
func (m *MaxUploadSizeRequest) Validate() error
Validate checks the field values on MaxUploadSizeRequest 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 (*MaxUploadSizeRequest) ValidateAll ¶
func (m *MaxUploadSizeRequest) ValidateAll() error
ValidateAll checks the field values on MaxUploadSizeRequest 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 MaxUploadSizeRequestMultiError, or nil if none found.
type MaxUploadSizeRequestMultiError ¶
type MaxUploadSizeRequestMultiError []error
MaxUploadSizeRequestMultiError is an error wrapping multiple validation errors returned by MaxUploadSizeRequest.ValidateAll() if the designated constraints aren't met.
func (MaxUploadSizeRequestMultiError) AllErrors ¶
func (m MaxUploadSizeRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MaxUploadSizeRequestMultiError) Error ¶
func (m MaxUploadSizeRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MaxUploadSizeRequestValidationError ¶
type MaxUploadSizeRequestValidationError struct {
// contains filtered or unexported fields
}
MaxUploadSizeRequestValidationError is the validation error returned by MaxUploadSizeRequest.Validate if the designated constraints aren't met.
func (MaxUploadSizeRequestValidationError) Cause ¶
func (e MaxUploadSizeRequestValidationError) Cause() error
Cause function returns cause value.
func (MaxUploadSizeRequestValidationError) Error ¶
func (e MaxUploadSizeRequestValidationError) Error() string
Error satisfies the builtin error interface
func (MaxUploadSizeRequestValidationError) ErrorName ¶
func (e MaxUploadSizeRequestValidationError) ErrorName() string
ErrorName returns error name.
func (MaxUploadSizeRequestValidationError) Field ¶
func (e MaxUploadSizeRequestValidationError) Field() string
Field function returns field value.
func (MaxUploadSizeRequestValidationError) Key ¶
func (e MaxUploadSizeRequestValidationError) Key() bool
Key function returns key value.
func (MaxUploadSizeRequestValidationError) Reason ¶
func (e MaxUploadSizeRequestValidationError) Reason() string
Reason function returns reason value.
type MaxUploadSizeResponse ¶
type MaxUploadSizeResponse struct { HumanizeSize string `protobuf:"bytes,1,opt,name=humanize_size,json=humanizeSize,proto3" json:"humanize_size,omitempty"` Bytes uint32 `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"` // contains filtered or unexported fields }
func (*MaxUploadSizeResponse) Descriptor
deprecated
func (*MaxUploadSizeResponse) Descriptor() ([]byte, []int)
Deprecated: Use MaxUploadSizeResponse.ProtoReflect.Descriptor instead.
func (*MaxUploadSizeResponse) GetBytes ¶
func (x *MaxUploadSizeResponse) GetBytes() uint32
func (*MaxUploadSizeResponse) GetHumanizeSize ¶
func (x *MaxUploadSizeResponse) GetHumanizeSize() string
func (*MaxUploadSizeResponse) ProtoMessage ¶
func (*MaxUploadSizeResponse) ProtoMessage()
func (*MaxUploadSizeResponse) ProtoReflect ¶
func (x *MaxUploadSizeResponse) ProtoReflect() protoreflect.Message
func (*MaxUploadSizeResponse) Reset ¶
func (x *MaxUploadSizeResponse) Reset()
func (*MaxUploadSizeResponse) String ¶
func (x *MaxUploadSizeResponse) String() string
func (*MaxUploadSizeResponse) Validate ¶
func (m *MaxUploadSizeResponse) Validate() error
Validate checks the field values on MaxUploadSizeResponse 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 (*MaxUploadSizeResponse) ValidateAll ¶
func (m *MaxUploadSizeResponse) ValidateAll() error
ValidateAll checks the field values on MaxUploadSizeResponse 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 MaxUploadSizeResponseMultiError, or nil if none found.
type MaxUploadSizeResponseMultiError ¶
type MaxUploadSizeResponseMultiError []error
MaxUploadSizeResponseMultiError is an error wrapping multiple validation errors returned by MaxUploadSizeResponse.ValidateAll() if the designated constraints aren't met.
func (MaxUploadSizeResponseMultiError) AllErrors ¶
func (m MaxUploadSizeResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MaxUploadSizeResponseMultiError) Error ¶
func (m MaxUploadSizeResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MaxUploadSizeResponseValidationError ¶
type MaxUploadSizeResponseValidationError struct {
// contains filtered or unexported fields
}
MaxUploadSizeResponseValidationError is the validation error returned by MaxUploadSizeResponse.Validate if the designated constraints aren't met.
func (MaxUploadSizeResponseValidationError) Cause ¶
func (e MaxUploadSizeResponseValidationError) Cause() error
Cause function returns cause value.
func (MaxUploadSizeResponseValidationError) Error ¶
func (e MaxUploadSizeResponseValidationError) Error() string
Error satisfies the builtin error interface
func (MaxUploadSizeResponseValidationError) ErrorName ¶
func (e MaxUploadSizeResponseValidationError) ErrorName() string
ErrorName returns error name.
func (MaxUploadSizeResponseValidationError) Field ¶
func (e MaxUploadSizeResponseValidationError) Field() string
Field function returns field value.
func (MaxUploadSizeResponseValidationError) Key ¶
func (e MaxUploadSizeResponseValidationError) Key() bool
Key function returns key value.
func (MaxUploadSizeResponseValidationError) Reason ¶
func (e MaxUploadSizeResponseValidationError) Reason() string
Reason function returns reason value.
type ShowRecordsRequest ¶
type ShowRecordsRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ShowRecordsRequest) Descriptor
deprecated
func (*ShowRecordsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShowRecordsRequest.ProtoReflect.Descriptor instead.
func (*ShowRecordsRequest) GetId ¶
func (x *ShowRecordsRequest) GetId() int32
func (*ShowRecordsRequest) ProtoMessage ¶
func (*ShowRecordsRequest) ProtoMessage()
func (*ShowRecordsRequest) ProtoReflect ¶
func (x *ShowRecordsRequest) ProtoReflect() protoreflect.Message
func (*ShowRecordsRequest) Reset ¶
func (x *ShowRecordsRequest) Reset()
func (*ShowRecordsRequest) String ¶
func (x *ShowRecordsRequest) String() string
func (*ShowRecordsRequest) Validate ¶
func (m *ShowRecordsRequest) Validate() error
Validate checks the field values on ShowRecordsRequest 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 (*ShowRecordsRequest) ValidateAll ¶
func (m *ShowRecordsRequest) ValidateAll() error
ValidateAll checks the field values on ShowRecordsRequest 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 ShowRecordsRequestMultiError, or nil if none found.
type ShowRecordsRequestMultiError ¶
type ShowRecordsRequestMultiError []error
ShowRecordsRequestMultiError is an error wrapping multiple validation errors returned by ShowRecordsRequest.ValidateAll() if the designated constraints aren't met.
func (ShowRecordsRequestMultiError) AllErrors ¶
func (m ShowRecordsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ShowRecordsRequestMultiError) Error ¶
func (m ShowRecordsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ShowRecordsRequestValidationError ¶
type ShowRecordsRequestValidationError struct {
// contains filtered or unexported fields
}
ShowRecordsRequestValidationError is the validation error returned by ShowRecordsRequest.Validate if the designated constraints aren't met.
func (ShowRecordsRequestValidationError) Cause ¶
func (e ShowRecordsRequestValidationError) Cause() error
Cause function returns cause value.
func (ShowRecordsRequestValidationError) Error ¶
func (e ShowRecordsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ShowRecordsRequestValidationError) ErrorName ¶
func (e ShowRecordsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ShowRecordsRequestValidationError) Field ¶
func (e ShowRecordsRequestValidationError) Field() string
Field function returns field value.
func (ShowRecordsRequestValidationError) Key ¶
func (e ShowRecordsRequestValidationError) Key() bool
Key function returns key value.
func (ShowRecordsRequestValidationError) Reason ¶
func (e ShowRecordsRequestValidationError) Reason() string
Reason function returns reason value.
type ShowRecordsResponse ¶
type ShowRecordsResponse struct { Items []string `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*ShowRecordsResponse) Descriptor
deprecated
func (*ShowRecordsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ShowRecordsResponse.ProtoReflect.Descriptor instead.
func (*ShowRecordsResponse) GetItems ¶
func (x *ShowRecordsResponse) GetItems() []string
func (*ShowRecordsResponse) ProtoMessage ¶
func (*ShowRecordsResponse) ProtoMessage()
func (*ShowRecordsResponse) ProtoReflect ¶
func (x *ShowRecordsResponse) ProtoReflect() protoreflect.Message
func (*ShowRecordsResponse) Reset ¶
func (x *ShowRecordsResponse) Reset()
func (*ShowRecordsResponse) String ¶
func (x *ShowRecordsResponse) String() string
func (*ShowRecordsResponse) Validate ¶
func (m *ShowRecordsResponse) Validate() error
Validate checks the field values on ShowRecordsResponse 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 (*ShowRecordsResponse) ValidateAll ¶
func (m *ShowRecordsResponse) ValidateAll() error
ValidateAll checks the field values on ShowRecordsResponse 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 ShowRecordsResponseMultiError, or nil if none found.
type ShowRecordsResponseMultiError ¶
type ShowRecordsResponseMultiError []error
ShowRecordsResponseMultiError is an error wrapping multiple validation errors returned by ShowRecordsResponse.ValidateAll() if the designated constraints aren't met.
func (ShowRecordsResponseMultiError) AllErrors ¶
func (m ShowRecordsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ShowRecordsResponseMultiError) Error ¶
func (m ShowRecordsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ShowRecordsResponseValidationError ¶
type ShowRecordsResponseValidationError struct {
// contains filtered or unexported fields
}
ShowRecordsResponseValidationError is the validation error returned by ShowRecordsResponse.Validate if the designated constraints aren't met.
func (ShowRecordsResponseValidationError) Cause ¶
func (e ShowRecordsResponseValidationError) Cause() error
Cause function returns cause value.
func (ShowRecordsResponseValidationError) Error ¶
func (e ShowRecordsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ShowRecordsResponseValidationError) ErrorName ¶
func (e ShowRecordsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ShowRecordsResponseValidationError) Field ¶
func (e ShowRecordsResponseValidationError) Field() string
Field function returns field value.
func (ShowRecordsResponseValidationError) Key ¶
func (e ShowRecordsResponseValidationError) Key() bool
Key function returns key value.
func (ShowRecordsResponseValidationError) Reason ¶
func (e ShowRecordsResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedFileServer ¶
type UnimplementedFileServer struct { }
UnimplementedFileServer must be embedded to have forward compatible implementations.
func (UnimplementedFileServer) Delete ¶
func (UnimplementedFileServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedFileServer) DiskInfo ¶
func (UnimplementedFileServer) DiskInfo(context.Context, *DiskInfoRequest) (*DiskInfoResponse, error)
func (UnimplementedFileServer) List ¶
func (UnimplementedFileServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedFileServer) MaxUploadSize ¶
func (UnimplementedFileServer) MaxUploadSize(context.Context, *MaxUploadSizeRequest) (*MaxUploadSizeResponse, error)
func (UnimplementedFileServer) ShowRecords ¶
func (UnimplementedFileServer) ShowRecords(context.Context, *ShowRecordsRequest) (*ShowRecordsResponse, error)
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.