Documentation ¶
Overview ¶
Package mod provides access to Go module metadata.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModuleDatabase ¶
func NewModuleCache ¶
func NewModuleCache(mod ModuleDatabase, maxentries int) ModuleDatabase
NewModuleCache provides an in-memory cache in front of a ModuleDatabase.
func NewModuleProxy ¶
func NewModuleProxy(c *http.Client, u *url.URL) ModuleDatabase
NewModuleProxy builds a module database backed by the module proxy API at the supplied base URL, using the given HTTP client for requests.
func NewOfficialModuleProxy ¶
func NewOfficialModuleProxy(c *http.Client) ModuleDatabase
NewOfficialModuleProxy builds a module database backed by the official module proxy at https://proxy.golang.org, using the given client for requests.
Click to show internal directories.
Click to hide internal directories.