negotiate

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package negotiate resolves the contract the client declared. It 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.

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