interop

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 2 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 interop plans explicit transport connections between CTX peers. It is metadata-only: it never discovers, launches, authenticates or retries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

type Bridge struct {
	Name     string                `json:"name"`
	Frontend plugin.BackendProfile `json:"frontend"`
	Backend  plugin.BackendProfile `json:"backend"`
}

Bridge declares an installed, reviewed translator. Frontend faces the host; Backend faces the guest. Its public features must not overstate either side.

type Requirements

type Requirements struct {
	Concurrent      bool
	NativeStreaming bool
	NativeCallbacks bool
}

type Route

type Route struct {
	Protocol        string                `json:"protocol"`
	Host            plugin.BackendProfile `json:"host"`
	Guest           plugin.BackendProfile `json:"guest"`
	Bridge          string                `json:"bridge,omitempty"`
	Concurrent      bool                  `json:"concurrent"`
	NativeStreaming bool                  `json:"nativeStreaming"`
	NativeCallbacks bool                  `json:"nativeCallbacks"`
}

func Resolve

func Resolve(hosts, guests []plugin.BackendProfile, bridges []Bridge, w Requirements) (Route, error)

Resolve selects direct connections first, then a single declared bridge, in caller preference order. Names identify wire bindings, never source languages. Protocols must match end-to-end; this resolver does not translate versions. Requirements describe native transport features, not domain capabilities such as CTX pull-stream operations (which can run over unary transports).

Jump to

Keyboard shortcuts

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