inproc

package
v0.2.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package inproc is an in-memory gRPC transport. The built-in agent of the hub uses it to talk to the hub through the same contract as remote agents, without opening a network port.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transport

type Transport struct {
	// contains filtered or unexported fields
}

Transport connects gRPC clients and a gRPC server in the same process.

func New

func New() *Transport

New returns a Transport ready to use.

func (*Transport) Dial

func (t *Transport) Dial() (*grpc.ClientConn, error)

Dial returns a client connection to the server serving on Listener. The connection is in-memory, so no transport security is needed.

func (*Transport) Listener

func (t *Transport) Listener() net.Listener

Listener is the listener to pass to grpc.Server.Serve.

Jump to

Keyboard shortcuts

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