Documentation ¶
Overview ¶
Package proxy provides support for fetching modules from a Go module proxy.
Index ¶
Constants ¶
View Source
const ( // The Go toolchain module path StdlibModulePath = "std" // The Go toolchain module path ToolchainModulePath = "golang.org/toolchain" )
Variables ¶
View Source
var ( // ErrProxyTimedOut indicates that a request to the module proxy timed out. ErrProxyTimedOut = errors.New("proxy timed out") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // URL of the module proxy web server. URL string // Client used for HTTP requests. HTTPClient *http.Client // MaxZipSize is the maximum zip file size allowed for reading. MaxZipSize int64 }
Client fetches Go modules from a module proxy.
Click to show internal directories.
Click to hide internal directories.