tusd/handler_test.go

23 lines
425 B
Go
Raw Normal View History

package tusd
import (
"io"
)
type zeroStore struct{}
func (store zeroStore) NewUpload(info FileInfo) (string, error) {
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
}