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-20250218150137-224a1368cf02 (latest)
Published
Feb 18, 2025
Platform
linux/amd64
Imports
11 packages
Last checked
2 months ago

Tools for package owners.