Versions in this module Expand all Collapse all v0 v0.0.1 Oct 29, 2014 Changes in this version + func NewHash() hash.Hash + type ContentChallenge struct + RangeLength int64 + RangeStart int64 + RequestId string + type ContentChallengeError struct + Req ContentChallenge + func (e *ContentChallengeError) Error() string + type ContentChallengeResponse struct + Hash string + RequestId string + func NewContentChallengeResponse(chal *ContentChallenge, r io.ReadSeeker) (*ContentChallengeResponse, error) + type ReadSeekCloser interface + type Store struct + func New(db *mgo.Database, prefix string) *Store + func (s *Store) Open(name string) (ReadSeekCloser, int64, error) + func (s *Store) Put(r io.Reader, name string, size int64, hash string, ...) (*ContentChallenge, error) + func (s *Store) PutUnchallenged(r io.Reader, name string, size int64, hash string) error + func (s *Store) Remove(name string) error