Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterDirectoryHTTPServer(s *http.Server, srv DirectoryHTTPServer)
- func RegisterDirectoryServer(s grpc.ServiceRegistrar, srv DirectoryServer)
- type CreateDirectoryReply
- func (*CreateDirectoryReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDirectoryReply) GetId() uint32
- func (*CreateDirectoryReply) ProtoMessage()
- func (x *CreateDirectoryReply) ProtoReflect() protoreflect.Message
- func (x *CreateDirectoryReply) Reset()
- func (x *CreateDirectoryReply) String() string
- func (m *CreateDirectoryReply) Validate() error
- func (m *CreateDirectoryReply) ValidateAll() error
- type CreateDirectoryReplyMultiError
- type CreateDirectoryReplyValidationError
- func (e CreateDirectoryReplyValidationError) Cause() error
- func (e CreateDirectoryReplyValidationError) Error() string
- func (e CreateDirectoryReplyValidationError) ErrorName() string
- func (e CreateDirectoryReplyValidationError) Field() string
- func (e CreateDirectoryReplyValidationError) Key() bool
- func (e CreateDirectoryReplyValidationError) Reason() string
- type CreateDirectoryRequest
- func (*CreateDirectoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDirectoryRequest) GetAccept() string
- func (x *CreateDirectoryRequest) GetMaxSize() uint32
- func (x *CreateDirectoryRequest) GetName() string
- func (x *CreateDirectoryRequest) GetParentId() uint32
- 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 DeleteDirectoryReply
- func (*DeleteDirectoryReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDirectoryReply) GetTotal() uint32
- func (*DeleteDirectoryReply) ProtoMessage()
- func (x *DeleteDirectoryReply) ProtoReflect() protoreflect.Message
- func (x *DeleteDirectoryReply) Reset()
- func (x *DeleteDirectoryReply) String() string
- func (m *DeleteDirectoryReply) Validate() error
- func (m *DeleteDirectoryReply) ValidateAll() error
- type DeleteDirectoryReplyMultiError
- type DeleteDirectoryReplyValidationError
- func (e DeleteDirectoryReplyValidationError) Cause() error
- func (e DeleteDirectoryReplyValidationError) Error() string
- func (e DeleteDirectoryReplyValidationError) ErrorName() string
- func (e DeleteDirectoryReplyValidationError) Field() string
- func (e DeleteDirectoryReplyValidationError) Key() bool
- func (e DeleteDirectoryReplyValidationError) Reason() string
- type DeleteDirectoryRequest
- func (*DeleteDirectoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDirectoryRequest) GetIds() []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 DirectoryClient
- type DirectoryHTTPClient
- type DirectoryHTTPClientImpl
- func (c *DirectoryHTTPClientImpl) CreateDirectory(ctx context.Context, in *CreateDirectoryRequest, opts ...http.CallOption) (*CreateDirectoryReply, error)
- func (c *DirectoryHTTPClientImpl) DeleteDirectory(ctx context.Context, in *DeleteDirectoryRequest, opts ...http.CallOption) (*DeleteDirectoryReply, error)
- func (c *DirectoryHTTPClientImpl) GetDirectory(ctx context.Context, in *GetDirectoryRequest, opts ...http.CallOption) (*GetDirectoryReply, error)
- func (c *DirectoryHTTPClientImpl) ListDirectory(ctx context.Context, in *ListDirectoryRequest, opts ...http.CallOption) (*ListDirectoryReply, error)
- func (c *DirectoryHTTPClientImpl) UpdateDirectory(ctx context.Context, in *UpdateDirectoryRequest, opts ...http.CallOption) (*UpdateDirectoryReply, error)
- type DirectoryHTTPServer
- type DirectoryServer
- type GetDirectoryReply
- func (*GetDirectoryReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetDirectoryReply) GetAccept() string
- func (x *GetDirectoryReply) GetCreatedAt() uint32
- func (x *GetDirectoryReply) GetId() uint32
- func (x *GetDirectoryReply) GetMaxSize() uint32
- func (x *GetDirectoryReply) GetName() string
- func (x *GetDirectoryReply) GetParentId() uint32
- func (x *GetDirectoryReply) GetUpdatedAt() uint32
- func (*GetDirectoryReply) ProtoMessage()
- func (x *GetDirectoryReply) ProtoReflect() protoreflect.Message
- func (x *GetDirectoryReply) Reset()
- func (x *GetDirectoryReply) String() string
- func (m *GetDirectoryReply) Validate() error
- func (m *GetDirectoryReply) ValidateAll() error
- type GetDirectoryReplyMultiError
- type GetDirectoryReplyValidationError
- func (e GetDirectoryReplyValidationError) Cause() error
- func (e GetDirectoryReplyValidationError) Error() string
- func (e GetDirectoryReplyValidationError) ErrorName() string
- func (e GetDirectoryReplyValidationError) Field() string
- func (e GetDirectoryReplyValidationError) Key() bool
- func (e GetDirectoryReplyValidationError) 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 ListDirectoryReply
- func (*ListDirectoryReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListDirectoryReply) GetList() []*ListDirectoryReply_Directory
- func (x *ListDirectoryReply) GetTotal() uint32
- func (*ListDirectoryReply) ProtoMessage()
- func (x *ListDirectoryReply) ProtoReflect() protoreflect.Message
- func (x *ListDirectoryReply) Reset()
- func (x *ListDirectoryReply) String() string
- func (m *ListDirectoryReply) Validate() error
- func (m *ListDirectoryReply) ValidateAll() error
- type ListDirectoryReplyMultiError
- type ListDirectoryReplyValidationError
- func (e ListDirectoryReplyValidationError) Cause() error
- func (e ListDirectoryReplyValidationError) Error() string
- func (e ListDirectoryReplyValidationError) ErrorName() string
- func (e ListDirectoryReplyValidationError) Field() string
- func (e ListDirectoryReplyValidationError) Key() bool
- func (e ListDirectoryReplyValidationError) Reason() string
- type ListDirectoryReply_Directory
- func (*ListDirectoryReply_Directory) Descriptor() ([]byte, []int)deprecated
- func (x *ListDirectoryReply_Directory) GetAccept() string
- func (x *ListDirectoryReply_Directory) GetChildren() []*ListDirectoryReply_Directory
- func (x *ListDirectoryReply_Directory) GetCreatedAt() uint32
- func (x *ListDirectoryReply_Directory) GetId() uint32
- func (x *ListDirectoryReply_Directory) GetMaxSize() uint32
- func (x *ListDirectoryReply_Directory) GetName() string
- func (x *ListDirectoryReply_Directory) GetParentId() uint32
- func (x *ListDirectoryReply_Directory) GetUpdatedAt() uint32
- func (*ListDirectoryReply_Directory) ProtoMessage()
- func (x *ListDirectoryReply_Directory) ProtoReflect() protoreflect.Message
- func (x *ListDirectoryReply_Directory) Reset()
- func (x *ListDirectoryReply_Directory) String() string
- func (m *ListDirectoryReply_Directory) Validate() error
- func (m *ListDirectoryReply_Directory) ValidateAll() error
- type ListDirectoryReply_DirectoryMultiError
- type ListDirectoryReply_DirectoryValidationError
- func (e ListDirectoryReply_DirectoryValidationError) Cause() error
- func (e ListDirectoryReply_DirectoryValidationError) Error() string
- func (e ListDirectoryReply_DirectoryValidationError) ErrorName() string
- func (e ListDirectoryReply_DirectoryValidationError) Field() string
- func (e ListDirectoryReply_DirectoryValidationError) Key() bool
- func (e ListDirectoryReply_DirectoryValidationError) Reason() string
- type ListDirectoryRequest
- func (*ListDirectoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListDirectoryRequest) GetOrder() string
- func (x *ListDirectoryRequest) GetOrderBy() string
- 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 UnimplementedDirectoryServer
- func (UnimplementedDirectoryServer) CreateDirectory(context.Context, *CreateDirectoryRequest) (*CreateDirectoryReply, error)
- func (UnimplementedDirectoryServer) DeleteDirectory(context.Context, *DeleteDirectoryRequest) (*DeleteDirectoryReply, error)
- func (UnimplementedDirectoryServer) GetDirectory(context.Context, *GetDirectoryRequest) (*GetDirectoryReply, error)
- func (UnimplementedDirectoryServer) ListDirectory(context.Context, *ListDirectoryRequest) (*ListDirectoryReply, error)
- func (UnimplementedDirectoryServer) UpdateDirectory(context.Context, *UpdateDirectoryRequest) (*UpdateDirectoryReply, error)
- type UnsafeDirectoryServer
- type UpdateDirectoryReply
- func (*UpdateDirectoryReply) Descriptor() ([]byte, []int)deprecated
- func (*UpdateDirectoryReply) ProtoMessage()
- func (x *UpdateDirectoryReply) ProtoReflect() protoreflect.Message
- func (x *UpdateDirectoryReply) Reset()
- func (x *UpdateDirectoryReply) String() string
- func (m *UpdateDirectoryReply) Validate() error
- func (m *UpdateDirectoryReply) ValidateAll() error
- type UpdateDirectoryReplyMultiError
- type UpdateDirectoryReplyValidationError
- func (e UpdateDirectoryReplyValidationError) Cause() error
- func (e UpdateDirectoryReplyValidationError) Error() string
- func (e UpdateDirectoryReplyValidationError) ErrorName() string
- func (e UpdateDirectoryReplyValidationError) Field() string
- func (e UpdateDirectoryReplyValidationError) Key() bool
- func (e UpdateDirectoryReplyValidationError) Reason() string
- 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) GetName() string
- func (x *UpdateDirectoryRequest) GetParentId() uint32
- 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
Constants ¶
const ( Directory_GetDirectory_FullMethodName = "/wilson.api.resource.directory.v1.Directory/GetDirectory" Directory_ListDirectory_FullMethodName = "/wilson.api.resource.directory.v1.Directory/ListDirectory" Directory_CreateDirectory_FullMethodName = "/wilson.api.resource.directory.v1.Directory/CreateDirectory" Directory_UpdateDirectory_FullMethodName = "/wilson.api.resource.directory.v1.Directory/UpdateDirectory" Directory_DeleteDirectory_FullMethodName = "/wilson.api.resource.directory.v1.Directory/DeleteDirectory" )
const OperationDirectoryCreateDirectory = "/wilson.api.resource.directory.v1.Directory/CreateDirectory"
const OperationDirectoryDeleteDirectory = "/wilson.api.resource.directory.v1.Directory/DeleteDirectory"
const OperationDirectoryGetDirectory = "/wilson.api.resource.directory.v1.Directory/GetDirectory"
const OperationDirectoryListDirectory = "/wilson.api.resource.directory.v1.Directory/ListDirectory"
const OperationDirectoryUpdateDirectory = "/wilson.api.resource.directory.v1.Directory/UpdateDirectory"
Variables ¶
var Directory_ServiceDesc = grpc.ServiceDesc{ ServiceName: "wilson.api.resource.directory.v1.Directory", HandlerType: (*DirectoryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetDirectory", Handler: _Directory_GetDirectory_Handler, }, { MethodName: "ListDirectory", Handler: _Directory_ListDirectory_Handler, }, { MethodName: "CreateDirectory", Handler: _Directory_CreateDirectory_Handler, }, { MethodName: "UpdateDirectory", Handler: _Directory_UpdateDirectory_Handler, }, { MethodName: "DeleteDirectory", Handler: _Directory_DeleteDirectory_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "resource/directory/v1/resource_directory_service.proto", }
Directory_ServiceDesc is the grpc.ServiceDesc for Directory service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_resource_directory_v1_resource_directory_proto protoreflect.FileDescriptor
var File_resource_directory_v1_resource_directory_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDirectoryHTTPServer ¶
func RegisterDirectoryHTTPServer(s *http.Server, srv DirectoryHTTPServer)
func RegisterDirectoryServer ¶
func RegisterDirectoryServer(s grpc.ServiceRegistrar, srv DirectoryServer)
Types ¶
type CreateDirectoryReply ¶
type CreateDirectoryReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateDirectoryReply) Descriptor
deprecated
func (*CreateDirectoryReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateDirectoryReply.ProtoReflect.Descriptor instead.
func (*CreateDirectoryReply) GetId ¶
func (x *CreateDirectoryReply) GetId() uint32
func (*CreateDirectoryReply) ProtoMessage ¶
func (*CreateDirectoryReply) ProtoMessage()
func (*CreateDirectoryReply) ProtoReflect ¶
func (x *CreateDirectoryReply) ProtoReflect() protoreflect.Message
func (*CreateDirectoryReply) Reset ¶
func (x *CreateDirectoryReply) Reset()
func (*CreateDirectoryReply) String ¶
func (x *CreateDirectoryReply) String() string
func (*CreateDirectoryReply) Validate ¶
func (m *CreateDirectoryReply) Validate() error
Validate checks the field values on CreateDirectoryReply 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 (*CreateDirectoryReply) ValidateAll ¶
func (m *CreateDirectoryReply) ValidateAll() error
ValidateAll checks the field values on CreateDirectoryReply 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 CreateDirectoryReplyMultiError, or nil if none found.
type CreateDirectoryReplyMultiError ¶
type CreateDirectoryReplyMultiError []error
CreateDirectoryReplyMultiError is an error wrapping multiple validation errors returned by CreateDirectoryReply.ValidateAll() if the designated constraints aren't met.
func (CreateDirectoryReplyMultiError) AllErrors ¶
func (m CreateDirectoryReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateDirectoryReplyMultiError) Error ¶
func (m CreateDirectoryReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateDirectoryReplyValidationError ¶
type CreateDirectoryReplyValidationError struct {
// contains filtered or unexported fields
}
CreateDirectoryReplyValidationError is the validation error returned by CreateDirectoryReply.Validate if the designated constraints aren't met.
func (CreateDirectoryReplyValidationError) Cause ¶
func (e CreateDirectoryReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateDirectoryReplyValidationError) Error ¶
func (e CreateDirectoryReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateDirectoryReplyValidationError) ErrorName ¶
func (e CreateDirectoryReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateDirectoryReplyValidationError) Field ¶
func (e CreateDirectoryReplyValidationError) Field() string
Field function returns field value.
func (CreateDirectoryReplyValidationError) Key ¶
func (e CreateDirectoryReplyValidationError) Key() bool
Key function returns key value.
func (CreateDirectoryReplyValidationError) Reason ¶
func (e CreateDirectoryReplyValidationError) Reason() string
Reason function returns reason value.
type CreateDirectoryRequest ¶
type CreateDirectoryRequest struct { ParentId uint32 `protobuf:"varint,1,opt,name=parentId,proto3" json:"parentId,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Accept string `protobuf:"bytes,3,opt,name=accept,proto3" json:"accept,omitempty"` MaxSize uint32 `protobuf:"varint,4,opt,name=maxSize,proto3" json:"maxSize,omitempty"` // contains filtered or unexported fields }
func (*CreateDirectoryRequest) Descriptor
deprecated
func (*CreateDirectoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateDirectoryRequest.ProtoReflect.Descriptor instead.
func (*CreateDirectoryRequest) GetAccept ¶
func (x *CreateDirectoryRequest) GetAccept() string
func (*CreateDirectoryRequest) GetMaxSize ¶
func (x *CreateDirectoryRequest) GetMaxSize() uint32
func (*CreateDirectoryRequest) GetName ¶
func (x *CreateDirectoryRequest) GetName() string
func (*CreateDirectoryRequest) GetParentId ¶
func (x *CreateDirectoryRequest) GetParentId() uint32
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 DeleteDirectoryReply ¶
type DeleteDirectoryReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*DeleteDirectoryReply) Descriptor
deprecated
func (*DeleteDirectoryReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDirectoryReply.ProtoReflect.Descriptor instead.
func (*DeleteDirectoryReply) GetTotal ¶
func (x *DeleteDirectoryReply) GetTotal() uint32
func (*DeleteDirectoryReply) ProtoMessage ¶
func (*DeleteDirectoryReply) ProtoMessage()
func (*DeleteDirectoryReply) ProtoReflect ¶
func (x *DeleteDirectoryReply) ProtoReflect() protoreflect.Message
func (*DeleteDirectoryReply) Reset ¶
func (x *DeleteDirectoryReply) Reset()
func (*DeleteDirectoryReply) String ¶
func (x *DeleteDirectoryReply) String() string
func (*DeleteDirectoryReply) Validate ¶
func (m *DeleteDirectoryReply) Validate() error
Validate checks the field values on DeleteDirectoryReply 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 (*DeleteDirectoryReply) ValidateAll ¶
func (m *DeleteDirectoryReply) ValidateAll() error
ValidateAll checks the field values on DeleteDirectoryReply 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 DeleteDirectoryReplyMultiError, or nil if none found.
type DeleteDirectoryReplyMultiError ¶
type DeleteDirectoryReplyMultiError []error
DeleteDirectoryReplyMultiError is an error wrapping multiple validation errors returned by DeleteDirectoryReply.ValidateAll() if the designated constraints aren't met.
func (DeleteDirectoryReplyMultiError) AllErrors ¶
func (m DeleteDirectoryReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteDirectoryReplyMultiError) Error ¶
func (m DeleteDirectoryReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteDirectoryReplyValidationError ¶
type DeleteDirectoryReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteDirectoryReplyValidationError is the validation error returned by DeleteDirectoryReply.Validate if the designated constraints aren't met.
func (DeleteDirectoryReplyValidationError) Cause ¶
func (e DeleteDirectoryReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteDirectoryReplyValidationError) Error ¶
func (e DeleteDirectoryReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteDirectoryReplyValidationError) ErrorName ¶
func (e DeleteDirectoryReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteDirectoryReplyValidationError) Field ¶
func (e DeleteDirectoryReplyValidationError) Field() string
Field function returns field value.
func (DeleteDirectoryReplyValidationError) Key ¶
func (e DeleteDirectoryReplyValidationError) Key() bool
Key function returns key value.
func (DeleteDirectoryReplyValidationError) Reason ¶
func (e DeleteDirectoryReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteDirectoryRequest ¶
type DeleteDirectoryRequest struct { Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*DeleteDirectoryRequest) Descriptor
deprecated
func (*DeleteDirectoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDirectoryRequest.ProtoReflect.Descriptor instead.
func (*DeleteDirectoryRequest) GetIds ¶
func (x *DeleteDirectoryRequest) GetIds() []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 DirectoryClient ¶
type DirectoryClient interface { // GetDirectory 获取指定的文件目录信息 GetDirectory(ctx context.Context, in *GetDirectoryRequest, opts ...grpc.CallOption) (*GetDirectoryReply, error) // ListDirectory 获取文件目录信息列表 ListDirectory(ctx context.Context, in *ListDirectoryRequest, opts ...grpc.CallOption) (*ListDirectoryReply, error) // CreateDirectory 创建文件目录信息 CreateDirectory(ctx context.Context, in *CreateDirectoryRequest, opts ...grpc.CallOption) (*CreateDirectoryReply, error) // UpdateDirectory 更新文件目录信息 UpdateDirectory(ctx context.Context, in *UpdateDirectoryRequest, opts ...grpc.CallOption) (*UpdateDirectoryReply, error) // DeleteDirectory 删除文件目录信息 DeleteDirectory(ctx context.Context, in *DeleteDirectoryRequest, opts ...grpc.CallOption) (*DeleteDirectoryReply, error) }
DirectoryClient is the client API for Directory service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDirectoryClient ¶
func NewDirectoryClient(cc grpc.ClientConnInterface) DirectoryClient
type DirectoryHTTPClient ¶
type DirectoryHTTPClient interface { CreateDirectory(ctx context.Context, req *CreateDirectoryRequest, opts ...http.CallOption) (rsp *CreateDirectoryReply, err error) DeleteDirectory(ctx context.Context, req *DeleteDirectoryRequest, opts ...http.CallOption) (rsp *DeleteDirectoryReply, err error) GetDirectory(ctx context.Context, req *GetDirectoryRequest, opts ...http.CallOption) (rsp *GetDirectoryReply, err error) ListDirectory(ctx context.Context, req *ListDirectoryRequest, opts ...http.CallOption) (rsp *ListDirectoryReply, err error) UpdateDirectory(ctx context.Context, req *UpdateDirectoryRequest, opts ...http.CallOption) (rsp *UpdateDirectoryReply, err error) }
func NewDirectoryHTTPClient ¶
func NewDirectoryHTTPClient(client *http.Client) DirectoryHTTPClient
type DirectoryHTTPClientImpl ¶
type DirectoryHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*DirectoryHTTPClientImpl) CreateDirectory ¶
func (c *DirectoryHTTPClientImpl) CreateDirectory(ctx context.Context, in *CreateDirectoryRequest, opts ...http.CallOption) (*CreateDirectoryReply, error)
func (*DirectoryHTTPClientImpl) DeleteDirectory ¶
func (c *DirectoryHTTPClientImpl) DeleteDirectory(ctx context.Context, in *DeleteDirectoryRequest, opts ...http.CallOption) (*DeleteDirectoryReply, error)
func (*DirectoryHTTPClientImpl) GetDirectory ¶
func (c *DirectoryHTTPClientImpl) GetDirectory(ctx context.Context, in *GetDirectoryRequest, opts ...http.CallOption) (*GetDirectoryReply, error)
func (*DirectoryHTTPClientImpl) ListDirectory ¶
func (c *DirectoryHTTPClientImpl) ListDirectory(ctx context.Context, in *ListDirectoryRequest, opts ...http.CallOption) (*ListDirectoryReply, error)
func (*DirectoryHTTPClientImpl) UpdateDirectory ¶
func (c *DirectoryHTTPClientImpl) UpdateDirectory(ctx context.Context, in *UpdateDirectoryRequest, opts ...http.CallOption) (*UpdateDirectoryReply, error)
type DirectoryHTTPServer ¶
type DirectoryHTTPServer interface { // CreateDirectory CreateDirectory 创建文件目录信息 CreateDirectory(context.Context, *CreateDirectoryRequest) (*CreateDirectoryReply, error) // DeleteDirectory DeleteDirectory 删除文件目录信息 DeleteDirectory(context.Context, *DeleteDirectoryRequest) (*DeleteDirectoryReply, error) // GetDirectory GetDirectory 获取指定的文件目录信息 GetDirectory(context.Context, *GetDirectoryRequest) (*GetDirectoryReply, error) // ListDirectory ListDirectory 获取文件目录信息列表 ListDirectory(context.Context, *ListDirectoryRequest) (*ListDirectoryReply, error) // UpdateDirectory UpdateDirectory 更新文件目录信息 UpdateDirectory(context.Context, *UpdateDirectoryRequest) (*UpdateDirectoryReply, error) }
type DirectoryServer ¶
type DirectoryServer interface { // GetDirectory 获取指定的文件目录信息 GetDirectory(context.Context, *GetDirectoryRequest) (*GetDirectoryReply, error) // ListDirectory 获取文件目录信息列表 ListDirectory(context.Context, *ListDirectoryRequest) (*ListDirectoryReply, error) // CreateDirectory 创建文件目录信息 CreateDirectory(context.Context, *CreateDirectoryRequest) (*CreateDirectoryReply, error) // UpdateDirectory 更新文件目录信息 UpdateDirectory(context.Context, *UpdateDirectoryRequest) (*UpdateDirectoryReply, error) // DeleteDirectory 删除文件目录信息 DeleteDirectory(context.Context, *DeleteDirectoryRequest) (*DeleteDirectoryReply, error) // contains filtered or unexported methods }
DirectoryServer is the server API for Directory service. All implementations must embed UnimplementedDirectoryServer for forward compatibility.
type GetDirectoryReply ¶
type GetDirectoryReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ParentId uint32 `protobuf:"varint,2,opt,name=parentId,proto3" json:"parentId,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Accept string `protobuf:"bytes,4,opt,name=accept,proto3" json:"accept,omitempty"` MaxSize uint32 `protobuf:"varint,5,opt,name=maxSize,proto3" json:"maxSize,omitempty"` CreatedAt uint32 `protobuf:"varint,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt uint32 `protobuf:"varint,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*GetDirectoryReply) Descriptor
deprecated
func (*GetDirectoryReply) Descriptor() ([]byte, []int)
Deprecated: Use GetDirectoryReply.ProtoReflect.Descriptor instead.
func (*GetDirectoryReply) GetAccept ¶
func (x *GetDirectoryReply) GetAccept() string
func (*GetDirectoryReply) GetCreatedAt ¶
func (x *GetDirectoryReply) GetCreatedAt() uint32
func (*GetDirectoryReply) GetId ¶
func (x *GetDirectoryReply) GetId() uint32
func (*GetDirectoryReply) GetMaxSize ¶
func (x *GetDirectoryReply) GetMaxSize() uint32
func (*GetDirectoryReply) GetName ¶
func (x *GetDirectoryReply) GetName() string
func (*GetDirectoryReply) GetParentId ¶
func (x *GetDirectoryReply) GetParentId() uint32
func (*GetDirectoryReply) GetUpdatedAt ¶
func (x *GetDirectoryReply) GetUpdatedAt() uint32
func (*GetDirectoryReply) ProtoMessage ¶
func (*GetDirectoryReply) ProtoMessage()
func (*GetDirectoryReply) ProtoReflect ¶
func (x *GetDirectoryReply) ProtoReflect() protoreflect.Message
func (*GetDirectoryReply) Reset ¶
func (x *GetDirectoryReply) Reset()
func (*GetDirectoryReply) String ¶
func (x *GetDirectoryReply) String() string
func (*GetDirectoryReply) Validate ¶
func (m *GetDirectoryReply) Validate() error
Validate checks the field values on GetDirectoryReply 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 (*GetDirectoryReply) ValidateAll ¶
func (m *GetDirectoryReply) ValidateAll() error
ValidateAll checks the field values on GetDirectoryReply 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 GetDirectoryReplyMultiError, or nil if none found.
type GetDirectoryReplyMultiError ¶
type GetDirectoryReplyMultiError []error
GetDirectoryReplyMultiError is an error wrapping multiple validation errors returned by GetDirectoryReply.ValidateAll() if the designated constraints aren't met.
func (GetDirectoryReplyMultiError) AllErrors ¶
func (m GetDirectoryReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetDirectoryReplyMultiError) Error ¶
func (m GetDirectoryReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetDirectoryReplyValidationError ¶
type GetDirectoryReplyValidationError struct {
// contains filtered or unexported fields
}
GetDirectoryReplyValidationError is the validation error returned by GetDirectoryReply.Validate if the designated constraints aren't met.
func (GetDirectoryReplyValidationError) Cause ¶
func (e GetDirectoryReplyValidationError) Cause() error
Cause function returns cause value.
func (GetDirectoryReplyValidationError) Error ¶
func (e GetDirectoryReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetDirectoryReplyValidationError) ErrorName ¶
func (e GetDirectoryReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetDirectoryReplyValidationError) Field ¶
func (e GetDirectoryReplyValidationError) Field() string
Field function returns field value.
func (GetDirectoryReplyValidationError) Key ¶
func (e GetDirectoryReplyValidationError) Key() bool
Key function returns key value.
func (GetDirectoryReplyValidationError) Reason ¶
func (e GetDirectoryReplyValidationError) Reason() string
Reason function returns reason value.
type GetDirectoryRequest ¶
type GetDirectoryRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
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 ListDirectoryReply ¶
type ListDirectoryReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*ListDirectoryReply_Directory `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*ListDirectoryReply) Descriptor
deprecated
func (*ListDirectoryReply) Descriptor() ([]byte, []int)
Deprecated: Use ListDirectoryReply.ProtoReflect.Descriptor instead.
func (*ListDirectoryReply) GetList ¶
func (x *ListDirectoryReply) GetList() []*ListDirectoryReply_Directory
func (*ListDirectoryReply) GetTotal ¶
func (x *ListDirectoryReply) GetTotal() uint32
func (*ListDirectoryReply) ProtoMessage ¶
func (*ListDirectoryReply) ProtoMessage()
func (*ListDirectoryReply) ProtoReflect ¶
func (x *ListDirectoryReply) ProtoReflect() protoreflect.Message
func (*ListDirectoryReply) Reset ¶
func (x *ListDirectoryReply) Reset()
func (*ListDirectoryReply) String ¶
func (x *ListDirectoryReply) String() string
func (*ListDirectoryReply) Validate ¶
func (m *ListDirectoryReply) Validate() error
Validate checks the field values on ListDirectoryReply 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 (*ListDirectoryReply) ValidateAll ¶
func (m *ListDirectoryReply) ValidateAll() error
ValidateAll checks the field values on ListDirectoryReply 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 ListDirectoryReplyMultiError, or nil if none found.
type ListDirectoryReplyMultiError ¶
type ListDirectoryReplyMultiError []error
ListDirectoryReplyMultiError is an error wrapping multiple validation errors returned by ListDirectoryReply.ValidateAll() if the designated constraints aren't met.
func (ListDirectoryReplyMultiError) AllErrors ¶
func (m ListDirectoryReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListDirectoryReplyMultiError) Error ¶
func (m ListDirectoryReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListDirectoryReplyValidationError ¶
type ListDirectoryReplyValidationError struct {
// contains filtered or unexported fields
}
ListDirectoryReplyValidationError is the validation error returned by ListDirectoryReply.Validate if the designated constraints aren't met.
func (ListDirectoryReplyValidationError) Cause ¶
func (e ListDirectoryReplyValidationError) Cause() error
Cause function returns cause value.
func (ListDirectoryReplyValidationError) Error ¶
func (e ListDirectoryReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListDirectoryReplyValidationError) ErrorName ¶
func (e ListDirectoryReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListDirectoryReplyValidationError) Field ¶
func (e ListDirectoryReplyValidationError) Field() string
Field function returns field value.
func (ListDirectoryReplyValidationError) Key ¶
func (e ListDirectoryReplyValidationError) Key() bool
Key function returns key value.
func (ListDirectoryReplyValidationError) Reason ¶
func (e ListDirectoryReplyValidationError) Reason() string
Reason function returns reason value.
type ListDirectoryReply_Directory ¶
type ListDirectoryReply_Directory struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ParentId uint32 `protobuf:"varint,2,opt,name=parentId,proto3" json:"parentId,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Accept string `protobuf:"bytes,4,opt,name=accept,proto3" json:"accept,omitempty"` MaxSize uint32 `protobuf:"varint,5,opt,name=maxSize,proto3" json:"maxSize,omitempty"` CreatedAt uint32 `protobuf:"varint,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt uint32 `protobuf:"varint,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` Children []*ListDirectoryReply_Directory `protobuf:"bytes,8,rep,name=children,proto3" json:"children,omitempty"` // contains filtered or unexported fields }
func (*ListDirectoryReply_Directory) Descriptor
deprecated
func (*ListDirectoryReply_Directory) Descriptor() ([]byte, []int)
Deprecated: Use ListDirectoryReply_Directory.ProtoReflect.Descriptor instead.
func (*ListDirectoryReply_Directory) GetAccept ¶
func (x *ListDirectoryReply_Directory) GetAccept() string
func (*ListDirectoryReply_Directory) GetChildren ¶
func (x *ListDirectoryReply_Directory) GetChildren() []*ListDirectoryReply_Directory
func (*ListDirectoryReply_Directory) GetCreatedAt ¶
func (x *ListDirectoryReply_Directory) GetCreatedAt() uint32
func (*ListDirectoryReply_Directory) GetId ¶
func (x *ListDirectoryReply_Directory) GetId() uint32
func (*ListDirectoryReply_Directory) GetMaxSize ¶
func (x *ListDirectoryReply_Directory) GetMaxSize() uint32
func (*ListDirectoryReply_Directory) GetName ¶
func (x *ListDirectoryReply_Directory) GetName() string
func (*ListDirectoryReply_Directory) GetParentId ¶
func (x *ListDirectoryReply_Directory) GetParentId() uint32
func (*ListDirectoryReply_Directory) GetUpdatedAt ¶
func (x *ListDirectoryReply_Directory) GetUpdatedAt() uint32
func (*ListDirectoryReply_Directory) ProtoMessage ¶
func (*ListDirectoryReply_Directory) ProtoMessage()
func (*ListDirectoryReply_Directory) ProtoReflect ¶
func (x *ListDirectoryReply_Directory) ProtoReflect() protoreflect.Message
func (*ListDirectoryReply_Directory) Reset ¶
func (x *ListDirectoryReply_Directory) Reset()
func (*ListDirectoryReply_Directory) String ¶
func (x *ListDirectoryReply_Directory) String() string
func (*ListDirectoryReply_Directory) Validate ¶
func (m *ListDirectoryReply_Directory) Validate() error
Validate checks the field values on ListDirectoryReply_Directory 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 (*ListDirectoryReply_Directory) ValidateAll ¶
func (m *ListDirectoryReply_Directory) ValidateAll() error
ValidateAll checks the field values on ListDirectoryReply_Directory 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 ListDirectoryReply_DirectoryMultiError, or nil if none found.
type ListDirectoryReply_DirectoryMultiError ¶
type ListDirectoryReply_DirectoryMultiError []error
ListDirectoryReply_DirectoryMultiError is an error wrapping multiple validation errors returned by ListDirectoryReply_Directory.ValidateAll() if the designated constraints aren't met.
func (ListDirectoryReply_DirectoryMultiError) AllErrors ¶
func (m ListDirectoryReply_DirectoryMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListDirectoryReply_DirectoryMultiError) Error ¶
func (m ListDirectoryReply_DirectoryMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListDirectoryReply_DirectoryValidationError ¶
type ListDirectoryReply_DirectoryValidationError struct {
// contains filtered or unexported fields
}
ListDirectoryReply_DirectoryValidationError is the validation error returned by ListDirectoryReply_Directory.Validate if the designated constraints aren't met.
func (ListDirectoryReply_DirectoryValidationError) Cause ¶
func (e ListDirectoryReply_DirectoryValidationError) Cause() error
Cause function returns cause value.
func (ListDirectoryReply_DirectoryValidationError) Error ¶
func (e ListDirectoryReply_DirectoryValidationError) Error() string
Error satisfies the builtin error interface
func (ListDirectoryReply_DirectoryValidationError) ErrorName ¶
func (e ListDirectoryReply_DirectoryValidationError) ErrorName() string
ErrorName returns error name.
func (ListDirectoryReply_DirectoryValidationError) Field ¶
func (e ListDirectoryReply_DirectoryValidationError) Field() string
Field function returns field value.
func (ListDirectoryReply_DirectoryValidationError) Key ¶
func (e ListDirectoryReply_DirectoryValidationError) Key() bool
Key function returns key value.
func (ListDirectoryReply_DirectoryValidationError) Reason ¶
func (e ListDirectoryReply_DirectoryValidationError) Reason() string
Reason function returns reason value.
type ListDirectoryRequest ¶
type ListDirectoryRequest struct { Order *string `protobuf:"bytes,1,opt,name=order,proto3,oneof" json:"order,omitempty"` OrderBy *string `protobuf:"bytes,2,opt,name=orderBy,proto3,oneof" json:"orderBy,omitempty"` // contains filtered or unexported fields }
func (*ListDirectoryRequest) Descriptor
deprecated
func (*ListDirectoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListDirectoryRequest.ProtoReflect.Descriptor instead.
func (*ListDirectoryRequest) GetOrder ¶
func (x *ListDirectoryRequest) GetOrder() string
func (*ListDirectoryRequest) GetOrderBy ¶
func (x *ListDirectoryRequest) GetOrderBy() string
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 UnimplementedDirectoryServer ¶
type UnimplementedDirectoryServer struct{}
UnimplementedDirectoryServer 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 (UnimplementedDirectoryServer) CreateDirectory ¶
func (UnimplementedDirectoryServer) CreateDirectory(context.Context, *CreateDirectoryRequest) (*CreateDirectoryReply, error)
func (UnimplementedDirectoryServer) DeleteDirectory ¶
func (UnimplementedDirectoryServer) DeleteDirectory(context.Context, *DeleteDirectoryRequest) (*DeleteDirectoryReply, error)
func (UnimplementedDirectoryServer) GetDirectory ¶
func (UnimplementedDirectoryServer) GetDirectory(context.Context, *GetDirectoryRequest) (*GetDirectoryReply, error)
func (UnimplementedDirectoryServer) ListDirectory ¶
func (UnimplementedDirectoryServer) ListDirectory(context.Context, *ListDirectoryRequest) (*ListDirectoryReply, error)
func (UnimplementedDirectoryServer) UpdateDirectory ¶
func (UnimplementedDirectoryServer) UpdateDirectory(context.Context, *UpdateDirectoryRequest) (*UpdateDirectoryReply, error)
type UnsafeDirectoryServer ¶
type UnsafeDirectoryServer interface {
// contains filtered or unexported methods
}
UnsafeDirectoryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DirectoryServer will result in compilation errors.
type UpdateDirectoryReply ¶
type UpdateDirectoryReply struct {
// contains filtered or unexported fields
}
func (*UpdateDirectoryReply) Descriptor
deprecated
func (*UpdateDirectoryReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDirectoryReply.ProtoReflect.Descriptor instead.
func (*UpdateDirectoryReply) ProtoMessage ¶
func (*UpdateDirectoryReply) ProtoMessage()
func (*UpdateDirectoryReply) ProtoReflect ¶
func (x *UpdateDirectoryReply) ProtoReflect() protoreflect.Message
func (*UpdateDirectoryReply) Reset ¶
func (x *UpdateDirectoryReply) Reset()
func (*UpdateDirectoryReply) String ¶
func (x *UpdateDirectoryReply) String() string
func (*UpdateDirectoryReply) Validate ¶
func (m *UpdateDirectoryReply) Validate() error
Validate checks the field values on UpdateDirectoryReply 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 (*UpdateDirectoryReply) ValidateAll ¶
func (m *UpdateDirectoryReply) ValidateAll() error
ValidateAll checks the field values on UpdateDirectoryReply 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 UpdateDirectoryReplyMultiError, or nil if none found.
type UpdateDirectoryReplyMultiError ¶
type UpdateDirectoryReplyMultiError []error
UpdateDirectoryReplyMultiError is an error wrapping multiple validation errors returned by UpdateDirectoryReply.ValidateAll() if the designated constraints aren't met.
func (UpdateDirectoryReplyMultiError) AllErrors ¶
func (m UpdateDirectoryReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateDirectoryReplyMultiError) Error ¶
func (m UpdateDirectoryReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateDirectoryReplyValidationError ¶
type UpdateDirectoryReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateDirectoryReplyValidationError is the validation error returned by UpdateDirectoryReply.Validate if the designated constraints aren't met.
func (UpdateDirectoryReplyValidationError) Cause ¶
func (e UpdateDirectoryReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateDirectoryReplyValidationError) Error ¶
func (e UpdateDirectoryReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateDirectoryReplyValidationError) ErrorName ¶
func (e UpdateDirectoryReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateDirectoryReplyValidationError) Field ¶
func (e UpdateDirectoryReplyValidationError) Field() string
Field function returns field value.
func (UpdateDirectoryReplyValidationError) Key ¶
func (e UpdateDirectoryReplyValidationError) Key() bool
Key function returns key value.
func (UpdateDirectoryReplyValidationError) Reason ¶
func (e UpdateDirectoryReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateDirectoryRequest ¶
type UpdateDirectoryRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ParentId uint32 `protobuf:"varint,2,opt,name=parentId,proto3" json:"parentId,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Accept string `protobuf:"bytes,4,opt,name=accept,proto3" json:"accept,omitempty"` MaxSize uint32 `protobuf:"varint,5,opt,name=maxSize,proto3" json:"maxSize,omitempty"` // contains filtered or unexported fields }
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) GetName ¶
func (x *UpdateDirectoryRequest) GetName() string
func (*UpdateDirectoryRequest) GetParentId ¶
func (x *UpdateDirectoryRequest) GetParentId() uint32
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.