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)
Click to show internal directories.
Click to hide internal directories.