package
0.0.0-20250306120524-11777db3047b
Repository: https://github.com/cloudflare/cloudflared.git
Documentation: pkg.go.dev
# Functions
MarshalPayloadHeaderTo provides a way to insert the Session Payload header into an already existing byte slice without having to allocate and copy the payload into the destination.
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
RequestIDFromSlice reads a request ID from a byte slice.
# Constants
No description provided by the author
DatagramTypeICMP (supporting both ICMPv4 and ICMPv6).
Session registration was unable to reach the requested origin destination.
Session registration failed with an unexpected error but provided a message.
Session was received and is ready to proxy.
Session registration failed due to the number of flows being higher than the limit.
Session registration was unable to bind to a local UDP socket.
UDP Session Payload.
UDP Session Registration Response.
UDP Registration.
# Variables
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
No description provided by the author
No description provided by the author
No description provided by the author
ErrInvalidPayloadDestLen is returned when the provided destination byte slice cannot fit the whole request id.
ErrInvalidRequestIDLen is returned when the provided request id can not be parsed from the provided byte slice.
ErrSessionAlreadyRegistered is returned when a registration already exists for this connection.
ErrSessionBoundToOtherConn is returned when a registration already exists for a different connection.
ErrSessionNotFound indicates that a session has not been registered yet for the request id.
ErrSessionRegistrationRateLimited is returned when a registration fails due to rate limiting on the number of active flows.
SessionCloseErr indicates that the session's Close method was called.
# Structs
ICMPDatagram is used to propagate ICMPv4 and ICMPv6 payloads.
SessionIdleErr is returned when the session was closed because there was no communication in either direction over the session for the timeout period.
UDPSessionPayloadDatagram provides the payload for a session to be send to either the origin or the client.
UDPSessionRegistrationDatagram handles a request to initialize a UDP session on the remote client.
UDPSessionRegistrationResponseDatagram is used to either return a successful registration or error to the client that requested the registration of a UDP session.
# Interfaces
DatagramConn is the bridge that multiplexes writes and reads of datagrams for UDP sessions and ICMP packets to a connection.
DatagramICMPWriter provides the Muxer interface to create ICMP Datagrams when sending over a connection.
DatagramUDPWriter provides the Muxer interface to create proper UDP Datagrams when sending over a connection.
No description provided by the author
QuicConnection provides an interface that matches [quic.Connection] for only the datagram operations.
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
RequestID is the request-id-v2 identifier, it is used to distinguish between specific flows or sessions proxied from the edge to cloudflared.
SessionRegistrationResp represents all of the responses that a UDP session registration response can return back to the client.