paramclient

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package paramclient reaches a published PartSpec corpus over the contract's PartSpecService, as a param.Fetcher (agni issue 749). It is the transport adapter only; the caching, the generation check and the rule that an unreachable corpus is an error rather than an unseeded part all live in param.Remote, which wraps it.

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
}

Client is a param.Fetcher over a PartSpecService at a base URL, such as a running `agnids serve`.

func New

func New(baseURL string) *Client

New returns a Client for the PartSpecService served at baseURL.

func (*Client) BatchGet

func (c *Client) BatchGet(ctx context.Context, mpns []string) ([]*parampb.PartSpec, uint64, error)

BatchGet implements param.Fetcher.

func (*Client) Generation

func (c *Client) Generation(ctx context.Context) (uint64, error)

Generation implements param.Fetcher.

Jump to

Keyboard shortcuts

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