Documentation ¶
Index ¶
- Constants
- type Addition
- type Conf
- type ILanZou
- func (d *ILanZou) Config() driver.Config
- func (d *ILanZou) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (d *ILanZou) Drop(ctx context.Context) error
- func (d *ILanZou) GetAddition() driver.Additional
- func (d *ILanZou) Init(ctx context.Context) error
- func (d *ILanZou) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *ILanZou) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *ILanZou) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error)
- func (d *ILanZou) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (d *ILanZou) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) (model.Obj, error)
- func (d *ILanZou) Remove(ctx context.Context, obj model.Obj) error
- func (d *ILanZou) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error)
- type ListItem
- type ListResp
- type Part
- type UploadResultResp
Constants ¶
View Source
const DefaultPartSize = 1024 * 1024 * 8
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ILanZou ¶
func (*ILanZou) GetAddition ¶
func (d *ILanZou) GetAddition() driver.Additional
type ListItem ¶
type ListItem struct { IconId int `json:"iconId"` IsAmt int `json:"isAmt"` FolderDesc string `json:"folderDesc,omitempty"` AddTime string `json:"addTime"` FolderId int64 `json:"folderId"` ParentId int64 `json:"parentId"` ParentName string `json:"parentName"` NoteType int `json:"noteType,omitempty"` UpdTime string `json:"updTime"` FolderIcon string `json:"folderIcon,omitempty"` FolderName string `json:"folderName,omitempty"` FileType int `json:"fileType"` Status int `json:"status"` FileName string `json:"fileName,omitempty"` FileStars float64 `json:"fileStars,omitempty"` IsFileDownload int `json:"isFileDownload,omitempty"` FileComments int `json:"fileComments,omitempty"` FileSize int64 `json:"fileSize,omitempty"` FileIcon string `json:"fileIcon,omitempty"` FileDownloads int `json:"fileDownloads,omitempty"` FileUrl interface{} `json:"fileUrl"` FileLikes int `json:"fileLikes,omitempty"` FileId int64 `json:"fileId,omitempty"` }
type UploadResultResp ¶
Click to show internal directories.
Click to hide internal directories.