package client

import "golang.org/x/pkgsite/internal/frontend/client"

Package client provides a client for interacting with the frontend. It is only used for tests.

Index

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

A Client for interacting with the frontend. This is only used for tests.

func New

func New(url string) *Client

New creates a new frontend client. This is only used for tests.

func (*Client) GetVersions

func (c *Client) GetVersions(pkgPath string) (_ *versions.VersionsDetails, err error)

GetVersions returns a VersionsDetails for the specified pkgPath. This is only used for tests.

func (*Client) Search

func (c *Client) Search(q, mode string) (_ *frontend.SearchPage, err error)

Search returns a SearchPage for a search query and mode.

Source Files

client.go

Version
v0.0.0-20250704161611-eac0bf970406 (latest)
Published
Jul 4, 2025
Platform
linux/amd64
Imports
11 packages
Last checked
5 days ago

Tools for package owners.