negotiate

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Overview

Package negotiate resolves the contract the client declared. v0.1 matches the contract-version header value verbatim against the loaded bundle; missing, blank, or unknown ⇒ a typed unsupported_contract_version error, never a silent best-guess. Keying off the proto package version for defense-in-depth is v0.2.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolve

func Resolve(b *bundle.Bundle, headerValue string) (*bundle.Contract, *wireerror.Error)

Resolve returns the contract for headerValue, or a typed error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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