Documentation ¶
Index ¶
- Constants
- Variables
- type BlockListJSON
- type Client
- func (s *Client) FileList(path, order, by string) (FileDirectoryList, error)
- func (s *Client) SetDebug(debug bool) *Client
- func (s *Client) SetUserAgent(ua string) *Client
- func (s *Client) Setup(bduss, stoken string) *Client
- func (s *Client) Share(paths []string, pwd string, period int) (*Shared, error)
- func (s *Client) ShareCancel(shareIds []int64) error
- func (s *Client) ShareList(page int) ([]ShareRecordInfo, error)
- func (s *Client) ShareURLInfo(shareID int64) (*ShareURLInfo, error)
- type ErrResult
- type FileDirectory
- type FileDirectoryList
- type PResultErr
- type ShareRecordInfo
- type ShareURLInfo
- type Shared
Constants ¶
View Source
const ( DefaultUserAgent = "" /* 135-byte string literal not displayed */ PAppid = "778750" )
Variables ¶
View Source
var ( DefaultBaseURL = string([]byte{0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x70, 0x61, 0x6e, 0x2e, 0x62, 0x61, 0x69, 0x64, 0x75, 0x2e, 0x63, 0x6f, 0x6d}) PUseragent = string([]byte{0x73, 0x6f, 0x66, 0x74, 0x78, 0x6d, 0x3b, 0x6e, 0x65, 0x74, 0x64, 0x69, 0x73, 0x6b}) PBaseurl = string([]byte{0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x70, 0x63, 0x73, 0x2e, 0x62, 0x61, 0x69, 0x64, 0x75, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x73, 0x74, 0x2f, 0x32, 0x2e, 0x30, 0x2f, 0x70, 0x63, 0x73}) )
Functions ¶
This section is empty.
Types ¶
type BlockListJSON ¶
type BlockListJSON struct {
BlockList []string `json:"block_list"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) FileList ¶
func (s *Client) FileList(path, order, by string) (FileDirectoryList, error)
func (*Client) SetUserAgent ¶
func (*Client) ShareCancel ¶
func (*Client) ShareURLInfo ¶
func (s *Client) ShareURLInfo(shareID int64) (*ShareURLInfo, error)
type FileDirectory ¶
type FileDirectory struct { FsID int64 `json:"fs_id"` AppID int64 `json:"app_id"` Path string `json:"path"` Filename string `json:"server_filename"` Ctime int64 `json:"ctime"` Mtime int64 `json:"mtime"` BlockListJSON Size int64 `json:"size"` IsDirInt int8 `json:"isdir"` IfHasSubDirInt int8 `json:"ifhassubdir"` }
type FileDirectoryList ¶
type FileDirectoryList []*FileDirectory
type PResultErr ¶
type ShareRecordInfo ¶
type ShareRecordInfo struct {}
type ShareURLInfo ¶
type ShareURLInfo struct {}
Click to show internal directories.
Click to hide internal directories.