pan_api

package
v0.0.0-...-867eee7 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: LGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaiduUA = "netdisk;2.2.3;pc;pc-mac;10.14.5;macbaiduyunguanjia"

Functions

func DeleteFile

func DeleteFile(serverPath string) (err error)

func GetSign

func GetSign() (ctx map[string]interface{}, err error)

func LinkDirect

func LinkDirect(fid string) (link string, err error)

链接解析

func ListDir

func ListDir(path string) (list interface{}, err error)

获取目录下的文件(夹)

func SaveFileByMd5

func SaveFileByMd5(md5, sliceMd5, path string, contentLength int64) (serverPath, fid string, fileSize int64, err error)

md5转存

func ShareFile

func ShareFile(fid, secret string) (link, sec string, err error)

func UploadText

func UploadText(content string, path string) (fid, serverPath string, err error)

func Usage

func Usage() (result interface{}, err error)

获取网盘使用空间

func VideoProxy

func VideoProxy(writer http.ResponseWriter, request *http.Request, targetLink string)

Types

type LoginSessionStruct

type LoginSessionStruct struct {
	Avatar    string
	Username  string
	Sign      string
	Timestamp string
	Bdstoken  string
	Bduss     string
	// contains filtered or unexported fields
}
var LoginSession *LoginSessionStruct

Jump to

Keyboard shortcuts

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