Involved Source Files
Package index provides a client for communicating with the module index.
test_helper.go
Package-Level Type Names (only one, which is exported)
/* sort exporteds by: | */
A Client is used by the worker service to communicate with the module index.
client used for HTTP requests. It is mutable for testing purposes.
URL of the module index
GetVersions queries the index for new versions.
(*T) pollURL(since time.Time, limit int) string
func New(rawurl string) (_ *Client, err error)
func SetupTestIndex(t *testing.T, versions []*internal.IndexVersion) (*Client, func())
Package-Level Functions (total 2, both are exported)
New constructs a *Client using the provided rawurl, which is expected to
be an absolute URI that can be directly passed to http.Get.
SetupTestIndex creates a module index for testing using the given version
map for data. It returns a function for tearing down the index server after
the test is completed, and a Client for interacting with the test index.
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.