service

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: MIT Imports: 1 Imported by: 1 module, 6 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 service defines the Service interface — the top-level abstraction that combines a Listener and a Handler to form a running proxy service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	// Serve starts the service and blocks until it is stopped or encounters
	// a fatal error.
	Serve() error
	// Addr returns the service's network address.
	Addr() net.Addr
	// Close stops the service and releases all resources.
	Close() error
}

Service is the top-level component in TNET. It wraps one Listener and one Handler: the Listener accepts inbound connections, and the Handler processes them by authenticating, routing, and forwarding traffic through a proxy chain. A running TNET instance is essentially a collection of Services.

Jump to

Keyboard shortcuts

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