retrieve

package
v0.0.0-...-e76006b Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultClient = &Client{
	IndexUrl: "https://index.golang.org/index",
	ProxyUrl: "https://proxy.golang.org",
	Parallel: 200,
	Timeout:  20 * time.Second,
	http: &http.Client{
		Timeout: 20 * time.Second,
	},
}

DefaultClient is a client that uses the default golang.org index/proxy

Functions

This section is empty.

Types

type Client

type Client struct {
	IndexUrl string
	ProxyUrl string
	Parallel int
	Timeout  time.Duration
	// contains filtered or unexported fields
}

Client holds info needed to identify servers

func (*Client) Index

func (c *Client) Index() (*gomodstats.Store, error)

Index only queries the index to discover modules/versions

func (*Client) ProxyMeta

func (c *Client) ProxyMeta(store *gomodstats.Store) (*gomodstats.Store, []error)

ProxyMeta fills in additional metadata from quering the module proxy such as more versions, modfile, vcs (x)

Jump to

Keyboard shortcuts

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