mirror of
https://github.com/gomods/athens
synced 2026-02-03 14:20:31 +00:00
* Athens: introduce singleflight * fix ci * small fixes * Remove unnecessary method * simplify folder structure * dcoument stasher iface * fixes * Fix olympus * Remove Version from Download Protocol * fix olympus * refactor fetcher * consolodate wrapping styles * fix olympus * Further refactoring * fix typo
15 lines
340 B
Go
15 lines
340 B
Go
package module
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/gomods/athens/pkg/storage"
|
|
)
|
|
|
|
// Fetcher fetches module from an upstream source
|
|
type Fetcher interface {
|
|
// Fetch downloads the sources from an upstream and returns the corresponding
|
|
// .info, .mod, and .zip files.
|
|
Fetch(ctx context.Context, mod, ver string) (*storage.Version, error)
|
|
}
|