Documentation ¶
Overview ¶
filer
weed master
weed volume
weedo.go
Index ¶
- func AssignUpload(filename, mimeType string, file io.Reader) (fid string, size int64, err error)
- func Delete(fid string, count int) (err error)
- type Client
- func (c *Client) AssignUpload(filename, mimeType string, file io.Reader) (fid string, size int64, err error)
- func (c *Client) AssignUploadTK(filename string, r io.Reader, fileSize int) (fid string, err error)
- func (c *Client) Delete(fid string, count int) (err error)
- func (c *Client) Filer(url string) *Filer
- func (c *Client) GetUrl(fid string) (publicUrl, url string, err error)
- func (c *Client) Master() *Master
- func (c *Client) UploadFileTK(fullPath string) (fid string, err error)
- func (c *Client) Volume(volumeId, collection string) (*Volume, error)
- type Dir
- type Fid
- type File
- type Filer
- type Master
- func (m *Master) Assign() (string, error)
- func (m *Master) AssignN(count int) (fid string, err error)
- func (m *Master) GC(threshold float64) error
- func (m *Master) Grow(count int, collection, replica, dataCenter string) error
- func (m *Master) Status() (err error)
- func (m *Master) Submit(filename, mimeType string, file io.Reader) (fid string, size int64, err error)
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignUpload ¶
First, contact with master server and assign a fid, then upload to volume server It is same as the follow steps curl http://localhost:9333/dir/assign curl -F file=@example.jpg http://127.0.0.1:8080/3,01637037d6
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AssignUpload ¶
func (*Client) AssignUploadTK ¶
uinsg time/cookie as Fid
func (*Client) UploadFileTK ¶
Assign Fid using timekey.Fid
type Dir ¶
type Master ¶
type Master struct {
Url string
}
Click to show internal directories.
Click to hide internal directories.