Documentation ¶
Index ¶
- Variables
- func DeleteFile(serverPath string) (err error)
- func GetSign() (ctx map[string]interface{}, err error)
- func LinkDirect(fid string) (link string, err error)
- func ListDir(path string) (list interface{}, err error)
- func SaveFileByMd5(md5, sliceMd5, path string, contentLength int64) (serverPath, fid string, fileSize int64, err error)
- func ShareFile(fid, secret string) (link, sec string, err error)
- func UploadText(content string, path string) (fid, serverPath string, err error)
- func Usage() (result interface{}, err error)
- func VideoProxy(writer http.ResponseWriter, request *http.Request, targetLink string)
- type LoginSessionStruct
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 SaveFileByMd5 ¶
func SaveFileByMd5(md5, sliceMd5, path string, contentLength int64) (serverPath, fid string, fileSize int64, err error)
md5转存
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
Click to show internal directories.
Click to hide internal directories.