directory

package
v0.0.0-...-3f826f3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 25 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationDirectoryServiceCreateDirectory = "/resource.api.directory.DirectoryService/CreateDirectory"
View Source
const OperationDirectoryServiceDeleteDirectory = "/resource.api.directory.DirectoryService/DeleteDirectory"
View Source
const OperationDirectoryServiceGetDirectory = "/resource.api.directory.DirectoryService/GetDirectory"
View Source
const OperationDirectoryServiceListDirectory = "/resource.api.directory.DirectoryService/ListDirectory"
View Source
const OperationDirectoryServiceUpdateDirectory = "/resource.api.directory.DirectoryService/UpdateDirectory"

Variables

View Source
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)

View Source
var File_api_directory_proto_directory_proto protoreflect.FileDescriptor
View Source
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

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

Cause function returns cause value.

func (CreateDirectoryRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateDirectoryRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateDirectoryRequestValidationError) Field

Field function returns field value.

func (CreateDirectoryRequestValidationError) Key

Key function returns key value.

func (CreateDirectoryRequestValidationError) Reason

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

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

Cause function returns cause value.

func (CreateDirectoryResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateDirectoryResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateDirectoryResponseValidationError) Field

Field function returns field value.

func (CreateDirectoryResponseValidationError) Key

Key function returns key value.

func (CreateDirectoryResponseValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteDirectoryRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteDirectoryRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteDirectoryRequestValidationError) Field

Field function returns field value.

func (DeleteDirectoryRequestValidationError) Key

Key function returns key value.

func (DeleteDirectoryRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteDirectoryResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteDirectoryResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteDirectoryResponseValidationError) Field

Field function returns field value.

func (DeleteDirectoryResponseValidationError) Key

Key function returns key value.

func (DeleteDirectoryResponseValidationError) Reason

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 绑定。

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 (*DirectoryServiceHTTPClientImpl) DeleteDirectory

func (*DirectoryServiceHTTPClientImpl) GetDirectory

func (*DirectoryServiceHTTPClientImpl) ListDirectory

func (*DirectoryServiceHTTPClientImpl) UpdateDirectory

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

Cause function returns cause value.

func (DirectoryViewValidationError) Error

Error satisfies the builtin error interface

func (DirectoryViewValidationError) ErrorName

func (e DirectoryViewValidationError) ErrorName() string

ErrorName returns error name.

func (DirectoryViewValidationError) Field

Field function returns field value.

func (DirectoryViewValidationError) Key

Key function returns key value.

func (DirectoryViewValidationError) Reason

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

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

Cause function returns cause value.

func (GetDirectoryRequestValidationError) Error

Error satisfies the builtin error interface

func (GetDirectoryRequestValidationError) ErrorName

ErrorName returns error name.

func (GetDirectoryRequestValidationError) Field

Field function returns field value.

func (GetDirectoryRequestValidationError) Key

Key function returns key value.

func (GetDirectoryRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetDirectoryResponseValidationError) Error

Error satisfies the builtin error interface

func (GetDirectoryResponseValidationError) ErrorName

ErrorName returns error name.

func (GetDirectoryResponseValidationError) Field

Field function returns field value.

func (GetDirectoryResponseValidationError) Key

Key function returns key value.

func (GetDirectoryResponseValidationError) Reason

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

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

Cause function returns cause value.

func (ListDirectoryRequestValidationError) Error

Error satisfies the builtin error interface

func (ListDirectoryRequestValidationError) ErrorName

ErrorName returns error name.

func (ListDirectoryRequestValidationError) Field

Field function returns field value.

func (ListDirectoryRequestValidationError) Key

Key function returns key value.

func (ListDirectoryRequestValidationError) Reason

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

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

Cause function returns cause value.

func (ListDirectoryResponseValidationError) Error

Error satisfies the builtin error interface

func (ListDirectoryResponseValidationError) ErrorName

ErrorName returns error name.

func (ListDirectoryResponseValidationError) Field

Field function returns field value.

func (ListDirectoryResponseValidationError) Key

Key function returns key value.

func (ListDirectoryResponseValidationError) Reason

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) DeleteDirectory

func (UnimplementedDirectoryServiceServer) GetDirectory

func (UnimplementedDirectoryServiceServer) ListDirectory

func (UnimplementedDirectoryServiceServer) UpdateDirectory

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

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

Cause function returns cause value.

func (UpdateDirectoryRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateDirectoryRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateDirectoryRequestValidationError) Field

Field function returns field value.

func (UpdateDirectoryRequestValidationError) Key

Key function returns key value.

func (UpdateDirectoryRequestValidationError) Reason

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

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

Cause function returns cause value.

func (UpdateDirectoryResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateDirectoryResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateDirectoryResponseValidationError) Field

Field function returns field value.

func (UpdateDirectoryResponseValidationError) Key

Key function returns key value.

func (UpdateDirectoryResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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