package
0.0.0-20250306120524-11777db3047b
Repository: https://github.com/cloudflare/cloudflared.git
Documentation: pkg.go.dev
# Functions
Deserialize headers serialized by `SerializeHeader`.
No description provided by the author
No description provided by the author
IsControlResponseHeader is called in the direction of eyeball <- origin.
No description provided by the author
IsTCPStream discerns if the connection request needs a tcp stream proxy.
isWebsocketClientHeader returns true if the header name is required by the client to upgrade properly.
NewControlStream returns a new instance of ControlStreamHandler.
No description provided by the author
No description provided by the author
NewHTTP2Connection returns a new instance of HTTP2Connection.
No description provided by the author
NewHTTPResponseReadWriterAcker returns a new instance of HTTPResponseReadWriteAcker.
No description provided by the author
No description provided by the author
NewTunnelConnection takes a [quic.Connection] to wrap it for use with cloudflared application logic.
Serialize HTTP1.x headers by base64-encoding each header name and value, and then joining them in the format of [key:value;].
# Constants
No description provided by the author
No description provided by the author
note: these constants are exported so we can reuse them in the edge-side code.
Connected means the connection to the edge was successfully established.
note: these constants are exported so we can reuse them in the edge-side code.
Disconnected means the connection to the edge was broken.
No description provided by the author
HTTP2 using golang HTTP2 library for edge connections.
HTTPHeaderKey is used to get or set http headers in QUIC ALPN if the underlying proxy connection type is HTTP.
HTTPHostKey is used to get or set http host in QUIC ALPN if the underlying proxy connection type is HTTP.
HTTPMethodKey is used to get or set http method in QUIC ALPN if the underlying proxy connection type is HTTP.
note: these constants are exported so we can reuse them in the edge-side code.
note: these constants are exported so we can reuse them in the edge-side code.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
QUIC using quic-go for edge connections.
No description provided by the author
Reconnecting means the connection to the edge is being re-established.
RegisteringTunnel means the non-named tunnel is registering its connection.
SRV and TXT record resolution TTL.
SetURL means this connection's tunnel was given a URL by the edge.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
We're unregistering tunnel from the edge in preparation for a disconnect.
note: these constants are exported so we can reuse them in the edge-side code.
# Variables
No description provided by the author
internal special headers.
ProtocolList represents a list of supported protocols for communication with the edge in order of precedence for remote percentage fetcher.
internal special headers.
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
ConfigurationUpdateBody is the representation followed by the edge to send updates to cloudflared.
Credentials are stored in the credentials file and contain all info needed to run a tunnel.
No description provided by the author
Dial to edge server with quic failed.
Event is something that happened to a connection, e.g.
HTTP2Connection represents a net.Conn that uses HTTP2 frames to proxy traffic from the edge to cloudflared on the origin.
HTTPHeader is a custom header struct that expects only ever one value for the header.
HTTPResponseReadWriteAcker is an HTTP implementation of ReadWriteAcker.
No description provided by the author
RegisterTunnel error from server.
TCPRequest defines the input format needed to perform a TCP proxy.
No description provided by the author
No description provided by the author
TunnelToken are Credentials but encoded with custom fields namings.
# Interfaces
No description provided by the author
ControlStreamHandler registers connections with origintunneld and initiates graceful shutdown.
DatagramSessionHandler is a service that can serve datagrams for a connection and handle sessions from incoming connection streams.
No description provided by the author
No description provided by the author
OriginProxy is how data flows from cloudflared to the origin services running behind it.
No description provided by the author
ReadWriteAcker is a readwriter with the ability to Acknowledge to the downstream (edge) that the origin has accepted the connection.
ResponseWriter is the response path for a request back through cloudflared's tunnel.
No description provided by the author
TunnelConnection represents the connection to the edge.
# Type aliases
No description provided by the author
No description provided by the author
Status is the status of a connection.
Type indicates the connection type of the connection.