2015-02-01 13:57:57 +00:00
|
|
|
package tusd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"io"
|
|
|
|
)
|
|
|
|
|
|
|
|
type zeroStore struct{}
|
|
|
|
|
2015-02-16 16:53:50 +00:00
|
|
|
func (store zeroStore) NewUpload(info FileInfo) (string, error) {
|
2015-02-01 13:57:57 +00:00
|
|
|
return "", nil
|
|
|
|
}
|
|
|
|
func (store zeroStore) WriteChunk(id string, offset int64, src io.Reader) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (store zeroStore) GetInfo(id string) (FileInfo, error) {
|
|
|
|
return FileInfo{}, nil
|
|
|
|
}
|
|
|
|
|
2015-02-06 21:05:33 +00:00
|
|
|
func (store zeroStore) GetReader(id string) (io.Reader, error) {
|
|
|
|
return nil, ErrNotImplemented
|
|
|
|
}
|