Documentation
¶
Index ¶
- Constants
- func CalcAcwScV2(html string) (string, error)
- func HexXor(hex1, hex2 string) string
- func IsNumber(str string) bool
- func MustParseTime(str string) time.Time
- func RemoveNotes(html []byte) []byte
- func SizeStrToInt64(size string) int64
- func Unbox(hex string) string
- type Addition
- type FileInfoAndUrlByShareUrl
- type FileOrFolder
- type FileOrFolderByShareUrl
- type FileOrFolderByShareUrlResp
- type FileShare
- type FileShareInfoAndUrlResp
- type FileShareResp
- type FilesOrFoldersResp
- type LanZou
- func (d *LanZou) Config() driver.Config
- func (d *LanZou) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *LanZou) Drop(ctx context.Context) error
- func (d *LanZou) GetAddition() driver.Additional
- func (d *LanZou) GetFileOrFolderByShareUrl(ctx context.Context, downID, pwd string) ([]model.Obj, error)
- func (d *LanZou) GetFiles(ctx context.Context, folderID string) ([]model.Obj, error)
- func (d *LanZou) Init(ctx context.Context, storage model.Storage) error
- func (d *LanZou) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *LanZou) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *LanZou) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *LanZou) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *LanZou) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error
- func (d *LanZou) Remove(ctx context.Context, obj model.Obj) error
- func (d *LanZou) Rename(ctx context.Context, srcObj model.Obj, newName string) error
Constants ¶
View Source
const DAY time.Duration = 84600000000000
Variables ¶
This section is empty.
Functions ¶
func CalcAcwScV2 ¶
在页面被过多访问或其他情况下,有时候会先返回一个加密的页面,其执行计算出一个acw_sc__v2后放入页面后再重新访问页面才能获得正常页面 若该页面进行了js加密,则进行解密,计算acw_sc__v2,并加入cookie
func MustParseTime ¶
func SizeStrToInt64 ¶
Types ¶
type Addition ¶
type FileInfoAndUrlByShareUrl ¶
type FileInfoAndUrlByShareUrl struct {}
通过分享链接获取文件信息和下载链接
func (*FileInfoAndUrlByShareUrl) ToObj ¶
func (f *FileInfoAndUrlByShareUrl) ToObj() model.Obj
type FileOrFolder ¶
type FileOrFolder struct { Name string `json:"name"` // 文件通用 ID string `json:"id"` NameAll string `json:"name_all"` Size string `json:"size"` Time string `json:"time"` // 文件夹 FolID string `json:"fol_id"` }
func (*FileOrFolder) ToObj ¶
func (f *FileOrFolder) ToObj() model.Obj
type FileOrFolderByShareUrl ¶
type FileOrFolderByShareUrl struct { //PIco int `json:"p_ico"` //T int `json:"t"` IsFloder bool }
func (*FileOrFolderByShareUrl) ToObj ¶
func (f *FileOrFolderByShareUrl) ToObj() model.Obj
type FileOrFolderByShareUrlResp ¶
type FileOrFolderByShareUrlResp struct {
}type FileShareInfoAndUrlResp ¶
func (*FileShareInfoAndUrlResp[T]) GetBaseUrl ¶
func (u *FileShareInfoAndUrlResp[T]) GetBaseUrl() string
func (*FileShareInfoAndUrlResp[T]) GetDownloadUrl ¶
func (u *FileShareInfoAndUrlResp[T]) GetDownloadUrl() string
type FileShareResp ¶
type FileShareResp struct {
}type FilesOrFoldersResp ¶
type FilesOrFoldersResp struct {
Text []FileOrFolder `json:"text"`
}
type LanZou ¶
func (*LanZou) GetAddition ¶
func (d *LanZou) GetAddition() driver.Additional
func (*LanZou) GetFileOrFolderByShareUrl ¶
func (d *LanZou) GetFileOrFolderByShareUrl(ctx context.Context, downID, pwd string) ([]model.Obj, error)
通过分享链接获取文件或文件夹,如果是文件则会返回下载链接
Click to show internal directories.
Click to hide internal directories.