Directories
¶
| Path | Synopsis |
|---|---|
|
Package admission defines the Admission interface for connection admission control, determining whether to allow or deny incoming connections.
|
Package admission defines the Admission interface for connection admission control, determining whether to allow or deny incoming connections. |
|
Package auth defines the Authenticator interface for verifying client identities.
|
Package auth defines the Authenticator interface for verifying client identities. |
|
Package bypass defines the Bypass interface for deciding whether a target address should skip the proxy chain and connect directly.
|
Package bypass defines the Bypass interface for deciding whether a target address should skip the proxy chain and connect directly. |
|
Package cache defines a generic key-value cache interface used across the TNET project — HTTP response caching, and (as consumers migrate) DNS responses, routes, and other []byte-serializable data.
|
Package cache defines a generic key-value cache interface used across the TNET project — HTTP response caching, and (as consumers migrate) DNS responses, routes, and other []byte-serializable data. |
|
Package chain defines the proxy chain interfaces — the core routing layer of TNET.
|
Package chain defines the proxy chain interfaces — the core routing layer of TNET. |
|
common
|
|
|
bufpool
Package bufpool provides a tiered sync.Pool for byte buffers, ranging from 128 bytes to 65 KB.
|
Package bufpool provides a tiered sync.Pool for byte buffers, ranging from 128 bytes to 65 KB. |
|
net
Package net provides a minimal shared Dialer interface used across the connector and dialer packages to avoid circular dependencies.
|
Package net provides a minimal shared Dialer interface used across the connector and dialer packages to avoid circular dependencies. |
|
Package connector defines interfaces for connecting to destination addresses from the final proxy node in a chain.
|
Package connector defines interfaces for connecting to destination addresses from the final proxy node in a chain. |
|
Package dialer defines the Dialer interface for establishing connections to the next-hop proxy server in a chain.
|
Package dialer defines the Dialer interface for establishing connections to the next-hop proxy server in a chain. |
|
Package handler defines the Handler interface for processing inbound connections — authenticating, routing, and forwarding traffic.
|
Package handler defines the Handler interface for processing inbound connections — authenticating, routing, and forwarding traffic. |
|
Package hop defines the Hop interface for selecting a node from a group of equivalent proxy nodes using load-balancing strategies.
|
Package hop defines the Hop interface for selecting a node from a group of equivalent proxy nodes using load-balancing strategies. |
|
Package hosts defines the HostMapper interface for static host-to-IP mappings.
|
Package hosts defines the HostMapper interface for static host-to-IP mappings. |
|
Package ingress defines the Ingress interface for hostname-based tunnel routing.
|
Package ingress defines the Ingress interface for hostname-based tunnel routing. |
|
Package limiter defines shared types and constants used by all limiter sub-packages (conn, rate, traffic).
|
Package limiter defines shared types and constants used by all limiter sub-packages (conn, rate, traffic). |
|
conn
Package conn defines connection-level limiter interfaces for controlling the number of active connections.
|
Package conn defines connection-level limiter interfaces for controlling the number of active connections. |
|
rate
Package rate defines rate-limiting interfaces for controlling the rate of new connections or requests.
|
Package rate defines rate-limiting interfaces for controlling the rate of new connections or requests. |
|
traffic
Package traffic defines bandwidth/traffic limiter interfaces for controlling data transfer rates.
|
Package traffic defines bandwidth/traffic limiter interfaces for controlling data transfer rates. |
|
Package listener defines the Listener interface for accepting incoming connections, analogous to net.Listener.
|
Package listener defines the Listener interface for accepting incoming connections, analogous to net.Listener. |
|
Package logger defines the structured logging interface and a global default logger that components use when no explicit logger is configured.
|
Package logger defines the structured logging interface and a global default logger that components use when no explicit logger is configured. |
|
Package metadata defines a key-value metadata store attached to every component in the TNET framework.
|
Package metadata defines a key-value metadata store attached to every component in the TNET framework. |
|
Package metrics defines a Prometheus-style metrics abstraction for exposing gauges, counters, and observers (histograms/summaries).
|
Package metrics defines a Prometheus-style metrics abstraction for exposing gauges, counters, and observers (histograms/summaries). |
|
Package observer defines the Observer interface for collecting observability events such as connection status and traffic statistics.
|
Package observer defines the Observer interface for collecting observability events such as connection status and traffic statistics. |
|
stats
Package stats defines the Stats interface for tracking connection and traffic counters (total connections, current connections, bytes, errors).
|
Package stats defines the Stats interface for tracking connection and traffic counters (total connections, current connections, bytes, errors). |
|
Package recorder defines the Recorder interface for capturing traffic data — hex dumps, HTTP body recording, and directional traffic logging.
|
Package recorder defines the Recorder interface for capturing traffic data — hex dumps, HTTP body recording, and directional traffic logging. |
|
Package registry defines a generic Registry interface used throughout TNET for plugin-style component registration and lookup.
|
Package registry defines a generic Registry interface used throughout TNET for plugin-style component registration and lookup. |
|
Package resolver defines the Resolver interface for DNS resolution.
|
Package resolver defines the Resolver interface for DNS resolution. |
|
Package router defines the Router interface for OS-level route table queries used in TUN (virtual network device) mode.
|
Package router defines the Router interface for OS-level route table queries used in TUN (virtual network device) mode. |
|
Package routing defines the Matcher interface for request-based routing decisions using HTTP-level context (hostname, method, path, headers, etc.).
|
Package routing defines the Matcher interface for request-based routing decisions using HTTP-level context (hostname, method, path, headers, etc.). |
|
Package sd defines the SD (Service Discovery) interface for registering and discovering services in dynamic environments.
|
Package sd defines the SD (Service Discovery) interface for registering and discovering services in dynamic environments. |
|
Package selector defines generic interfaces for node selection with support for strategies, filters, and failure marking.
|
Package selector defines generic interfaces for node selection with support for strategies, filters, and failure marking. |
|
Package service defines the Service interface — the top-level abstraction that combines a Listener and a Handler to form a running proxy service.
|
Package service defines the Service interface — the top-level abstraction that combines a Listener and a Handler to form a running proxy service. |
Click to show internal directories.
Click to hide internal directories.