Versions in this module Expand all Collapse all v0 v0.0.1 Nov 28, 2024 Changes in this version + const DAY + var ErrCookieExpiration = errors.New("cookie expiration") + var ErrFileNotExist = errors.New("file does not exist") + var ErrFileShareCancel = errors.New("file sharing cancellation") + func CalcAcwScV2(html string) (string, error) + func CookieToString(cookies []*http.Cookie) string + func GetExpirationTime(url string) (etime time.Duration) + func HexXor(hex1, hex2 string) string + func IsNumber(str string) bool + func MustParseTime(str string) time.Time + func RemoveNotes(html string) string + func SizeStrToInt64(size string) int64 + func Unbox(hex string) string + type Addition struct + Account string + BaseUrl string + Cookie string + Password string + RepairFileInfo bool + SharePassword string + ShareUrl string + Type string + UserAgent string + func (a *Addition) IsAccount() bool + func (a *Addition) IsCookie() bool + type FileOrFolder struct + FolID string + ID string + Name string + NameAll string + Size string + Time string + func (f *FileOrFolder) CreateTime() time.Time + func (f *FileOrFolder) GetHash() utils.HashInfo + func (f *FileOrFolder) GetID() string + func (f *FileOrFolder) GetName() string + func (f *FileOrFolder) GetPath() string + func (f *FileOrFolder) GetShareInfo() *FileShare + func (f *FileOrFolder) GetSize() int64 + func (f *FileOrFolder) IsDir() bool + func (f *FileOrFolder) ModTime() time.Time + func (f *FileOrFolder) SetShareInfo(fs *FileShare) + type FileOrFolderByShareUrl struct + Duan string + ID string + IsFloder bool + NameAll string + Pwd string + Size string + Time string + Url string + func (f *FileOrFolderByShareUrl) CreateTime() time.Time + func (f *FileOrFolderByShareUrl) GetHash() utils.HashInfo + func (f *FileOrFolderByShareUrl) GetID() string + func (f *FileOrFolderByShareUrl) GetName() string + func (f *FileOrFolderByShareUrl) GetPath() string + func (f *FileOrFolderByShareUrl) GetSize() int64 + func (f *FileOrFolderByShareUrl) IsDir() bool + func (f *FileOrFolderByShareUrl) ModTime() time.Time + type FileOrFolderByShareUrlResp struct + Text []FileOrFolderByShareUrl + type FileShare struct + Des string + FID string + IsNewd string + Name string + NewUrl string + Onof string + Pwd string + Taoc string + type FileShareInfoAndUrlResp struct + Dom string + Inf T + URL string + func (u *FileShareInfoAndUrlResp[T]) GetBaseUrl() string + func (u *FileShareInfoAndUrlResp[T]) GetDownloadUrl() string + type LanZou struct + func (d *LanZou) Config() driver.Config + func (d *LanZou) Drop(ctx context.Context) error + func (d *LanZou) GetAddition() driver.Additional + func (d *LanZou) GetAllFiles(folderID string) ([]model.Obj, error) + func (d *LanZou) GetFileOrFolderByShareUrl(shareID, pwd string) ([]model.Obj, error) + func (d *LanZou) GetFiles(folderID string) ([]FileOrFolder, error) + func (d *LanZou) GetFilesByShareUrl(shareID, pwd string) (file *FileOrFolderByShareUrl, err error) + func (d *LanZou) GetFolderByShareUrl(shareID, pwd string) ([]FileOrFolderByShareUrl, error) + func (d *LanZou) GetFolders(folderID string) ([]FileOrFolder, error) + func (d *LanZou) Init(ctx context.Context) (err 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) Login() ([]*http.Cookie, error) + func (d *LanZou) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error) + func (d *LanZou) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error) + func (d *LanZou) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) (model.Obj, error) + func (d *LanZou) Remove(ctx context.Context, obj model.Obj) error + func (d *LanZou) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error) + type RespInfo struct + Info T + type RespText struct + Text T