Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterDirectoryServiceHTTPServer(s *http.Server, srv DirectoryServiceHTTPServer)
- func RegisterDirectoryServiceServer(s grpc.ServiceRegistrar, srv DirectoryServiceServer)
- type CreateDirectoryRequest
- func (*CreateDirectoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDirectoryRequest) GetPath() string
- func (*CreateDirectoryRequest) ProtoMessage()
- func (x *CreateDirectoryRequest) ProtoReflect() protoreflect.Message
- func (x *CreateDirectoryRequest) Reset()
- func (x *CreateDirectoryRequest) String() string
- func (m *CreateDirectoryRequest) Validate() error
- func (m *CreateDirectoryRequest) ValidateAll() error
- type CreateDirectoryRequestMultiError
- type CreateDirectoryRequestValidationError
- func (e CreateDirectoryRequestValidationError) Cause() error
- func (e CreateDirectoryRequestValidationError) Error() string
- func (e CreateDirectoryRequestValidationError) ErrorName() string
- func (e CreateDirectoryRequestValidationError) Field() string
- func (e CreateDirectoryRequestValidationError) Key() bool
- func (e CreateDirectoryRequestValidationError) Reason() string
- type CreateDirectoryResponse
- func (*CreateDirectoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDirectoryResponse) GetDirectory() *DirectoryView
- func (*CreateDirectoryResponse) ProtoMessage()
- func (x *CreateDirectoryResponse) ProtoReflect() protoreflect.Message
- func (x *CreateDirectoryResponse) Reset()
- func (x *CreateDirectoryResponse) String() string
- func (m *CreateDirectoryResponse) Validate() error
- func (m *CreateDirectoryResponse) ValidateAll() error
- type CreateDirectoryResponseMultiError
- type CreateDirectoryResponseValidationError
- func (e CreateDirectoryResponseValidationError) Cause() error
- func (e CreateDirectoryResponseValidationError) Error() string
- func (e CreateDirectoryResponseValidationError) ErrorName() string
- func (e CreateDirectoryResponseValidationError) Field() string
- func (e CreateDirectoryResponseValidationError) Key() bool
- func (e CreateDirectoryResponseValidationError) Reason() string
- type DeleteDirectoryRequest
- func (*DeleteDirectoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDirectoryRequest) GetId() uint32
- func (*DeleteDirectoryRequest) ProtoMessage()
- func (x *DeleteDirectoryRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteDirectoryRequest) Reset()
- func (x *DeleteDirectoryRequest) String() string
- func (m *DeleteDirectoryRequest) Validate() error
- func (m *DeleteDirectoryRequest) ValidateAll() error
- type DeleteDirectoryRequestMultiError
- type DeleteDirectoryRequestValidationError
- func (e DeleteDirectoryRequestValidationError) Cause() error
- func (e DeleteDirectoryRequestValidationError) Error() string
- func (e DeleteDirectoryRequestValidationError) ErrorName() string
- func (e DeleteDirectoryRequestValidationError) Field() string
- func (e DeleteDirectoryRequestValidationError) Key() bool
- func (e DeleteDirectoryRequestValidationError) Reason() string
- type DeleteDirectoryResponse
- func (*DeleteDirectoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDirectoryResponse) GetId() uint32
- func (*DeleteDirectoryResponse) ProtoMessage()
- func (x *DeleteDirectoryResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteDirectoryResponse) Reset()
- func (x *DeleteDirectoryResponse) String() string
- func (m *DeleteDirectoryResponse) Validate() error
- func (m *DeleteDirectoryResponse) ValidateAll() error
- type DeleteDirectoryResponseMultiError
- type DeleteDirectoryResponseValidationError
- func (e DeleteDirectoryResponseValidationError) Cause() error
- func (e DeleteDirectoryResponseValidationError) Error() string
- func (e DeleteDirectoryResponseValidationError) ErrorName() string
- func (e DeleteDirectoryResponseValidationError) Field() string
- func (e DeleteDirectoryResponseValidationError) Key() bool
- func (e DeleteDirectoryResponseValidationError) Reason() string
- type DirectoryServiceClient
- type DirectoryServiceHTTPClient
- type DirectoryServiceHTTPClientImpl
- func (c *DirectoryServiceHTTPClientImpl) CreateDirectory(ctx context.Context, in *CreateDirectoryRequest, opts ...http.CallOption) (*CreateDirectoryResponse, error)
- func (c *DirectoryServiceHTTPClientImpl) DeleteDirectory(ctx context.Context, in *DeleteDirectoryRequest, opts ...http.CallOption) (*DeleteDirectoryResponse, error)
- func (c *DirectoryServiceHTTPClientImpl) GetDirectory(ctx context.Context, in *GetDirectoryRequest, opts ...http.CallOption) (*GetDirectoryResponse, error)
- func (c *DirectoryServiceHTTPClientImpl) ListDirectory(ctx context.Context, in *ListDirectoryRequest, opts ...http.CallOption) (*ListDirectoryResponse, error)
- func (c *DirectoryServiceHTTPClientImpl) UpdateDirectory(ctx context.Context, in *UpdateDirectoryRequest, opts ...http.CallOption) (*UpdateDirectoryResponse, error)
- type DirectoryServiceHTTPServer
- type DirectoryServiceServer
- type DirectoryView
- func (*DirectoryView) Descriptor() ([]byte, []int)deprecated
- func (x *DirectoryView) GetAccept() string
- func (x *DirectoryView) GetApp() string
- func (x *DirectoryView) GetCreatedAt() uint32
- func (x *DirectoryView) GetId() uint32
- func (x *DirectoryView) GetMaxSize() uint32
- func (x *DirectoryView) GetName() string
- func (x *DirectoryView) GetPath() string
- func (x *DirectoryView) GetUpdatedAt() uint32
- func (x *DirectoryView) GetUpdatedBy() uint32
- func (*DirectoryView) ProtoMessage()
- func (x *DirectoryView) ProtoReflect() protoreflect.Message
- func (x *DirectoryView) Reset()
- func (x *DirectoryView) String() string
- func (m *DirectoryView) Validate() error
- func (m *DirectoryView) ValidateAll() error
- type DirectoryViewMultiError
- type DirectoryViewValidationError
- func (e DirectoryViewValidationError) Cause() error
- func (e DirectoryViewValidationError) Error() string
- func (e DirectoryViewValidationError) ErrorName() string
- func (e DirectoryViewValidationError) Field() string
- func (e DirectoryViewValidationError) Key() bool
- func (e DirectoryViewValidationError) Reason() string
- type GetDirectoryRequest
- func (*GetDirectoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDirectoryRequest) GetId() uint32
- func (*GetDirectoryRequest) ProtoMessage()
- func (x *GetDirectoryRequest) ProtoReflect() protoreflect.Message
- func (x *GetDirectoryRequest) Reset()
- func (x *GetDirectoryRequest) String() string
- func (m *GetDirectoryRequest) Validate() error
- func (m *GetDirectoryRequest) ValidateAll() error
- type GetDirectoryRequestMultiError
- type GetDirectoryRequestValidationError
- func (e GetDirectoryRequestValidationError) Cause() error
- func (e GetDirectoryRequestValidationError) Error() string
- func (e GetDirectoryRequestValidationError) ErrorName() string
- func (e GetDirectoryRequestValidationError) Field() string
- func (e GetDirectoryRequestValidationError) Key() bool
- func (e GetDirectoryRequestValidationError) Reason() string
- type GetDirectoryResponse
- func (*GetDirectoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDirectoryResponse) GetDirectory() *DirectoryView
- func (*GetDirectoryResponse) ProtoMessage()
- func (x *GetDirectoryResponse) ProtoReflect() protoreflect.Message
- func (x *GetDirectoryResponse) Reset()
- func (x *GetDirectoryResponse) String() string
- func (m *GetDirectoryResponse) Validate() error
- func (m *GetDirectoryResponse) ValidateAll() error
- type GetDirectoryResponseMultiError
- type GetDirectoryResponseValidationError
- func (e GetDirectoryResponseValidationError) Cause() error
- func (e GetDirectoryResponseValidationError) Error() string
- func (e GetDirectoryResponseValidationError) ErrorName() string
- func (e GetDirectoryResponseValidationError) Field() string
- func (e GetDirectoryResponseValidationError) Key() bool
- func (e GetDirectoryResponseValidationError) Reason() string
- type ListDirectoryRequest
- func (*ListDirectoryRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListDirectoryRequest) ProtoMessage()
- func (x *ListDirectoryRequest) ProtoReflect() protoreflect.Message
- func (x *ListDirectoryRequest) Reset()
- func (x *ListDirectoryRequest) String() string
- func (m *ListDirectoryRequest) Validate() error
- func (m *ListDirectoryRequest) ValidateAll() error
- type ListDirectoryRequestMultiError
- type ListDirectoryRequestValidationError
- func (e ListDirectoryRequestValidationError) Cause() error
- func (e ListDirectoryRequestValidationError) Error() string
- func (e ListDirectoryRequestValidationError) ErrorName() string
- func (e ListDirectoryRequestValidationError) Field() string
- func (e ListDirectoryRequestValidationError) Key() bool
- func (e ListDirectoryRequestValidationError) Reason() string
- type ListDirectoryResponse
- func (*ListDirectoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListDirectoryResponse) GetList() []*DirectoryView
- func (*ListDirectoryResponse) ProtoMessage()
- func (x *ListDirectoryResponse) ProtoReflect() protoreflect.Message
- func (x *ListDirectoryResponse) Reset()
- func (x *ListDirectoryResponse) String() string
- func (m *ListDirectoryResponse) Validate() error
- func (m *ListDirectoryResponse) ValidateAll() error
- type ListDirectoryResponseMultiError
- type ListDirectoryResponseValidationError
- func (e ListDirectoryResponseValidationError) Cause() error
- func (e ListDirectoryResponseValidationError) Error() string
- func (e ListDirectoryResponseValidationError) ErrorName() string
- func (e ListDirectoryResponseValidationError) Field() string
- func (e ListDirectoryResponseValidationError) Key() bool
- func (e ListDirectoryResponseValidationError) Reason() string
- type UnimplementedDirectoryServiceServer
- func (UnimplementedDirectoryServiceServer) CreateDirectory(context.Context, *CreateDirectoryRequest) (*CreateDirectoryResponse, error)
- func (UnimplementedDirectoryServiceServer) DeleteDirectory(context.Context, *DeleteDirectoryRequest) (*DeleteDirectoryResponse, error)
- func (UnimplementedDirectoryServiceServer) GetDirectory(context.Context, *GetDirectoryRequest) (*GetDirectoryResponse, error)
- func (UnimplementedDirectoryServiceServer) ListDirectory(context.Context, *ListDirectoryRequest) (*ListDirectoryResponse, error)
- func (UnimplementedDirectoryServiceServer) UpdateDirectory(context.Context, *UpdateDirectoryRequest) (*UpdateDirectoryResponse, error)
- type UnsafeDirectoryServiceServer
- type UpdateDirectoryRequest
- func (*UpdateDirectoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDirectoryRequest) GetAccept() string
- func (x *UpdateDirectoryRequest) GetId() uint32
- func (x *UpdateDirectoryRequest) GetMaxSize() uint32
- func (x *UpdateDirectoryRequest) GetPath() string
- func (*UpdateDirectoryRequest) ProtoMessage()
- func (x *UpdateDirectoryRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateDirectoryRequest) Reset()
- func (x *UpdateDirectoryRequest) String() string
- func (m *UpdateDirectoryRequest) Validate() error
- func (m *UpdateDirectoryRequest) ValidateAll() error
- type UpdateDirectoryRequestMultiError
- type UpdateDirectoryRequestValidationError
- func (e UpdateDirectoryRequestValidationError) Cause() error
- func (e UpdateDirectoryRequestValidationError) Error() string
- func (e UpdateDirectoryRequestValidationError) ErrorName() string
- func (e UpdateDirectoryRequestValidationError) Field() string
- func (e UpdateDirectoryRequestValidationError) Key() bool
- func (e UpdateDirectoryRequestValidationError) Reason() string
- type UpdateDirectoryResponse
- func (*UpdateDirectoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDirectoryResponse) GetId() uint32
- func (*UpdateDirectoryResponse) ProtoMessage()
- func (x *UpdateDirectoryResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateDirectoryResponse) Reset()
- func (x *UpdateDirectoryResponse) String() string
- func (m *UpdateDirectoryResponse) Validate() error
- func (m *UpdateDirectoryResponse) ValidateAll() error
- type UpdateDirectoryResponseMultiError
- type UpdateDirectoryResponseValidationError
- func (e UpdateDirectoryResponseValidationError) Cause() error
- func (e UpdateDirectoryResponseValidationError) Error() string
- func (e UpdateDirectoryResponseValidationError) ErrorName() string
- func (e UpdateDirectoryResponseValidationError) Field() string
- func (e UpdateDirectoryResponseValidationError) Key() bool
- func (e UpdateDirectoryResponseValidationError) Reason() string
Constants ¶
const ( DirectoryService_ListDirectory_FullMethodName = "/resource.api.directory.DirectoryService/ListDirectory" DirectoryService_GetDirectory_FullMethodName = "/resource.api.directory.DirectoryService/GetDirectory" DirectoryService_CreateDirectory_FullMethodName = "/resource.api.directory.DirectoryService/CreateDirectory" DirectoryService_UpdateDirectory_FullMethodName = "/resource.api.directory.DirectoryService/UpdateDirectory" DirectoryService_DeleteDirectory_FullMethodName = "/resource.api.directory.DirectoryService/DeleteDirectory" )
const OperationDirectoryServiceCreateDirectory = "/resource.api.directory.DirectoryService/CreateDirectory"
const OperationDirectoryServiceDeleteDirectory = "/resource.api.directory.DirectoryService/DeleteDirectory"
const OperationDirectoryServiceGetDirectory = "/resource.api.directory.DirectoryService/GetDirectory"
const OperationDirectoryServiceListDirectory = "/resource.api.directory.DirectoryService/ListDirectory"
const OperationDirectoryServiceUpdateDirectory = "/resource.api.directory.DirectoryService/UpdateDirectory"
Variables ¶
var DirectoryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "resource.api.directory.DirectoryService", HandlerType: (*DirectoryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListDirectory", Handler: _DirectoryService_ListDirectory_Handler, }, { MethodName: "GetDirectory", Handler: _DirectoryService_GetDirectory_Handler, }, { MethodName: "CreateDirectory", Handler: _DirectoryService_CreateDirectory_Handler, }, { MethodName: "UpdateDirectory", Handler: _DirectoryService_UpdateDirectory_Handler, }, { MethodName: "DeleteDirectory", Handler: _DirectoryService_DeleteDirectory_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/directory/proto/directory_service.proto", }
DirectoryService_ServiceDesc is the grpc.ServiceDesc for DirectoryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_directory_proto_directory_proto protoreflect.FileDescriptor
var File_api_directory_proto_directory_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDirectoryServiceHTTPServer ¶
func RegisterDirectoryServiceHTTPServer(s *http.Server, srv DirectoryServiceHTTPServer)
func RegisterDirectoryServiceServer ¶
func RegisterDirectoryServiceServer(s grpc.ServiceRegistrar, srv DirectoryServiceServer)
Types ¶
type CreateDirectoryRequest ¶
type CreateDirectoryRequest struct {
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
// contains filtered or unexported fields
}
---- CreateDirectory ----
func (*CreateDirectoryRequest) Descriptor
deprecated
func (*CreateDirectoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateDirectoryRequest.ProtoReflect.Descriptor instead.
func (*CreateDirectoryRequest) GetPath ¶
func (x *CreateDirectoryRequest) GetPath() string
func (*CreateDirectoryRequest) ProtoMessage ¶
func (*CreateDirectoryRequest) ProtoMessage()
func (*CreateDirectoryRequest) ProtoReflect ¶
func (x *CreateDirectoryRequest) ProtoReflect() protoreflect.Message
func (*CreateDirectoryRequest) Reset ¶
func (x *CreateDirectoryRequest) Reset()
func (*CreateDirectoryRequest) String ¶
func (x *CreateDirectoryRequest) String() string
func (*CreateDirectoryRequest) Validate ¶
func (m *CreateDirectoryRequest) Validate() error
Validate checks the field values on CreateDirectoryRequest 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 (*CreateDirectoryRequest) ValidateAll ¶
func (m *CreateDirectoryRequest) ValidateAll() error
ValidateAll checks the field values on CreateDirectoryRequest 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 CreateDirectoryRequestMultiError, or nil if none found.
type CreateDirectoryRequestMultiError ¶
type CreateDirectoryRequestMultiError []error
CreateDirectoryRequestMultiError is an error wrapping multiple validation errors returned by CreateDirectoryRequest.ValidateAll() if the designated constraints aren't met.
func (CreateDirectoryRequestMultiError) AllErrors ¶
func (m CreateDirectoryRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateDirectoryRequestMultiError) Error ¶
func (m CreateDirectoryRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateDirectoryRequestValidationError ¶
type CreateDirectoryRequestValidationError struct {
// contains filtered or unexported fields
}
CreateDirectoryRequestValidationError is the validation error returned by CreateDirectoryRequest.Validate if the designated constraints aren't met.
func (CreateDirectoryRequestValidationError) Cause ¶
func (e CreateDirectoryRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateDirectoryRequestValidationError) Error ¶
func (e CreateDirectoryRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateDirectoryRequestValidationError) ErrorName ¶
func (e CreateDirectoryRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateDirectoryRequestValidationError) Field ¶
func (e CreateDirectoryRequestValidationError) Field() string
Field function returns field value.
func (CreateDirectoryRequestValidationError) Key ¶
func (e CreateDirectoryRequestValidationError) Key() bool
Key function returns key value.
func (CreateDirectoryRequestValidationError) Reason ¶
func (e CreateDirectoryRequestValidationError) Reason() string
Reason function returns reason value.
type CreateDirectoryResponse ¶
type CreateDirectoryResponse struct {
Directory *DirectoryView `protobuf:"bytes,1,opt,name=directory,proto3" json:"directory,omitempty"`
// contains filtered or unexported fields
}
func (*CreateDirectoryResponse) Descriptor
deprecated
func (*CreateDirectoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateDirectoryResponse.ProtoReflect.Descriptor instead.
func (*CreateDirectoryResponse) GetDirectory ¶
func (x *CreateDirectoryResponse) GetDirectory() *DirectoryView
func (*CreateDirectoryResponse) ProtoMessage ¶
func (*CreateDirectoryResponse) ProtoMessage()
func (*CreateDirectoryResponse) ProtoReflect ¶
func (x *CreateDirectoryResponse) ProtoReflect() protoreflect.Message
func (*CreateDirectoryResponse) Reset ¶
func (x *CreateDirectoryResponse) Reset()
func (*CreateDirectoryResponse) String ¶
func (x *CreateDirectoryResponse) String() string
func (*CreateDirectoryResponse) Validate ¶
func (m *CreateDirectoryResponse) Validate() error
Validate checks the field values on CreateDirectoryResponse 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 (*CreateDirectoryResponse) ValidateAll ¶
func (m *CreateDirectoryResponse) ValidateAll() error
ValidateAll checks the field values on CreateDirectoryResponse 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 CreateDirectoryResponseMultiError, or nil if none found.
type CreateDirectoryResponseMultiError ¶
type CreateDirectoryResponseMultiError []error
CreateDirectoryResponseMultiError is an error wrapping multiple validation errors returned by CreateDirectoryResponse.ValidateAll() if the designated constraints aren't met.
func (CreateDirectoryResponseMultiError) AllErrors ¶
func (m CreateDirectoryResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateDirectoryResponseMultiError) Error ¶
func (m CreateDirectoryResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateDirectoryResponseValidationError ¶
type CreateDirectoryResponseValidationError struct {
// contains filtered or unexported fields
}
CreateDirectoryResponseValidationError is the validation error returned by CreateDirectoryResponse.Validate if the designated constraints aren't met.
func (CreateDirectoryResponseValidationError) Cause ¶
func (e CreateDirectoryResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateDirectoryResponseValidationError) Error ¶
func (e CreateDirectoryResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateDirectoryResponseValidationError) ErrorName ¶
func (e CreateDirectoryResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateDirectoryResponseValidationError) Field ¶
func (e CreateDirectoryResponseValidationError) Field() string
Field function returns field value.
func (CreateDirectoryResponseValidationError) Key ¶
func (e CreateDirectoryResponseValidationError) Key() bool
Key function returns key value.
func (CreateDirectoryResponseValidationError) Reason ¶
func (e CreateDirectoryResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteDirectoryRequest ¶
type DeleteDirectoryRequest struct {
Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
---- DeleteDirectory ----
func (*DeleteDirectoryRequest) Descriptor
deprecated
func (*DeleteDirectoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDirectoryRequest.ProtoReflect.Descriptor instead.
func (*DeleteDirectoryRequest) GetId ¶
func (x *DeleteDirectoryRequest) GetId() uint32
func (*DeleteDirectoryRequest) ProtoMessage ¶
func (*DeleteDirectoryRequest) ProtoMessage()
func (*DeleteDirectoryRequest) ProtoReflect ¶
func (x *DeleteDirectoryRequest) ProtoReflect() protoreflect.Message
func (*DeleteDirectoryRequest) Reset ¶
func (x *DeleteDirectoryRequest) Reset()
func (*DeleteDirectoryRequest) String ¶
func (x *DeleteDirectoryRequest) String() string
func (*DeleteDirectoryRequest) Validate ¶
func (m *DeleteDirectoryRequest) Validate() error
Validate checks the field values on DeleteDirectoryRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteDirectoryRequest) ValidateAll ¶
func (m *DeleteDirectoryRequest) ValidateAll() error
ValidateAll checks the field values on DeleteDirectoryRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteDirectoryRequestMultiError, or nil if none found.
type DeleteDirectoryRequestMultiError ¶
type DeleteDirectoryRequestMultiError []error
DeleteDirectoryRequestMultiError is an error wrapping multiple validation errors returned by DeleteDirectoryRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteDirectoryRequestMultiError) AllErrors ¶
func (m DeleteDirectoryRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteDirectoryRequestMultiError) Error ¶
func (m DeleteDirectoryRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteDirectoryRequestValidationError ¶
type DeleteDirectoryRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteDirectoryRequestValidationError is the validation error returned by DeleteDirectoryRequest.Validate if the designated constraints aren't met.
func (DeleteDirectoryRequestValidationError) Cause ¶
func (e DeleteDirectoryRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteDirectoryRequestValidationError) Error ¶
func (e DeleteDirectoryRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteDirectoryRequestValidationError) ErrorName ¶
func (e DeleteDirectoryRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteDirectoryRequestValidationError) Field ¶
func (e DeleteDirectoryRequestValidationError) Field() string
Field function returns field value.
func (DeleteDirectoryRequestValidationError) Key ¶
func (e DeleteDirectoryRequestValidationError) Key() bool
Key function returns key value.
func (DeleteDirectoryRequestValidationError) Reason ¶
func (e DeleteDirectoryRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteDirectoryResponse ¶
type DeleteDirectoryResponse struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteDirectoryResponse) Descriptor
deprecated
func (*DeleteDirectoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDirectoryResponse.ProtoReflect.Descriptor instead.
func (*DeleteDirectoryResponse) GetId ¶
func (x *DeleteDirectoryResponse) GetId() uint32
func (*DeleteDirectoryResponse) ProtoMessage ¶
func (*DeleteDirectoryResponse) ProtoMessage()
func (*DeleteDirectoryResponse) ProtoReflect ¶
func (x *DeleteDirectoryResponse) ProtoReflect() protoreflect.Message
func (*DeleteDirectoryResponse) Reset ¶
func (x *DeleteDirectoryResponse) Reset()
func (*DeleteDirectoryResponse) String ¶
func (x *DeleteDirectoryResponse) String() string
func (*DeleteDirectoryResponse) Validate ¶
func (m *DeleteDirectoryResponse) Validate() error
Validate checks the field values on DeleteDirectoryResponse 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 (*DeleteDirectoryResponse) ValidateAll ¶
func (m *DeleteDirectoryResponse) ValidateAll() error
ValidateAll checks the field values on DeleteDirectoryResponse 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 DeleteDirectoryResponseMultiError, or nil if none found.
type DeleteDirectoryResponseMultiError ¶
type DeleteDirectoryResponseMultiError []error
DeleteDirectoryResponseMultiError is an error wrapping multiple validation errors returned by DeleteDirectoryResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteDirectoryResponseMultiError) AllErrors ¶
func (m DeleteDirectoryResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteDirectoryResponseMultiError) Error ¶
func (m DeleteDirectoryResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteDirectoryResponseValidationError ¶
type DeleteDirectoryResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteDirectoryResponseValidationError is the validation error returned by DeleteDirectoryResponse.Validate if the designated constraints aren't met.
func (DeleteDirectoryResponseValidationError) Cause ¶
func (e DeleteDirectoryResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteDirectoryResponseValidationError) Error ¶
func (e DeleteDirectoryResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteDirectoryResponseValidationError) ErrorName ¶
func (e DeleteDirectoryResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteDirectoryResponseValidationError) Field ¶
func (e DeleteDirectoryResponseValidationError) Field() string
Field function returns field value.
func (DeleteDirectoryResponseValidationError) Key ¶
func (e DeleteDirectoryResponseValidationError) Key() bool
Key function returns key value.
func (DeleteDirectoryResponseValidationError) Reason ¶
func (e DeleteDirectoryResponseValidationError) Reason() string
Reason function returns reason value.
type DirectoryServiceClient ¶
type DirectoryServiceClient interface {
// ListDirectory 全量取回某 app 的目录(按 path 升序,内存建树)
ListDirectory(ctx context.Context, in *ListDirectoryRequest, opts ...grpc.CallOption) (*ListDirectoryResponse, error)
// GetDirectory 按主键查询目录
GetDirectory(ctx context.Context, in *GetDirectoryRequest, opts ...grpc.CallOption) (*GetDirectoryResponse, error)
// CreateDirectory 按完整路径创建目录
CreateDirectory(ctx context.Context, in *CreateDirectoryRequest, opts ...grpc.CallOption) (*CreateDirectoryResponse, error)
// UpdateDirectory 改名 / 移动 / 改策略
UpdateDirectory(ctx context.Context, in *UpdateDirectoryRequest, opts ...grpc.CallOption) (*UpdateDirectoryResponse, error)
// DeleteDirectory 删目录(连带回收子树对象)
DeleteDirectory(ctx context.Context, in *DeleteDirectoryRequest, opts ...grpc.CallOption) (*DeleteDirectoryResponse, error)
}
DirectoryServiceClient is the client API for DirectoryService 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.
约定:不使用 {path} 路径参数,所有入参均经 Request 的 query / body 绑定。
func NewDirectoryServiceClient ¶
func NewDirectoryServiceClient(cc grpc.ClientConnInterface) DirectoryServiceClient
type DirectoryServiceHTTPClient ¶
type DirectoryServiceHTTPClient interface {
CreateDirectory(ctx context.Context, req *CreateDirectoryRequest, opts ...http.CallOption) (rsp *CreateDirectoryResponse, err error)
DeleteDirectory(ctx context.Context, req *DeleteDirectoryRequest, opts ...http.CallOption) (rsp *DeleteDirectoryResponse, err error)
GetDirectory(ctx context.Context, req *GetDirectoryRequest, opts ...http.CallOption) (rsp *GetDirectoryResponse, err error)
ListDirectory(ctx context.Context, req *ListDirectoryRequest, opts ...http.CallOption) (rsp *ListDirectoryResponse, err error)
UpdateDirectory(ctx context.Context, req *UpdateDirectoryRequest, opts ...http.CallOption) (rsp *UpdateDirectoryResponse, err error)
}
func NewDirectoryServiceHTTPClient ¶
func NewDirectoryServiceHTTPClient(client *http.Client) DirectoryServiceHTTPClient
type DirectoryServiceHTTPClientImpl ¶
type DirectoryServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*DirectoryServiceHTTPClientImpl) CreateDirectory ¶
func (c *DirectoryServiceHTTPClientImpl) CreateDirectory(ctx context.Context, in *CreateDirectoryRequest, opts ...http.CallOption) (*CreateDirectoryResponse, error)
func (*DirectoryServiceHTTPClientImpl) DeleteDirectory ¶
func (c *DirectoryServiceHTTPClientImpl) DeleteDirectory(ctx context.Context, in *DeleteDirectoryRequest, opts ...http.CallOption) (*DeleteDirectoryResponse, error)
func (*DirectoryServiceHTTPClientImpl) GetDirectory ¶
func (c *DirectoryServiceHTTPClientImpl) GetDirectory(ctx context.Context, in *GetDirectoryRequest, opts ...http.CallOption) (*GetDirectoryResponse, error)
func (*DirectoryServiceHTTPClientImpl) ListDirectory ¶
func (c *DirectoryServiceHTTPClientImpl) ListDirectory(ctx context.Context, in *ListDirectoryRequest, opts ...http.CallOption) (*ListDirectoryResponse, error)
func (*DirectoryServiceHTTPClientImpl) UpdateDirectory ¶
func (c *DirectoryServiceHTTPClientImpl) UpdateDirectory(ctx context.Context, in *UpdateDirectoryRequest, opts ...http.CallOption) (*UpdateDirectoryResponse, error)
type DirectoryServiceHTTPServer ¶
type DirectoryServiceHTTPServer interface {
// CreateDirectory CreateDirectory 按完整路径创建目录
CreateDirectory(context.Context, *CreateDirectoryRequest) (*CreateDirectoryResponse, error)
// DeleteDirectory DeleteDirectory 删目录(连带回收子树对象)
DeleteDirectory(context.Context, *DeleteDirectoryRequest) (*DeleteDirectoryResponse, error)
// GetDirectory GetDirectory 按主键查询目录
GetDirectory(context.Context, *GetDirectoryRequest) (*GetDirectoryResponse, error)
// ListDirectory ListDirectory 全量取回某 app 的目录(按 path 升序,内存建树)
ListDirectory(context.Context, *ListDirectoryRequest) (*ListDirectoryResponse, error)
// UpdateDirectory UpdateDirectory 改名 / 移动 / 改策略
UpdateDirectory(context.Context, *UpdateDirectoryRequest) (*UpdateDirectoryResponse, error)
}
type DirectoryServiceServer ¶
type DirectoryServiceServer interface {
// ListDirectory 全量取回某 app 的目录(按 path 升序,内存建树)
ListDirectory(context.Context, *ListDirectoryRequest) (*ListDirectoryResponse, error)
// GetDirectory 按主键查询目录
GetDirectory(context.Context, *GetDirectoryRequest) (*GetDirectoryResponse, error)
// CreateDirectory 按完整路径创建目录
CreateDirectory(context.Context, *CreateDirectoryRequest) (*CreateDirectoryResponse, error)
// UpdateDirectory 改名 / 移动 / 改策略
UpdateDirectory(context.Context, *UpdateDirectoryRequest) (*UpdateDirectoryResponse, error)
// DeleteDirectory 删目录(连带回收子树对象)
DeleteDirectory(context.Context, *DeleteDirectoryRequest) (*DeleteDirectoryResponse, error)
// contains filtered or unexported methods
}
DirectoryServiceServer is the server API for DirectoryService service. All implementations must embed UnimplementedDirectoryServiceServer for forward compatibility.
约定:不使用 {path} 路径参数,所有入参均经 Request 的 query / body 绑定。
type DirectoryView ¶
type DirectoryView struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
App string `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
Accept string `protobuf:"bytes,5,opt,name=accept,proto3" json:"accept,omitempty"`
MaxSize uint32 `protobuf:"varint,6,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"`
UpdatedBy uint32 `protobuf:"varint,7,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"`
CreatedAt uint32 `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt uint32 `protobuf:"varint,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
// contains filtered or unexported fields
}
DirectoryView 目录视图
func (*DirectoryView) Descriptor
deprecated
func (*DirectoryView) Descriptor() ([]byte, []int)
Deprecated: Use DirectoryView.ProtoReflect.Descriptor instead.
func (*DirectoryView) GetAccept ¶
func (x *DirectoryView) GetAccept() string
func (*DirectoryView) GetApp ¶
func (x *DirectoryView) GetApp() string
func (*DirectoryView) GetCreatedAt ¶
func (x *DirectoryView) GetCreatedAt() uint32
func (*DirectoryView) GetId ¶
func (x *DirectoryView) GetId() uint32
func (*DirectoryView) GetMaxSize ¶
func (x *DirectoryView) GetMaxSize() uint32
func (*DirectoryView) GetName ¶
func (x *DirectoryView) GetName() string
func (*DirectoryView) GetPath ¶
func (x *DirectoryView) GetPath() string
func (*DirectoryView) GetUpdatedAt ¶
func (x *DirectoryView) GetUpdatedAt() uint32
func (*DirectoryView) GetUpdatedBy ¶
func (x *DirectoryView) GetUpdatedBy() uint32
func (*DirectoryView) ProtoMessage ¶
func (*DirectoryView) ProtoMessage()
func (*DirectoryView) ProtoReflect ¶
func (x *DirectoryView) ProtoReflect() protoreflect.Message
func (*DirectoryView) Reset ¶
func (x *DirectoryView) Reset()
func (*DirectoryView) String ¶
func (x *DirectoryView) String() string
func (*DirectoryView) Validate ¶
func (m *DirectoryView) Validate() error
Validate checks the field values on DirectoryView 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 (*DirectoryView) ValidateAll ¶
func (m *DirectoryView) ValidateAll() error
ValidateAll checks the field values on DirectoryView 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 DirectoryViewMultiError, or nil if none found.
type DirectoryViewMultiError ¶
type DirectoryViewMultiError []error
DirectoryViewMultiError is an error wrapping multiple validation errors returned by DirectoryView.ValidateAll() if the designated constraints aren't met.
func (DirectoryViewMultiError) AllErrors ¶
func (m DirectoryViewMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DirectoryViewMultiError) Error ¶
func (m DirectoryViewMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DirectoryViewValidationError ¶
type DirectoryViewValidationError struct {
// contains filtered or unexported fields
}
DirectoryViewValidationError is the validation error returned by DirectoryView.Validate if the designated constraints aren't met.
func (DirectoryViewValidationError) Cause ¶
func (e DirectoryViewValidationError) Cause() error
Cause function returns cause value.
func (DirectoryViewValidationError) Error ¶
func (e DirectoryViewValidationError) Error() string
Error satisfies the builtin error interface
func (DirectoryViewValidationError) ErrorName ¶
func (e DirectoryViewValidationError) ErrorName() string
ErrorName returns error name.
func (DirectoryViewValidationError) Field ¶
func (e DirectoryViewValidationError) Field() string
Field function returns field value.
func (DirectoryViewValidationError) Key ¶
func (e DirectoryViewValidationError) Key() bool
Key function returns key value.
func (DirectoryViewValidationError) Reason ¶
func (e DirectoryViewValidationError) Reason() string
Reason function returns reason value.
type GetDirectoryRequest ¶
type GetDirectoryRequest struct {
Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
---- GetDirectory ----
func (*GetDirectoryRequest) Descriptor
deprecated
func (*GetDirectoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDirectoryRequest.ProtoReflect.Descriptor instead.
func (*GetDirectoryRequest) GetId ¶
func (x *GetDirectoryRequest) GetId() uint32
func (*GetDirectoryRequest) ProtoMessage ¶
func (*GetDirectoryRequest) ProtoMessage()
func (*GetDirectoryRequest) ProtoReflect ¶
func (x *GetDirectoryRequest) ProtoReflect() protoreflect.Message
func (*GetDirectoryRequest) Reset ¶
func (x *GetDirectoryRequest) Reset()
func (*GetDirectoryRequest) String ¶
func (x *GetDirectoryRequest) String() string
func (*GetDirectoryRequest) Validate ¶
func (m *GetDirectoryRequest) Validate() error
Validate checks the field values on GetDirectoryRequest 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 (*GetDirectoryRequest) ValidateAll ¶
func (m *GetDirectoryRequest) ValidateAll() error
ValidateAll checks the field values on GetDirectoryRequest 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 GetDirectoryRequestMultiError, or nil if none found.
type GetDirectoryRequestMultiError ¶
type GetDirectoryRequestMultiError []error
GetDirectoryRequestMultiError is an error wrapping multiple validation errors returned by GetDirectoryRequest.ValidateAll() if the designated constraints aren't met.
func (GetDirectoryRequestMultiError) AllErrors ¶
func (m GetDirectoryRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetDirectoryRequestMultiError) Error ¶
func (m GetDirectoryRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetDirectoryRequestValidationError ¶
type GetDirectoryRequestValidationError struct {
// contains filtered or unexported fields
}
GetDirectoryRequestValidationError is the validation error returned by GetDirectoryRequest.Validate if the designated constraints aren't met.
func (GetDirectoryRequestValidationError) Cause ¶
func (e GetDirectoryRequestValidationError) Cause() error
Cause function returns cause value.
func (GetDirectoryRequestValidationError) Error ¶
func (e GetDirectoryRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetDirectoryRequestValidationError) ErrorName ¶
func (e GetDirectoryRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetDirectoryRequestValidationError) Field ¶
func (e GetDirectoryRequestValidationError) Field() string
Field function returns field value.
func (GetDirectoryRequestValidationError) Key ¶
func (e GetDirectoryRequestValidationError) Key() bool
Key function returns key value.
func (GetDirectoryRequestValidationError) Reason ¶
func (e GetDirectoryRequestValidationError) Reason() string
Reason function returns reason value.
type GetDirectoryResponse ¶
type GetDirectoryResponse struct {
Directory *DirectoryView `protobuf:"bytes,1,opt,name=directory,proto3" json:"directory,omitempty"`
// contains filtered or unexported fields
}
func (*GetDirectoryResponse) Descriptor
deprecated
func (*GetDirectoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDirectoryResponse.ProtoReflect.Descriptor instead.
func (*GetDirectoryResponse) GetDirectory ¶
func (x *GetDirectoryResponse) GetDirectory() *DirectoryView
func (*GetDirectoryResponse) ProtoMessage ¶
func (*GetDirectoryResponse) ProtoMessage()
func (*GetDirectoryResponse) ProtoReflect ¶
func (x *GetDirectoryResponse) ProtoReflect() protoreflect.Message
func (*GetDirectoryResponse) Reset ¶
func (x *GetDirectoryResponse) Reset()
func (*GetDirectoryResponse) String ¶
func (x *GetDirectoryResponse) String() string
func (*GetDirectoryResponse) Validate ¶
func (m *GetDirectoryResponse) Validate() error
Validate checks the field values on GetDirectoryResponse 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 (*GetDirectoryResponse) ValidateAll ¶
func (m *GetDirectoryResponse) ValidateAll() error
ValidateAll checks the field values on GetDirectoryResponse 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 GetDirectoryResponseMultiError, or nil if none found.
type GetDirectoryResponseMultiError ¶
type GetDirectoryResponseMultiError []error
GetDirectoryResponseMultiError is an error wrapping multiple validation errors returned by GetDirectoryResponse.ValidateAll() if the designated constraints aren't met.
func (GetDirectoryResponseMultiError) AllErrors ¶
func (m GetDirectoryResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetDirectoryResponseMultiError) Error ¶
func (m GetDirectoryResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetDirectoryResponseValidationError ¶
type GetDirectoryResponseValidationError struct {
// contains filtered or unexported fields
}
GetDirectoryResponseValidationError is the validation error returned by GetDirectoryResponse.Validate if the designated constraints aren't met.
func (GetDirectoryResponseValidationError) Cause ¶
func (e GetDirectoryResponseValidationError) Cause() error
Cause function returns cause value.
func (GetDirectoryResponseValidationError) Error ¶
func (e GetDirectoryResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetDirectoryResponseValidationError) ErrorName ¶
func (e GetDirectoryResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetDirectoryResponseValidationError) Field ¶
func (e GetDirectoryResponseValidationError) Field() string
Field function returns field value.
func (GetDirectoryResponseValidationError) Key ¶
func (e GetDirectoryResponseValidationError) Key() bool
Key function returns key value.
func (GetDirectoryResponseValidationError) Reason ¶
func (e GetDirectoryResponseValidationError) Reason() string
Reason function returns reason value.
type ListDirectoryRequest ¶
type ListDirectoryRequest struct {
// contains filtered or unexported fields
}
---- ListDirectory ----
func (*ListDirectoryRequest) Descriptor
deprecated
func (*ListDirectoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListDirectoryRequest.ProtoReflect.Descriptor instead.
func (*ListDirectoryRequest) ProtoMessage ¶
func (*ListDirectoryRequest) ProtoMessage()
func (*ListDirectoryRequest) ProtoReflect ¶
func (x *ListDirectoryRequest) ProtoReflect() protoreflect.Message
func (*ListDirectoryRequest) Reset ¶
func (x *ListDirectoryRequest) Reset()
func (*ListDirectoryRequest) String ¶
func (x *ListDirectoryRequest) String() string
func (*ListDirectoryRequest) Validate ¶
func (m *ListDirectoryRequest) Validate() error
Validate checks the field values on ListDirectoryRequest 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 (*ListDirectoryRequest) ValidateAll ¶
func (m *ListDirectoryRequest) ValidateAll() error
ValidateAll checks the field values on ListDirectoryRequest 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 ListDirectoryRequestMultiError, or nil if none found.
type ListDirectoryRequestMultiError ¶
type ListDirectoryRequestMultiError []error
ListDirectoryRequestMultiError is an error wrapping multiple validation errors returned by ListDirectoryRequest.ValidateAll() if the designated constraints aren't met.
func (ListDirectoryRequestMultiError) AllErrors ¶
func (m ListDirectoryRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListDirectoryRequestMultiError) Error ¶
func (m ListDirectoryRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListDirectoryRequestValidationError ¶
type ListDirectoryRequestValidationError struct {
// contains filtered or unexported fields
}
ListDirectoryRequestValidationError is the validation error returned by ListDirectoryRequest.Validate if the designated constraints aren't met.
func (ListDirectoryRequestValidationError) Cause ¶
func (e ListDirectoryRequestValidationError) Cause() error
Cause function returns cause value.
func (ListDirectoryRequestValidationError) Error ¶
func (e ListDirectoryRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListDirectoryRequestValidationError) ErrorName ¶
func (e ListDirectoryRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListDirectoryRequestValidationError) Field ¶
func (e ListDirectoryRequestValidationError) Field() string
Field function returns field value.
func (ListDirectoryRequestValidationError) Key ¶
func (e ListDirectoryRequestValidationError) Key() bool
Key function returns key value.
func (ListDirectoryRequestValidationError) Reason ¶
func (e ListDirectoryRequestValidationError) Reason() string
Reason function returns reason value.
type ListDirectoryResponse ¶
type ListDirectoryResponse struct {
List []*DirectoryView `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
// contains filtered or unexported fields
}
func (*ListDirectoryResponse) Descriptor
deprecated
func (*ListDirectoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListDirectoryResponse.ProtoReflect.Descriptor instead.
func (*ListDirectoryResponse) GetList ¶
func (x *ListDirectoryResponse) GetList() []*DirectoryView
func (*ListDirectoryResponse) ProtoMessage ¶
func (*ListDirectoryResponse) ProtoMessage()
func (*ListDirectoryResponse) ProtoReflect ¶
func (x *ListDirectoryResponse) ProtoReflect() protoreflect.Message
func (*ListDirectoryResponse) Reset ¶
func (x *ListDirectoryResponse) Reset()
func (*ListDirectoryResponse) String ¶
func (x *ListDirectoryResponse) String() string
func (*ListDirectoryResponse) Validate ¶
func (m *ListDirectoryResponse) Validate() error
Validate checks the field values on ListDirectoryResponse 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 (*ListDirectoryResponse) ValidateAll ¶
func (m *ListDirectoryResponse) ValidateAll() error
ValidateAll checks the field values on ListDirectoryResponse 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 ListDirectoryResponseMultiError, or nil if none found.
type ListDirectoryResponseMultiError ¶
type ListDirectoryResponseMultiError []error
ListDirectoryResponseMultiError is an error wrapping multiple validation errors returned by ListDirectoryResponse.ValidateAll() if the designated constraints aren't met.
func (ListDirectoryResponseMultiError) AllErrors ¶
func (m ListDirectoryResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListDirectoryResponseMultiError) Error ¶
func (m ListDirectoryResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListDirectoryResponseValidationError ¶
type ListDirectoryResponseValidationError struct {
// contains filtered or unexported fields
}
ListDirectoryResponseValidationError is the validation error returned by ListDirectoryResponse.Validate if the designated constraints aren't met.
func (ListDirectoryResponseValidationError) Cause ¶
func (e ListDirectoryResponseValidationError) Cause() error
Cause function returns cause value.
func (ListDirectoryResponseValidationError) Error ¶
func (e ListDirectoryResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListDirectoryResponseValidationError) ErrorName ¶
func (e ListDirectoryResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListDirectoryResponseValidationError) Field ¶
func (e ListDirectoryResponseValidationError) Field() string
Field function returns field value.
func (ListDirectoryResponseValidationError) Key ¶
func (e ListDirectoryResponseValidationError) Key() bool
Key function returns key value.
func (ListDirectoryResponseValidationError) Reason ¶
func (e ListDirectoryResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedDirectoryServiceServer ¶
type UnimplementedDirectoryServiceServer struct{}
UnimplementedDirectoryServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedDirectoryServiceServer) CreateDirectory ¶
func (UnimplementedDirectoryServiceServer) CreateDirectory(context.Context, *CreateDirectoryRequest) (*CreateDirectoryResponse, error)
func (UnimplementedDirectoryServiceServer) DeleteDirectory ¶
func (UnimplementedDirectoryServiceServer) DeleteDirectory(context.Context, *DeleteDirectoryRequest) (*DeleteDirectoryResponse, error)
func (UnimplementedDirectoryServiceServer) GetDirectory ¶
func (UnimplementedDirectoryServiceServer) GetDirectory(context.Context, *GetDirectoryRequest) (*GetDirectoryResponse, error)
func (UnimplementedDirectoryServiceServer) ListDirectory ¶
func (UnimplementedDirectoryServiceServer) ListDirectory(context.Context, *ListDirectoryRequest) (*ListDirectoryResponse, error)
func (UnimplementedDirectoryServiceServer) UpdateDirectory ¶
func (UnimplementedDirectoryServiceServer) UpdateDirectory(context.Context, *UpdateDirectoryRequest) (*UpdateDirectoryResponse, error)
type UnsafeDirectoryServiceServer ¶
type UnsafeDirectoryServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDirectoryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DirectoryServiceServer will result in compilation errors.
type UpdateDirectoryRequest ¶
type UpdateDirectoryRequest struct {
Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
Path *string `protobuf:"bytes,3,opt,name=path,proto3,oneof" json:"path,omitempty"` // 可选:新完整路径(改名或移动);路径分段文法在领域层校验
Accept *string `protobuf:"bytes,4,opt,name=accept,proto3,oneof" json:"accept,omitempty"` // 可选:允许设 ""(禁止所有类型)
MaxSize *uint32 `protobuf:"varint,5,opt,name=max_size,json=maxSize,proto3,oneof" json:"max_size,omitempty"` // 可选:新单文件上限(MB)
// contains filtered or unexported fields
}
---- UpdateDirectory ----
func (*UpdateDirectoryRequest) Descriptor
deprecated
func (*UpdateDirectoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDirectoryRequest.ProtoReflect.Descriptor instead.
func (*UpdateDirectoryRequest) GetAccept ¶
func (x *UpdateDirectoryRequest) GetAccept() string
func (*UpdateDirectoryRequest) GetId ¶
func (x *UpdateDirectoryRequest) GetId() uint32
func (*UpdateDirectoryRequest) GetMaxSize ¶
func (x *UpdateDirectoryRequest) GetMaxSize() uint32
func (*UpdateDirectoryRequest) GetPath ¶
func (x *UpdateDirectoryRequest) GetPath() string
func (*UpdateDirectoryRequest) ProtoMessage ¶
func (*UpdateDirectoryRequest) ProtoMessage()
func (*UpdateDirectoryRequest) ProtoReflect ¶
func (x *UpdateDirectoryRequest) ProtoReflect() protoreflect.Message
func (*UpdateDirectoryRequest) Reset ¶
func (x *UpdateDirectoryRequest) Reset()
func (*UpdateDirectoryRequest) String ¶
func (x *UpdateDirectoryRequest) String() string
func (*UpdateDirectoryRequest) Validate ¶
func (m *UpdateDirectoryRequest) Validate() error
Validate checks the field values on UpdateDirectoryRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateDirectoryRequest) ValidateAll ¶
func (m *UpdateDirectoryRequest) ValidateAll() error
ValidateAll checks the field values on UpdateDirectoryRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateDirectoryRequestMultiError, or nil if none found.
type UpdateDirectoryRequestMultiError ¶
type UpdateDirectoryRequestMultiError []error
UpdateDirectoryRequestMultiError is an error wrapping multiple validation errors returned by UpdateDirectoryRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateDirectoryRequestMultiError) AllErrors ¶
func (m UpdateDirectoryRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateDirectoryRequestMultiError) Error ¶
func (m UpdateDirectoryRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateDirectoryRequestValidationError ¶
type UpdateDirectoryRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateDirectoryRequestValidationError is the validation error returned by UpdateDirectoryRequest.Validate if the designated constraints aren't met.
func (UpdateDirectoryRequestValidationError) Cause ¶
func (e UpdateDirectoryRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateDirectoryRequestValidationError) Error ¶
func (e UpdateDirectoryRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateDirectoryRequestValidationError) ErrorName ¶
func (e UpdateDirectoryRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateDirectoryRequestValidationError) Field ¶
func (e UpdateDirectoryRequestValidationError) Field() string
Field function returns field value.
func (UpdateDirectoryRequestValidationError) Key ¶
func (e UpdateDirectoryRequestValidationError) Key() bool
Key function returns key value.
func (UpdateDirectoryRequestValidationError) Reason ¶
func (e UpdateDirectoryRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateDirectoryResponse ¶
type UpdateDirectoryResponse struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateDirectoryResponse) Descriptor
deprecated
func (*UpdateDirectoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDirectoryResponse.ProtoReflect.Descriptor instead.
func (*UpdateDirectoryResponse) GetId ¶
func (x *UpdateDirectoryResponse) GetId() uint32
func (*UpdateDirectoryResponse) ProtoMessage ¶
func (*UpdateDirectoryResponse) ProtoMessage()
func (*UpdateDirectoryResponse) ProtoReflect ¶
func (x *UpdateDirectoryResponse) ProtoReflect() protoreflect.Message
func (*UpdateDirectoryResponse) Reset ¶
func (x *UpdateDirectoryResponse) Reset()
func (*UpdateDirectoryResponse) String ¶
func (x *UpdateDirectoryResponse) String() string
func (*UpdateDirectoryResponse) Validate ¶
func (m *UpdateDirectoryResponse) Validate() error
Validate checks the field values on UpdateDirectoryResponse 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 (*UpdateDirectoryResponse) ValidateAll ¶
func (m *UpdateDirectoryResponse) ValidateAll() error
ValidateAll checks the field values on UpdateDirectoryResponse 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 UpdateDirectoryResponseMultiError, or nil if none found.
type UpdateDirectoryResponseMultiError ¶
type UpdateDirectoryResponseMultiError []error
UpdateDirectoryResponseMultiError is an error wrapping multiple validation errors returned by UpdateDirectoryResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateDirectoryResponseMultiError) AllErrors ¶
func (m UpdateDirectoryResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateDirectoryResponseMultiError) Error ¶
func (m UpdateDirectoryResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateDirectoryResponseValidationError ¶
type UpdateDirectoryResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateDirectoryResponseValidationError is the validation error returned by UpdateDirectoryResponse.Validate if the designated constraints aren't met.
func (UpdateDirectoryResponseValidationError) Cause ¶
func (e UpdateDirectoryResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateDirectoryResponseValidationError) Error ¶
func (e UpdateDirectoryResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateDirectoryResponseValidationError) ErrorName ¶
func (e UpdateDirectoryResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateDirectoryResponseValidationError) Field ¶
func (e UpdateDirectoryResponseValidationError) Field() string
Field function returns field value.
func (UpdateDirectoryResponseValidationError) Key ¶
func (e UpdateDirectoryResponseValidationError) Key() bool
Key function returns key value.
func (UpdateDirectoryResponseValidationError) Reason ¶
func (e UpdateDirectoryResponseValidationError) Reason() string
Reason function returns reason value.