Documentation ¶
Overview ¶
Package index provides a client for communicating with the module index.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
A Client is used by the worker service to communicate with the module index.
func New ¶
New constructs a *Client using the provided rawurl, which is expected to be an absolute URI that can be directly passed to http.Get.
func SetupTestIndex ¶
func SetupTestIndex(t *testing.T, versions []*internal.IndexVersion) (*Client, func())
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.
Click to show internal directories.
Click to hide internal directories.