Versions in this module Expand all Collapse all v1 v1.0.1 Mar 2, 2019 v1.0.0 Nov 19, 2018 Changes in this version + var ErrNoRange = errors.New("server does not support range requests") + var ErrStoreLimit = errors.New("store size limit reached") + var ErrValidationFailed = errors.New("validation failed") + type HTTPReaderAt struct + func New(client *http.Client, req *http.Request, bs Store) (ra *HTTPReaderAt, err error) + func (ra *HTTPReaderAt) ContentType() string + func (ra *HTTPReaderAt) LastModified() string + func (ra *HTTPReaderAt) ReadAt(p []byte, off int64) (n int, err error) + func (ra *HTTPReaderAt) Size() int64 + type LimitedStore struct + func NewLimitedStore(primary Store, limit int64, secondary Store) *LimitedStore + func (s *LimitedStore) Close() error + func (s *LimitedStore) ReadAt(p []byte, off int64) (n int, err error) + func (s *LimitedStore) ReadFrom(r io.Reader) (n int64, err error) + type Store interface + func NewDefaultStore() Store + type StoreFile struct + func NewStoreFile() *StoreFile + func (s *StoreFile) Close() error + func (s *StoreFile) ReadAt(p []byte, off int64) (n int, err error) + func (s *StoreFile) ReadFrom(r io.Reader) (n int64, err error) + func (s *StoreFile) Size() int64 + type StoreMemory struct + func NewStoreMemory() *StoreMemory + func (s *StoreMemory) Close() error + func (s *StoreMemory) ReadAt(p []byte, off int64) (n int, err error) + func (s *StoreMemory) ReadFrom(r io.Reader) (n int64, err error) + func (s *StoreMemory) Size() int64