package
1.20240719.1
Repository: https://github.com/blend/go-sdk.git
Documentation: pkg.go.dev

# Functions

CreateListener creates a new proxy protocol listener.
JoinTLVs joins multiple Type-Length-Value records.
NewConn is used to wrap a net.Conn that may be speaking the proxy protocol into a proxyproto.Conn.
NewDialer returns a new proxy protocol dialer.
OptDialerConstSourceAdddr sets the header provider to be a constant source.
OptDialerHeaderProvider sets the header provider.
OptKeepAlive sets if we should keep TCP connections alive or not.
OptKeepAlivePeriod sets the duration we should keep connections alive for.
OptTLSConfig sets the listener tls config.
OptUseProxyProtocol sets if we should decode proxy protocol or not.
SplitTLVs splits the Type-Length-Value vector, returns the vector or an error.

# Constants

Address family and protocol constants.
Address family and protocol constants.
Address family and protocol constants.
Address family and protocol constants.
Address family and protocol constants.
Address family and protocol constants.
Address family and protocol constants.
Proxy Protocol Type 2 constants.
Proxy Protocol Type 2 constants.
ProtocolVersionAndCommandLocal represents the ProtocolVersionAndCommandLocal command in v2 or UNKNOWN transport in v1, in which case no address information is expected.
ProtocolVersionAndCommandProxy represents the PROXY command in v2 or transport is not UNKNOWN in v1, in which case valid local/remote address and port information is expected.

# Variables

# Structs

Conn is used to wrap and underlying connection which may be speaking the Proxy Protocol.
CreateListenerOptions are the options for creating listeners.
Dialer wraps a dialer with proxy protocol header injection.
Header is the placeholder for proxy protocol header.
Listener is used to wrap an underlying listener, whose connections may be using the HAProxy Proxy Protocol (version 1).
TLV is a uninterpreted Type-Length-Value for V2 protocol, see section 2.2.

# Type aliases

AddressFamilyAndProtocol represents address family and transport protocol.
CreateListenerOption is a mutator for the options used when creating a listener.
DialerOption mutates a dialer.
PP2Type is the proxy protocol v2 type.
ProtocolVersionAndCommand represents the command in proxy protocol v2.
SourceChecker can be used to decide whether to trust the PROXY info or pass the original connection address through.