package index

Import Path
	golang.org/x/pkgsite/internal/index (on go.dev)

Dependency Relation
	imports 14 packages, and imported by 2 packages

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. GetVersions queries the index for new versions. 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.