Documentation ¶
Index ¶
- Constants
- Variables
- func Param(r *http.Request, key string) string
- type AssignResult
- type Cid
- type Client
- func (c *Client) Close() error
- func (c *Client) Delete(cid string) (*Response, error)
- func (c *Client) GetVolumePublicUrls(vid string) (urls []string, err error)
- func (c *Client) Process(w http.ResponseWriter, r *http.Request)
- func (c *Client) Upload(cid string, pu *File) (*Response, error)
- func (c *Client) UploadJSON(cid string, bean interface{}) (*Response, error)
- type Config
- type File
- type Response
- type UploadResult
- type VolumeCache
- type VolumeStatus
Constants ¶
View Source
const PairNamePrefix = "Seaweed-"
Variables ¶
View Source
var ErrCidNotFound = errors.New("cid not found")
Functions ¶
Types ¶
type AssignResult ¶
type AssignResult struct { FileID string `json:"fid,omitempty"` URL string `json:"url,omitempty"` PublicURL string `json:"publicUrl,omitempty"` Count int `json:"count,omitempty"` Error string `json:"error,omitempty"` }
AssignResult contains assign result. Raw response: {"fid":"1,0a1653fd0f","url":"localhost:8899","publicUrl":"localhost:8899","count":1,"error":""}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetVolumePublicUrls ¶
type File ¶
type UploadResult ¶
type VolumeCache ¶
Click to show internal directories.
Click to hide internal directories.