Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stasher ¶
Stasher has the job of taking a module from an upstream entity and stashing it to a Storage Backend.
func New ¶
New returns a plain stasher that takes a module from a download.Protocol and stashes it into a backend.Storage.
func WithSingleflight ¶
WithSingleflight returns a singleflight stasher. This two clients make two subsequent requests to stash a module, then it will only do it once and give the first response to both the first and the second client.
Click to show internal directories.
Click to hide internal directories.