Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignResp ¶
type AssignResp struct { Fid string `json:"fid"` URL string `json:"url"` PublicURL string `json:"publicUrl"` Count int `json:"count"` Error string `json:"error"` }
func Assign ¶
func Assign(weedAddr string) (*AssignResp, error)
Assign gets the designated url to store the media
type UploadResp ¶
type UploadResp struct { Name int `json:"name"` Size int `json:"size"` ETag string `json:"eTag"` Error string `json:"error"` }
func Upload ¶
Upload sends the form to the URL courtesy of https://stackoverflow.com/a/20397167/6056991
Click to show internal directories.
Click to hide internal directories.