Help us shape the future of Go! Take the 2026 Go Developer Survey

internal/

directory
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0

Directories

Path Synopsis
Package benchmark holds the SDK's benchmarks that need only its exported API and the module's internal packages (docs/perf/benchmarks.md): B5, the whole call against its floor and the naive comparator; B4's Retry-After parse; B6's warm call over loopback; the header template's clone; and an empty loop.
Package benchmark holds the SDK's benchmarks that need only its exported API and the module's internal packages (docs/perf/benchmarks.md): B5, the whole call against its floor and the naive comparator; B4's Retry-After parse; B6's warm call over loopback; the header template's clone; and an empty loop.
Package codec is the SDK's JSON layer.
Package codec is the SDK's JSON layer.
Package engine holds the stages of a call that the root package's public types are built on.
Package engine holds the stages of a call that the root package's public types are built on.
Package h2gate is the SDK's transport: the stock net/http.Transport set up for one HTTP/2 connection per API host, with a cold-start gate and a header-write token in front of it.
Package h2gate is the SDK's transport: the stock net/http.Transport set up for one HTTP/2 connection per API host, with a cold-start gate and a header-write token in front of it.
Package testsupport holds the test doubles and measurement helpers the SDK's tests share: servers, listeners, dialers and a proxy for transport tests (LoopbackServer, SilentListener, RefusedAddr, GatedDialer, FakeH2CServer, Proxy); request and log doubles (Recorder, FakeAPI, LogRecorder); allocation measurement (Measure, MeasureMin, Spread, FloorCall); response bodies, from the module's testdata directory and generated (Fixture, UnknownAnswerFlood); and the fuzz targets' per-input bound and guard pages (BoundFuzzInput, NewGuard).
Package testsupport holds the test doubles and measurement helpers the SDK's tests share: servers, listeners, dialers and a proxy for transport tests (LoopbackServer, SilentListener, RefusedAddr, GatedDialer, FakeH2CServer, Proxy); request and log doubles (Recorder, FakeAPI, LogRecorder); allocation measurement (Measure, MeasureMin, Spread, FloorCall); response bodies, from the module's testdata directory and generated (Fixture, UnknownAnswerFlood); and the fuzz targets' per-input bound and guard pages (BoundFuzzInput, NewGuard).
naive
Package naive is the benchmark comparator of the SDK's performance criteria (docs/perf/frozen-budgets.md): a System One call written the obvious way, with a general-purpose JSON library and no SDK machinery.
Package naive is the benchmark comparator of the SDK's performance criteria (docs/perf/frozen-budgets.md): a System One call written the obvious way, with a general-purpose JSON library and no SDK machinery.
Package wire holds the plain values that a decoded response and a prepared question set are made of: answers, token usage, model cards, response metadata and the prepared question tables.
Package wire holds the plain values that a decoded response and a prepared question set are made of: answers, token usage, model cards, response metadata and the prepared question tables.

Jump to

Keyboard shortcuts

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