Documentation
¶
Overview ¶
Package types defines common types used across the proxy package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialTimeoutFromContext ¶ added in v0.67.0
DialTimeoutFromContext returns the dial timeout from the context, if set.
Types ¶
type AccountID ¶
type AccountID string
AccountID represents a unique identifier for a NetBird account.
type DialContextFunc ¶ added in v0.67.0
DialContextFunc dials a backend through the WireGuard tunnel.
type RelayDirection ¶ added in v0.67.0
type RelayDirection string
RelayDirection indicates the direction of a relayed packet.
const ( RelayDirectionClientToBackend RelayDirection = "client_to_backend" RelayDirectionBackendToClient RelayDirection = "backend_to_client" )
type ServiceID ¶ added in v0.67.0
type ServiceID string
ServiceID represents a unique identifier for a proxy service.
type ServiceMode ¶ added in v0.67.0
type ServiceMode string
ServiceMode describes how a reverse proxy service is exposed.
const ( ServiceModeHTTP ServiceMode = "http" ServiceModeTCP ServiceMode = "tcp" ServiceModeUDP ServiceMode = "udp" ServiceModeTLS ServiceMode = "tls" )
func (ServiceMode) IsL4 ¶ added in v0.67.0
func (m ServiceMode) IsL4() bool
IsL4 returns true for TCP, UDP, and TLS modes.
Click to show internal directories.
Click to hide internal directories.