MCPcopy
hub / github.com/cloudflare/cloudflared / TunnelConnection

Interface TunnelConnection

connection/connection.go:48–50  ·  view source on GitHub ↗

TunnelConnection represents the connection to the edge. The Serve method is provided to allow clients to handle any errors from the connection encountered during processing of the connection. Cancelling of the context provided to Serve will close the connection.

Source from the content-addressed store, hash-verified

46// The Serve method is provided to allow clients to handle any errors from the connection encountered during
47// processing of the connection. Cancelling of the context provided to Serve will close the connection.
48type TunnelConnection interface {
49 Serve(ctx context.Context) error
50}
51
52type Orchestrator interface {
53 UpdateConfig(version int32, config []byte) *pogs.UpdateConfigurationResponse

Callers 8

serveQUICMethod · 0.95
ServeMethod · 0.65
TestQUICServerFunction · 0.65
TestServeUDPSessionFunction · 0.65
ServeMethod · 0.65
TestServeHTTPFunction · 0.65

Implementers 15

datagramV2Connectionconnection/quic_datagram_v2.go
datagramV3Connectionconnection/quic_datagram_v3.go
HTTP2Connectionconnection/http2.go
quicConnectionconnection/quic_connection.go
RegistrationServertunnelrpc/registration_server.go
SessionManagerServertunnelrpc/quic/session_server.go
CloudflaredServertunnelrpc/quic/cloudflared_server.go
PacketRouteringress/packet_router.go
icmpProxyingress/icmp_windows.go
icmpRouteringress/origin_icmp_proxy.go
EdgeTunnelServersupervisor/tunnel.go
noopEyeballquic/v3/muxer_test.go

Calls

no outgoing calls

Tested by

no test coverage detected