cdn

package
v0.0.0-...-a6721f7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CDN

type CDN interface {
	Saver
	Getter
}

CDN represents access to a CDN for registry use

type Getter

type Getter interface {
	Get(baseURL, module string) (string, error)
}

Getter gets the details about a given baseURL & module and returns the base URL of the module metadata and content. For example, if gomods.io/my/module is requested by the 'vgo get' command, this might return 'https://mycdn.com/gomods.io/my/module'

Then, the following URLs would be available:

- https://mycdn.com/gomods.io/my/module/@v/list - https://mycdn.com/gomods.io/my/module/@v/{version}.info - https://mycdn.com/gomods.io/my/module/@v/{version}.mod - https://mycdn.com/gomods.io/my/module/@v/{version}.zip

type Saver

type Saver interface {
	Save(module string, version *storage.Version) error
}

Saver saves a module metadata & storage to its underlying storage

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL