Documentation
¶
Overview ¶
Package goproxy implements proxies.CacheProxy for Go modules.
It implements the Go module proxy protocol (GOPROXY spec) and caches immutable responses (.info, .mod, .zip) on disk. Mutable endpoints (list, @latest) are passed through to the upstream proxy without caching.
ephemerd runs one shared instance on the bridge gateway IP so all job containers can reach it. Containers see it as GOPROXY=http://<gateway>:<port>. Jobs have no write access to the cache — they just make HTTP requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
CacheDir string // on-disk cache directory
Upstream string // upstream proxy URL (default: https://proxy.golang.org)
ListenAddr string // address to listen on (e.g., "10.88.0.1:8082")
Cleanup bool // wipe cache dir on Stop
Log *slog.Logger
}
Config for the Go module caching proxy.
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy is a caching Go module proxy server.
Click to show internal directories.
Click to hide internal directories.