mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
* Implementing a MongoDB backed CDN getter Fixes https://github.com/gomods/athens/issues/49 * removing the base URL from the CDN getter
12 lines
269 B
Go
12 lines
269 B
Go
package fake
|
|
|
|
// Getter is a (./pkg/cdn).Getter implementation that always returns URL
|
|
type Getter struct {
|
|
URL string
|
|
}
|
|
|
|
// Get is the cdn.Getter implementation that always returns g.URL, nil
|
|
func (g *Getter) Get(module string) (string, error) {
|
|
return g.URL, nil
|
|
}
|