Files
Marwan Sulaiman ea96158f8f Athens: introduce Single Flight (#573)
* 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
2018-09-03 16:31:13 -04:00

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)
}