transport

package
v0.60.3 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Unlicense Imports: 1 Imported by: 0

Documentation

Overview

Package transport defines the interface for pluggable network transports.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transport

type Transport interface {
	// Name returns the transport identifier (e.g., "tcp", "tls", "tor").
	Name() string
	// Start begins accepting connections through this transport.
	Start(ctx context.Context) error
	// Stop gracefully shuts down the transport.
	Stop(ctx context.Context) error
	// Addresses returns the addresses this transport is reachable on.
	Addresses() []string
}

Transport represents a network transport that serves the relay.

Jump to

Keyboard shortcuts

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