client

package
v0.0.0-...-1332632 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2025 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

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

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 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL