Documentation ¶
Index ¶
- Constants
- func Call(call string, cookie *http.Cookie, values map[string]string) ([]byte, error)
- func Download(call, id string) ([]byte, error)
- func Marshal(t Token) ([]byte, error)
- func MarshalList(t []Token) ([]byte, error)
- func Transfer(call, name, id string, data []byte, progress chan int) error
- type Client
- func (c Client) Create(div *dom.HTMLDivElement) error
- func (c Client) List(div *dom.HTMLDivElement) error
- func (c Client) Open(input *dom.HTMLInputElement, res *OpenResult)
- func (c Client) Single(id string) (Token, bool, error)
- func (c Client) Upload(p []byte, name, id string, progress *dom.HTMLDivElement) error
- func (c Client) Url() *url.URL
- type NoSuchToken
- type OpenResult
- type Token
Constants ¶
View Source
const ( ID = "id" File = "file" ReqList = "/list" ReqCreate = "/create" ReqUpload = "/upload" ReqSingle = "/single" ReqTransfer = "/transfer" ReqDownload = "/download" )
Variables ¶
This section is empty.
Functions ¶
func MarshalList ¶
Types ¶
type Client ¶
type Client struct{}
func (Client) Open ¶
func (c Client) Open(input *dom.HTMLInputElement, res *OpenResult)
type NoSuchToken ¶
type NoSuchToken struct{}
func (NoSuchToken) Error ¶
func (_ NoSuchToken) Error() string
type OpenResult ¶
func (*OpenResult) Get ¶
func (o *OpenResult) Get() *OpenResult
func (*OpenResult) Set ¶
func (o *OpenResult) Set(data []byte, name string)
type Token ¶
func UnmarshalList ¶
Click to show internal directories.
Click to hide internal directories.