v1

package
v0.0.0-...-1ac7f4f Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationDirectoryCreateDirectory = "/wilson.api.resource.directory.v1.Directory/CreateDirectory"
View Source
const OperationDirectoryDeleteDirectory = "/wilson.api.resource.directory.v1.Directory/DeleteDirectory"
View Source
const OperationDirectoryGetDirectory = "/wilson.api.resource.directory.v1.Directory/GetDirectory"
View Source
const OperationDirectoryListDirectory = "/wilson.api.resource.directory.v1.Directory/ListDirectory"
View Source
const OperationDirectoryUpdateDirectory = "/wilson.api.resource.directory.v1.Directory/UpdateDirectory"

Variables

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

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

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

Cause function returns cause value.

func (CreateDirectoryReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateDirectoryReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateDirectoryReplyValidationError) Field

Field function returns field value.

func (CreateDirectoryReplyValidationError) Key

Key function returns key value.

func (CreateDirectoryReplyValidationError) Reason

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

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

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

Cause function returns cause value.

func (DeleteDirectoryReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteDirectoryReplyValidationError) ErrorName

ErrorName returns error name.

func (DeleteDirectoryReplyValidationError) Field

Field function returns field value.

func (DeleteDirectoryReplyValidationError) Key

Key function returns key value.

func (DeleteDirectoryReplyValidationError) Reason

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

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

func (*DirectoryHTTPClientImpl) GetDirectory

func (*DirectoryHTTPClientImpl) ListDirectory

func (*DirectoryHTTPClientImpl) UpdateDirectory

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

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

Cause function returns cause value.

func (GetDirectoryReplyValidationError) Error

Error satisfies the builtin error interface

func (GetDirectoryReplyValidationError) ErrorName

ErrorName returns error name.

func (GetDirectoryReplyValidationError) Field

Field function returns field value.

func (GetDirectoryReplyValidationError) Key

Key function returns key value.

func (GetDirectoryReplyValidationError) Reason

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

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 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 (*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

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

Cause function returns cause value.

func (ListDirectoryReplyValidationError) Error

Error satisfies the builtin error interface

func (ListDirectoryReplyValidationError) ErrorName

ErrorName returns error name.

func (ListDirectoryReplyValidationError) Field

Field function returns field value.

func (ListDirectoryReplyValidationError) Key

Key function returns key value.

func (ListDirectoryReplyValidationError) Reason

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 (*ListDirectoryReply_Directory) GetCreatedAt

func (x *ListDirectoryReply_Directory) GetCreatedAt() uint32

func (*ListDirectoryReply_Directory) GetId

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 (*ListDirectoryReply_Directory) Reset

func (x *ListDirectoryReply_Directory) Reset()

func (*ListDirectoryReply_Directory) 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

AllErrors returns a list of validation violation errors.

func (ListDirectoryReply_DirectoryMultiError) Error

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

Cause function returns cause value.

func (ListDirectoryReply_DirectoryValidationError) Error

Error satisfies the builtin error interface

func (ListDirectoryReply_DirectoryValidationError) ErrorName

ErrorName returns error name.

func (ListDirectoryReply_DirectoryValidationError) Field

Field function returns field value.

func (ListDirectoryReply_DirectoryValidationError) Key

Key function returns key value.

func (ListDirectoryReply_DirectoryValidationError) Reason

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

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

func (UnimplementedDirectoryServer) GetDirectory

func (UnimplementedDirectoryServer) ListDirectory

func (UnimplementedDirectoryServer) UpdateDirectory

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

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

Cause function returns cause value.

func (UpdateDirectoryReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateDirectoryReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateDirectoryReplyValidationError) Field

Field function returns field value.

func (UpdateDirectoryReplyValidationError) Key

Key function returns key value.

func (UpdateDirectoryReplyValidationError) Reason

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

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.

Jump to

Keyboard shortcuts

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