transport

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

README

Transport

Contains the server-side code for talking to the "client," which is either the server itself or a remote client binary.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InMemoryClientOptions added in v0.2.0

func InMemoryClientOptions(handler *grpcserver.Handler) []grpc.DialOption

InMemoryClientOptions primes an in-memory (bufconn) connection on the given gRPC handler and returns the dial options for an in-process teamclient of it.

Call this ONLY for the embedded local console. A network daemon must never prime a bufconn: the handler decides in-memory-vs-TCP by whether a bufconn is primed, so a primed daemon would serve the in-memory pipe instead of binding its TCP address.

func NewTeamserver

func NewTeamserver() (team *server.Server, handler *grpcserver.Handler, err error)

NewTeamserver builds an AIMS teamserver and its transport stacks (TCP+mTLS gRPC by default, plus the opt-in Tailscale variant), WITHOUT starting any listener and WITHOUT priming an in-memory connection. It returns the teamserver and its default gRPC handler; all errors are critical.

Crucially, this does NOT open the in-memory bufconn. Priming a bufconn on the default handler would make a network daemon's Listen() serve that in-memory pipe instead of binding the requested TCP address. The in-memory teamclient connection is set up separately, and only for the embedded local console, via InMemoryClientOptions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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