Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChannelReader ¶
func NewChannelReader(reader io.ReadCloser) *channelReader
Types ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
func NewDownloader ¶
func NewDownloader(keyFetcher KeyFetcher) *Downloader
func (*Downloader) ServeHTTP ¶
func (d *Downloader) ServeHTTP(w http.ResponseWriter, r *http.Request)
type KeyFetcher ¶
type KeyFetcher interface {
Fetch(key string) *ReadLocker
}
type KeyStorage ¶
type KeyStorer ¶
type KeyStorer struct {
// contains filtered or unexported fields
}
func NewKeyStorer ¶
func NewKeyStorer() *KeyStorer
func (*KeyStorer) Fetch ¶
func (k *KeyStorer) Fetch(key string) *ReadLocker
type ReadLocker ¶
type Uploader ¶
type Uploader struct {
// contains filtered or unexported fields
}
func NewUploader ¶
func NewUploader(keyStorage KeyStorage, timeout time.Duration) *Uploader
Click to show internal directories.
Click to hide internal directories.