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.