Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterStorageServer(s grpc.ServiceRegistrar, srv StorageServer)
- type DirInfo
- func (*DirInfo) Descriptor() ([]byte, []int)deprecated
- func (x *DirInfo) GetID() string
- func (x *DirInfo) GetIsFolder() bool
- func (x *DirInfo) GetModified() int64
- func (x *DirInfo) GetName() string
- func (x *DirInfo) GetPath() string
- func (x *DirInfo) GetSize() int64
- func (x *DirInfo) GetStorage() int64
- func (*DirInfo) ProtoMessage()
- func (x *DirInfo) ProtoReflect() protoreflect.Message
- func (x *DirInfo) Reset()
- func (x *DirInfo) String() string
- type Empty
- type GetDirReq
- func (*GetDirReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetDirReq) GetDir() *DirInfo
- func (x *GetDirReq) GetFresh() bool
- func (x *GetDirReq) GetPageReq() *PageReq
- func (x *GetDirReq) GetSort() *Sort
- func (*GetDirReq) ProtoMessage()
- func (x *GetDirReq) ProtoReflect() protoreflect.Message
- func (x *GetDirReq) Reset()
- func (x *GetDirReq) String() string
- type GetDirRes
- type GetDriverAddtionReq
- func (*GetDriverAddtionReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetDriverAddtionReq) GetDriverName() string
- func (*GetDriverAddtionReq) ProtoMessage()
- func (x *GetDriverAddtionReq) ProtoReflect() protoreflect.Message
- func (x *GetDriverAddtionReq) Reset()
- func (x *GetDriverAddtionReq) String() string
- type GetDriverAddtionRes
- func (*GetDriverAddtionRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetDriverAddtionRes) GetAddtion() string
- func (*GetDriverAddtionRes) ProtoMessage()
- func (x *GetDriverAddtionRes) ProtoReflect() protoreflect.Message
- func (x *GetDriverAddtionRes) Reset()
- func (x *GetDriverAddtionRes) String() string
- type GetDriverConfigReq
- func (*GetDriverConfigReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetDriverConfigReq) GetDriverName() string
- func (*GetDriverConfigReq) ProtoMessage()
- func (x *GetDriverConfigReq) ProtoReflect() protoreflect.Message
- func (x *GetDriverConfigReq) Reset()
- func (x *GetDriverConfigReq) String() string
- type GetDriverConfigRes
- func (*GetDriverConfigRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetDriverConfigRes) GetConfig() string
- func (*GetDriverConfigRes) ProtoMessage()
- func (x *GetDriverConfigRes) ProtoReflect() protoreflect.Message
- func (x *GetDriverConfigRes) Reset()
- func (x *GetDriverConfigRes) String() string
- type GetLinkReq
- func (*GetLinkReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetLinkReq) GetDirInfo() *DirInfo
- func (x *GetLinkReq) GetLinkArgs() *LinkArgs
- func (*GetLinkReq) ProtoMessage()
- func (x *GetLinkReq) ProtoReflect() protoreflect.Message
- func (x *GetLinkReq) Reset()
- func (x *GetLinkReq) String() string
- type GetLinkRes
- type GetSupportedDriversRes
- func (*GetSupportedDriversRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetSupportedDriversRes) GetRes() map[string]string
- func (*GetSupportedDriversRes) ProtoMessage()
- func (x *GetSupportedDriversRes) ProtoReflect() protoreflect.Message
- func (x *GetSupportedDriversRes) Reset()
- func (x *GetSupportedDriversRes) String() string
- type Link
- func (*Link) Descriptor() ([]byte, []int)deprecated
- func (x *Link) GetExpiration() int64
- func (x *Link) GetFilePath() string
- func (x *Link) GetHeader() map[string]*StringArr
- func (x *Link) GetStatus() int64
- func (x *Link) GetUrl() string
- func (*Link) ProtoMessage()
- func (x *Link) ProtoReflect() protoreflect.Message
- func (x *Link) Reset()
- func (x *Link) String() string
- type LinkArgs
- func (*LinkArgs) Descriptor() ([]byte, []int)deprecated
- func (x *LinkArgs) GetHeader() map[string]*StringArr
- func (x *LinkArgs) GetIP() string
- func (x *LinkArgs) GetType() string
- func (*LinkArgs) ProtoMessage()
- func (x *LinkArgs) ProtoReflect() protoreflect.Message
- func (x *LinkArgs) Reset()
- func (x *LinkArgs) String() string
- type MakeDirReq
- func (*MakeDirReq) Descriptor() ([]byte, []int)deprecated
- func (x *MakeDirReq) GetDirName() string
- func (x *MakeDirReq) GetParentDir() *DirInfo
- func (*MakeDirReq) ProtoMessage()
- func (x *MakeDirReq) ProtoReflect() protoreflect.Message
- func (x *MakeDirReq) Reset()
- func (x *MakeDirReq) String() string
- type MakeDirRes
- type MoveCopyReq
- func (*MoveCopyReq) Descriptor() ([]byte, []int)deprecated
- func (x *MoveCopyReq) GetDesDir() *DirInfo
- func (x *MoveCopyReq) GetSrcDir() *DirInfo
- func (*MoveCopyReq) ProtoMessage()
- func (x *MoveCopyReq) ProtoReflect() protoreflect.Message
- func (x *MoveCopyReq) Reset()
- func (x *MoveCopyReq) String() string
- type MoveCopyRes
- type PageReq
- type PutReq
- type PutRes
- type RemoveReq
- type RemoveRes
- type RenameReq
- type Sort
- func (*Sort) Descriptor() ([]byte, []int)deprecated
- func (x *Sort) GetExtractFolder() string
- func (x *Sort) GetOrderBy() string
- func (x *Sort) GetOrderDirection() string
- func (*Sort) ProtoMessage()
- func (x *Sort) ProtoReflect() protoreflect.Message
- func (x *Sort) Reset()
- func (x *Sort) String() string
- type StorageClient
- type StorageServer
- type StringArr
- type UnimplementedStorageServer
- func (UnimplementedStorageServer) Copy(context.Context, *MoveCopyReq) (*MoveCopyRes, error)
- func (UnimplementedStorageServer) GetDir(context.Context, *GetDirReq) (*GetDirRes, error)
- func (UnimplementedStorageServer) GetDriverAddtion(context.Context, *GetDriverAddtionReq) (*GetDriverAddtionRes, error)
- func (UnimplementedStorageServer) GetDriverConfig(context.Context, *GetDriverConfigReq) (*GetDriverConfigRes, error)
- func (UnimplementedStorageServer) GetLink(context.Context, *GetLinkReq) (*GetLinkRes, error)
- func (UnimplementedStorageServer) GetSupportedDrivers(context.Context, *Empty) (*GetSupportedDriversRes, error)
- func (UnimplementedStorageServer) Mkdir(context.Context, *MakeDirReq) (*Empty, error)
- func (UnimplementedStorageServer) Move(context.Context, *MoveCopyReq) (*MoveCopyRes, error)
- func (UnimplementedStorageServer) Put(context.Context, *PutReq) (*PutRes, error)
- func (UnimplementedStorageServer) RefreshAll(context.Context, *Empty) (*Empty, error)
- func (UnimplementedStorageServer) Remove(context.Context, *RemoveReq) (*Empty, error)
- func (UnimplementedStorageServer) Rename(context.Context, *RenameReq) (*Empty, error)
- type UnsafeStorageServer
Constants ¶
const ( Storage_GetDir_FullMethodName = "/storage.Storage/GetDir" Storage_GetLink_FullMethodName = "/storage.Storage/GetLink" Storage_GetDriverConfig_FullMethodName = "/storage.Storage/GetDriverConfig" Storage_GetDriverAddtion_FullMethodName = "/storage.Storage/GetDriverAddtion" Storage_Mkdir_FullMethodName = "/storage.Storage/Mkdir" Storage_Rename_FullMethodName = "/storage.Storage/Rename" Storage_Move_FullMethodName = "/storage.Storage/Move" Storage_Copy_FullMethodName = "/storage.Storage/Copy" Storage_Remove_FullMethodName = "/storage.Storage/Remove" Storage_Put_FullMethodName = "/storage.Storage/Put" Storage_RefreshAll_FullMethodName = "/storage.Storage/RefreshAll" Storage_GetSupportedDrivers_FullMethodName = "/storage.Storage/GetSupportedDrivers" )
Variables ¶
var File_storage_proto protoreflect.FileDescriptor
var Storage_ServiceDesc = grpc.ServiceDesc{ ServiceName: "storage.Storage", HandlerType: (*StorageServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetDir", Handler: _Storage_GetDir_Handler, }, { MethodName: "GetLink", Handler: _Storage_GetLink_Handler, }, { MethodName: "GetDriverConfig", Handler: _Storage_GetDriverConfig_Handler, }, { MethodName: "GetDriverAddtion", Handler: _Storage_GetDriverAddtion_Handler, }, { MethodName: "Mkdir", Handler: _Storage_Mkdir_Handler, }, { MethodName: "Rename", Handler: _Storage_Rename_Handler, }, { MethodName: "Move", Handler: _Storage_Move_Handler, }, { MethodName: "Copy", Handler: _Storage_Copy_Handler, }, { MethodName: "Remove", Handler: _Storage_Remove_Handler, }, { MethodName: "Put", Handler: _Storage_Put_Handler, }, { MethodName: "RefreshAll", Handler: _Storage_RefreshAll_Handler, }, { MethodName: "GetSupportedDrivers", Handler: _Storage_GetSupportedDrivers_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "storage.proto", }
Storage_ServiceDesc is the grpc.ServiceDesc for Storage service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStorageServer ¶
func RegisterStorageServer(s grpc.ServiceRegistrar, srv StorageServer)
Types ¶
type DirInfo ¶
type DirInfo struct { Storage int64 `protobuf:"varint,1,opt,name=storage,proto3" json:"storage,omitempty"` ID string `protobuf:"bytes,2,opt,name=iD,proto3" json:"iD,omitempty"` Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` Modified int64 `protobuf:"varint,6,opt,name=modified,proto3" json:"modified,omitempty"` IsFolder bool `protobuf:"varint,7,opt,name=isFolder,proto3" json:"isFolder,omitempty"` // contains filtered or unexported fields }
func (*DirInfo) Descriptor
deprecated
func (*DirInfo) GetIsFolder ¶
func (*DirInfo) GetModified ¶
func (*DirInfo) GetStorage ¶
func (*DirInfo) ProtoMessage ¶
func (*DirInfo) ProtoMessage()
func (*DirInfo) ProtoReflect ¶
func (x *DirInfo) ProtoReflect() protoreflect.Message
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type GetDirReq ¶
type GetDirReq struct { Dir *DirInfo `protobuf:"bytes,1,opt,name=dir,proto3" json:"dir,omitempty"` PageReq *PageReq `protobuf:"bytes,2,opt,name=pageReq,proto3" json:"pageReq,omitempty"` Fresh bool `protobuf:"varint,3,opt,name=fresh,proto3" json:"fresh,omitempty"` Sort *Sort `protobuf:"bytes,4,opt,name=sort,proto3" json:"sort,omitempty"` // contains filtered or unexported fields }
func (*GetDirReq) Descriptor
deprecated
func (*GetDirReq) GetPageReq ¶
func (*GetDirReq) ProtoMessage ¶
func (*GetDirReq) ProtoMessage()
func (*GetDirReq) ProtoReflect ¶
func (x *GetDirReq) ProtoReflect() protoreflect.Message
type GetDirRes ¶
type GetDirRes struct { Dirs []*DirInfo `protobuf:"bytes,1,rep,name=dirs,proto3" json:"dirs,omitempty"` Pageinof *PageReq `protobuf:"bytes,2,opt,name=pageinof,proto3" json:"pageinof,omitempty"` // contains filtered or unexported fields }
func (*GetDirRes) Descriptor
deprecated
func (*GetDirRes) GetPageinof ¶
func (*GetDirRes) ProtoMessage ¶
func (*GetDirRes) ProtoMessage()
func (*GetDirRes) ProtoReflect ¶
func (x *GetDirRes) ProtoReflect() protoreflect.Message
type GetDriverAddtionReq ¶
type GetDriverAddtionReq struct { DriverName string `protobuf:"bytes,1,opt,name=driverName,proto3" json:"driverName,omitempty"` // contains filtered or unexported fields }
func (*GetDriverAddtionReq) Descriptor
deprecated
func (*GetDriverAddtionReq) Descriptor() ([]byte, []int)
Deprecated: Use GetDriverAddtionReq.ProtoReflect.Descriptor instead.
func (*GetDriverAddtionReq) GetDriverName ¶
func (x *GetDriverAddtionReq) GetDriverName() string
func (*GetDriverAddtionReq) ProtoMessage ¶
func (*GetDriverAddtionReq) ProtoMessage()
func (*GetDriverAddtionReq) ProtoReflect ¶
func (x *GetDriverAddtionReq) ProtoReflect() protoreflect.Message
func (*GetDriverAddtionReq) Reset ¶
func (x *GetDriverAddtionReq) Reset()
func (*GetDriverAddtionReq) String ¶
func (x *GetDriverAddtionReq) String() string
type GetDriverAddtionRes ¶
type GetDriverAddtionRes struct { Addtion string `protobuf:"bytes,1,opt,name=addtion,proto3" json:"addtion,omitempty"` // contains filtered or unexported fields }
func (*GetDriverAddtionRes) Descriptor
deprecated
func (*GetDriverAddtionRes) Descriptor() ([]byte, []int)
Deprecated: Use GetDriverAddtionRes.ProtoReflect.Descriptor instead.
func (*GetDriverAddtionRes) GetAddtion ¶
func (x *GetDriverAddtionRes) GetAddtion() string
func (*GetDriverAddtionRes) ProtoMessage ¶
func (*GetDriverAddtionRes) ProtoMessage()
func (*GetDriverAddtionRes) ProtoReflect ¶
func (x *GetDriverAddtionRes) ProtoReflect() protoreflect.Message
func (*GetDriverAddtionRes) Reset ¶
func (x *GetDriverAddtionRes) Reset()
func (*GetDriverAddtionRes) String ¶
func (x *GetDriverAddtionRes) String() string
type GetDriverConfigReq ¶
type GetDriverConfigReq struct { DriverName string `protobuf:"bytes,1,opt,name=driverName,proto3" json:"driverName,omitempty"` // contains filtered or unexported fields }
func (*GetDriverConfigReq) Descriptor
deprecated
func (*GetDriverConfigReq) Descriptor() ([]byte, []int)
Deprecated: Use GetDriverConfigReq.ProtoReflect.Descriptor instead.
func (*GetDriverConfigReq) GetDriverName ¶
func (x *GetDriverConfigReq) GetDriverName() string
func (*GetDriverConfigReq) ProtoMessage ¶
func (*GetDriverConfigReq) ProtoMessage()
func (*GetDriverConfigReq) ProtoReflect ¶
func (x *GetDriverConfigReq) ProtoReflect() protoreflect.Message
func (*GetDriverConfigReq) Reset ¶
func (x *GetDriverConfigReq) Reset()
func (*GetDriverConfigReq) String ¶
func (x *GetDriverConfigReq) String() string
type GetDriverConfigRes ¶
type GetDriverConfigRes struct { Config string `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
func (*GetDriverConfigRes) Descriptor
deprecated
func (*GetDriverConfigRes) Descriptor() ([]byte, []int)
Deprecated: Use GetDriverConfigRes.ProtoReflect.Descriptor instead.
func (*GetDriverConfigRes) GetConfig ¶
func (x *GetDriverConfigRes) GetConfig() string
func (*GetDriverConfigRes) ProtoMessage ¶
func (*GetDriverConfigRes) ProtoMessage()
func (*GetDriverConfigRes) ProtoReflect ¶
func (x *GetDriverConfigRes) ProtoReflect() protoreflect.Message
func (*GetDriverConfigRes) Reset ¶
func (x *GetDriverConfigRes) Reset()
func (*GetDriverConfigRes) String ¶
func (x *GetDriverConfigRes) String() string
type GetLinkReq ¶
type GetLinkReq struct { DirInfo *DirInfo `protobuf:"bytes,1,opt,name=dirInfo,proto3" json:"dirInfo,omitempty"` LinkArgs *LinkArgs `protobuf:"bytes,2,opt,name=linkArgs,proto3" json:"linkArgs,omitempty"` // contains filtered or unexported fields }
func (*GetLinkReq) Descriptor
deprecated
func (*GetLinkReq) Descriptor() ([]byte, []int)
Deprecated: Use GetLinkReq.ProtoReflect.Descriptor instead.
func (*GetLinkReq) GetDirInfo ¶
func (x *GetLinkReq) GetDirInfo() *DirInfo
func (*GetLinkReq) GetLinkArgs ¶
func (x *GetLinkReq) GetLinkArgs() *LinkArgs
func (*GetLinkReq) ProtoMessage ¶
func (*GetLinkReq) ProtoMessage()
func (*GetLinkReq) ProtoReflect ¶
func (x *GetLinkReq) ProtoReflect() protoreflect.Message
func (*GetLinkReq) Reset ¶
func (x *GetLinkReq) Reset()
func (*GetLinkReq) String ¶
func (x *GetLinkReq) String() string
type GetLinkRes ¶
type GetLinkRes struct { Link *Link `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"` // contains filtered or unexported fields }
func (*GetLinkRes) Descriptor
deprecated
func (*GetLinkRes) Descriptor() ([]byte, []int)
Deprecated: Use GetLinkRes.ProtoReflect.Descriptor instead.
func (*GetLinkRes) GetLink ¶
func (x *GetLinkRes) GetLink() *Link
func (*GetLinkRes) ProtoMessage ¶
func (*GetLinkRes) ProtoMessage()
func (*GetLinkRes) ProtoReflect ¶
func (x *GetLinkRes) ProtoReflect() protoreflect.Message
func (*GetLinkRes) Reset ¶
func (x *GetLinkRes) Reset()
func (*GetLinkRes) String ¶
func (x *GetLinkRes) String() string
type GetSupportedDriversRes ¶
type GetSupportedDriversRes struct { Res map[string]string `` /* 147-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetSupportedDriversRes) Descriptor
deprecated
func (*GetSupportedDriversRes) Descriptor() ([]byte, []int)
Deprecated: Use GetSupportedDriversRes.ProtoReflect.Descriptor instead.
func (*GetSupportedDriversRes) GetRes ¶
func (x *GetSupportedDriversRes) GetRes() map[string]string
func (*GetSupportedDriversRes) ProtoMessage ¶
func (*GetSupportedDriversRes) ProtoMessage()
func (*GetSupportedDriversRes) ProtoReflect ¶
func (x *GetSupportedDriversRes) ProtoReflect() protoreflect.Message
func (*GetSupportedDriversRes) Reset ¶
func (x *GetSupportedDriversRes) Reset()
func (*GetSupportedDriversRes) String ¶
func (x *GetSupportedDriversRes) String() string
type Link ¶
type Link struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Header map[string]*StringArr `` /* 153-byte string literal not displayed */ Status int64 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` FilePath string `protobuf:"bytes,4,opt,name=filePath,proto3" json:"filePath,omitempty"` Expiration int64 `protobuf:"varint,5,opt,name=expiration,proto3" json:"expiration,omitempty"` // contains filtered or unexported fields }
func (*Link) Descriptor
deprecated
func (*Link) GetExpiration ¶
func (*Link) GetFilePath ¶
func (*Link) ProtoMessage ¶
func (*Link) ProtoMessage()
func (*Link) ProtoReflect ¶
func (x *Link) ProtoReflect() protoreflect.Message
type LinkArgs ¶
type LinkArgs struct { IP string `protobuf:"bytes,1,opt,name=iP,proto3" json:"iP,omitempty"` Header map[string]*StringArr `` /* 153-byte string literal not displayed */ Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*LinkArgs) Descriptor
deprecated
func (*LinkArgs) ProtoMessage ¶
func (*LinkArgs) ProtoMessage()
func (*LinkArgs) ProtoReflect ¶
func (x *LinkArgs) ProtoReflect() protoreflect.Message
type MakeDirReq ¶
type MakeDirReq struct { ParentDir *DirInfo `protobuf:"bytes,1,opt,name=parentDir,proto3" json:"parentDir,omitempty"` DirName string `protobuf:"bytes,2,opt,name=dirName,proto3" json:"dirName,omitempty"` // contains filtered or unexported fields }
func (*MakeDirReq) Descriptor
deprecated
func (*MakeDirReq) Descriptor() ([]byte, []int)
Deprecated: Use MakeDirReq.ProtoReflect.Descriptor instead.
func (*MakeDirReq) GetDirName ¶
func (x *MakeDirReq) GetDirName() string
func (*MakeDirReq) GetParentDir ¶
func (x *MakeDirReq) GetParentDir() *DirInfo
func (*MakeDirReq) ProtoMessage ¶
func (*MakeDirReq) ProtoMessage()
func (*MakeDirReq) ProtoReflect ¶
func (x *MakeDirReq) ProtoReflect() protoreflect.Message
func (*MakeDirReq) Reset ¶
func (x *MakeDirReq) Reset()
func (*MakeDirReq) String ¶
func (x *MakeDirReq) String() string
type MakeDirRes ¶
type MakeDirRes struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*MakeDirRes) Descriptor
deprecated
func (*MakeDirRes) Descriptor() ([]byte, []int)
Deprecated: Use MakeDirRes.ProtoReflect.Descriptor instead.
func (*MakeDirRes) GetId ¶
func (x *MakeDirRes) GetId() string
func (*MakeDirRes) ProtoMessage ¶
func (*MakeDirRes) ProtoMessage()
func (*MakeDirRes) ProtoReflect ¶
func (x *MakeDirRes) ProtoReflect() protoreflect.Message
func (*MakeDirRes) Reset ¶
func (x *MakeDirRes) Reset()
func (*MakeDirRes) String ¶
func (x *MakeDirRes) String() string
type MoveCopyReq ¶
type MoveCopyReq struct { SrcDir *DirInfo `protobuf:"bytes,1,opt,name=srcDir,proto3" json:"srcDir,omitempty"` DesDir *DirInfo `protobuf:"bytes,2,opt,name=desDir,proto3" json:"desDir,omitempty"` // contains filtered or unexported fields }
func (*MoveCopyReq) Descriptor
deprecated
func (*MoveCopyReq) Descriptor() ([]byte, []int)
Deprecated: Use MoveCopyReq.ProtoReflect.Descriptor instead.
func (*MoveCopyReq) GetDesDir ¶
func (x *MoveCopyReq) GetDesDir() *DirInfo
func (*MoveCopyReq) GetSrcDir ¶
func (x *MoveCopyReq) GetSrcDir() *DirInfo
func (*MoveCopyReq) ProtoMessage ¶
func (*MoveCopyReq) ProtoMessage()
func (*MoveCopyReq) ProtoReflect ¶
func (x *MoveCopyReq) ProtoReflect() protoreflect.Message
func (*MoveCopyReq) Reset ¶
func (x *MoveCopyReq) Reset()
func (*MoveCopyReq) String ¶
func (x *MoveCopyReq) String() string
type MoveCopyRes ¶
type MoveCopyRes struct { DirInfo *DirInfo `protobuf:"bytes,1,opt,name=dirInfo,proto3" json:"dirInfo,omitempty"` // contains filtered or unexported fields }
func (*MoveCopyRes) Descriptor
deprecated
func (*MoveCopyRes) Descriptor() ([]byte, []int)
Deprecated: Use MoveCopyRes.ProtoReflect.Descriptor instead.
func (*MoveCopyRes) GetDirInfo ¶
func (x *MoveCopyRes) GetDirInfo() *DirInfo
func (*MoveCopyRes) ProtoMessage ¶
func (*MoveCopyRes) ProtoMessage()
func (*MoveCopyRes) ProtoReflect ¶
func (x *MoveCopyRes) ProtoReflect() protoreflect.Message
func (*MoveCopyRes) Reset ¶
func (x *MoveCopyRes) Reset()
func (*MoveCopyRes) String ¶
func (x *MoveCopyRes) String() string
type PageReq ¶
type PageReq struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*PageReq) Descriptor
deprecated
func (*PageReq) GetPageSize ¶
func (*PageReq) ProtoMessage ¶
func (*PageReq) ProtoMessage()
func (*PageReq) ProtoReflect ¶
func (x *PageReq) ProtoReflect() protoreflect.Message
type PutReq ¶
type PutReq struct { DirInfo *DirInfo `protobuf:"bytes,1,opt,name=dirInfo,proto3" json:"dirInfo,omitempty"` // contains filtered or unexported fields }
func (*PutReq) Descriptor
deprecated
func (*PutReq) GetDirInfo ¶
func (*PutReq) ProtoMessage ¶
func (*PutReq) ProtoMessage()
func (*PutReq) ProtoReflect ¶
func (x *PutReq) ProtoReflect() protoreflect.Message
type PutRes ¶
type PutRes struct { DirInfo *DirInfo `protobuf:"bytes,1,opt,name=dirInfo,proto3" json:"dirInfo,omitempty"` // contains filtered or unexported fields }
func (*PutRes) Descriptor
deprecated
func (*PutRes) GetDirInfo ¶
func (*PutRes) ProtoMessage ¶
func (*PutRes) ProtoMessage()
func (*PutRes) ProtoReflect ¶
func (x *PutRes) ProtoReflect() protoreflect.Message
type RemoveReq ¶
type RemoveReq struct { DirInfo *DirInfo `protobuf:"bytes,1,opt,name=dirInfo,proto3" json:"dirInfo,omitempty"` // contains filtered or unexported fields }
func (*RemoveReq) Descriptor
deprecated
func (*RemoveReq) GetDirInfo ¶
func (*RemoveReq) ProtoMessage ¶
func (*RemoveReq) ProtoMessage()
func (*RemoveReq) ProtoReflect ¶
func (x *RemoveReq) ProtoReflect() protoreflect.Message
type RemoveRes ¶
type RemoveRes struct { DirInfo *DirInfo `protobuf:"bytes,1,opt,name=dirInfo,proto3" json:"dirInfo,omitempty"` // contains filtered or unexported fields }
func (*RemoveRes) Descriptor
deprecated
func (*RemoveRes) GetDirInfo ¶
func (*RemoveRes) ProtoMessage ¶
func (*RemoveRes) ProtoMessage()
func (*RemoveRes) ProtoReflect ¶
func (x *RemoveRes) ProtoReflect() protoreflect.Message
type RenameReq ¶
type RenameReq struct { DirInfo *DirInfo `protobuf:"bytes,1,opt,name=dirInfo,proto3" json:"dirInfo,omitempty"` DirName string `protobuf:"bytes,2,opt,name=dirName,proto3" json:"dirName,omitempty"` // contains filtered or unexported fields }
func (*RenameReq) Descriptor
deprecated
func (*RenameReq) GetDirInfo ¶
func (*RenameReq) GetDirName ¶
func (*RenameReq) ProtoMessage ¶
func (*RenameReq) ProtoMessage()
func (*RenameReq) ProtoReflect ¶
func (x *RenameReq) ProtoReflect() protoreflect.Message
type Sort ¶
type Sort struct { OrderBy string `protobuf:"bytes,1,opt,name=orderBy,proto3" json:"orderBy,omitempty"` OrderDirection string `protobuf:"bytes,2,opt,name=orderDirection,proto3" json:"orderDirection,omitempty"` ExtractFolder string `protobuf:"bytes,3,opt,name=extractFolder,proto3" json:"extractFolder,omitempty"` // contains filtered or unexported fields }
func (*Sort) Descriptor
deprecated
func (*Sort) GetExtractFolder ¶
func (*Sort) GetOrderBy ¶
func (*Sort) GetOrderDirection ¶
func (*Sort) ProtoMessage ¶
func (*Sort) ProtoMessage()
func (*Sort) ProtoReflect ¶
func (x *Sort) ProtoReflect() protoreflect.Message
type StorageClient ¶
type StorageClient interface { GetDir(ctx context.Context, in *GetDirReq, opts ...grpc.CallOption) (*GetDirRes, error) GetLink(ctx context.Context, in *GetLinkReq, opts ...grpc.CallOption) (*GetLinkRes, error) GetDriverConfig(ctx context.Context, in *GetDriverConfigReq, opts ...grpc.CallOption) (*GetDriverConfigRes, error) GetDriverAddtion(ctx context.Context, in *GetDriverAddtionReq, opts ...grpc.CallOption) (*GetDriverAddtionRes, error) Mkdir(ctx context.Context, in *MakeDirReq, opts ...grpc.CallOption) (*Empty, error) Rename(ctx context.Context, in *RenameReq, opts ...grpc.CallOption) (*Empty, error) Move(ctx context.Context, in *MoveCopyReq, opts ...grpc.CallOption) (*MoveCopyRes, error) Copy(ctx context.Context, in *MoveCopyReq, opts ...grpc.CallOption) (*MoveCopyRes, error) Remove(ctx context.Context, in *RemoveReq, opts ...grpc.CallOption) (*Empty, error) Put(ctx context.Context, in *PutReq, opts ...grpc.CallOption) (*PutRes, error) RefreshAll(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) GetSupportedDrivers(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetSupportedDriversRes, error) }
StorageClient is the client API for Storage 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 NewStorageClient ¶
func NewStorageClient(cc grpc.ClientConnInterface) StorageClient
type StorageServer ¶
type StorageServer interface { GetDir(context.Context, *GetDirReq) (*GetDirRes, error) GetLink(context.Context, *GetLinkReq) (*GetLinkRes, error) GetDriverConfig(context.Context, *GetDriverConfigReq) (*GetDriverConfigRes, error) GetDriverAddtion(context.Context, *GetDriverAddtionReq) (*GetDriverAddtionRes, error) Mkdir(context.Context, *MakeDirReq) (*Empty, error) Rename(context.Context, *RenameReq) (*Empty, error) Move(context.Context, *MoveCopyReq) (*MoveCopyRes, error) Copy(context.Context, *MoveCopyReq) (*MoveCopyRes, error) Remove(context.Context, *RemoveReq) (*Empty, error) Put(context.Context, *PutReq) (*PutRes, error) RefreshAll(context.Context, *Empty) (*Empty, error) GetSupportedDrivers(context.Context, *Empty) (*GetSupportedDriversRes, error) // contains filtered or unexported methods }
StorageServer is the server API for Storage service. All implementations must embed UnimplementedStorageServer for forward compatibility
type StringArr ¶
type StringArr struct { S []string `protobuf:"bytes,1,rep,name=s,proto3" json:"s,omitempty"` // contains filtered or unexported fields }
func (*StringArr) Descriptor
deprecated
func (*StringArr) ProtoMessage ¶
func (*StringArr) ProtoMessage()
func (*StringArr) ProtoReflect ¶
func (x *StringArr) ProtoReflect() protoreflect.Message
type UnimplementedStorageServer ¶
type UnimplementedStorageServer struct { }
UnimplementedStorageServer must be embedded to have forward compatible implementations.
func (UnimplementedStorageServer) Copy ¶
func (UnimplementedStorageServer) Copy(context.Context, *MoveCopyReq) (*MoveCopyRes, error)
func (UnimplementedStorageServer) GetDriverAddtion ¶
func (UnimplementedStorageServer) GetDriverAddtion(context.Context, *GetDriverAddtionReq) (*GetDriverAddtionRes, error)
func (UnimplementedStorageServer) GetDriverConfig ¶
func (UnimplementedStorageServer) GetDriverConfig(context.Context, *GetDriverConfigReq) (*GetDriverConfigRes, error)
func (UnimplementedStorageServer) GetLink ¶
func (UnimplementedStorageServer) GetLink(context.Context, *GetLinkReq) (*GetLinkRes, error)
func (UnimplementedStorageServer) GetSupportedDrivers ¶
func (UnimplementedStorageServer) GetSupportedDrivers(context.Context, *Empty) (*GetSupportedDriversRes, error)
func (UnimplementedStorageServer) Mkdir ¶
func (UnimplementedStorageServer) Mkdir(context.Context, *MakeDirReq) (*Empty, error)
func (UnimplementedStorageServer) Move ¶
func (UnimplementedStorageServer) Move(context.Context, *MoveCopyReq) (*MoveCopyRes, error)
func (UnimplementedStorageServer) RefreshAll ¶
type UnsafeStorageServer ¶
type UnsafeStorageServer interface {
// contains filtered or unexported methods
}
UnsafeStorageServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StorageServer will result in compilation errors.