Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAddressFamilyMismatch = errors.New("address family between source and target mismatched")
)
View Source
var (
MagicV2 = []byte{0xD, 0xA, 0xD, 0xA, 0x0, 0xD, 0xA, 0x51, 0x55, 0x49, 0x54, 0xA}
)
Functions ¶
This section is empty.
Types ¶
type Listener ¶
func NewListener ¶
type Proxy ¶
type Proxy struct { SrcAddress net.Addr DstAddress net.Addr TLV []ProxyTlv Version ProxyVersion Command ProxyCommand }
type ProxyAddressFamily ¶
type ProxyAddressFamily int
const ( ProxyAFUnspec ProxyAddressFamily = iota ProxyAFINet ProxyAFINet6 ProxyAFUnix )
type ProxyCommand ¶
type ProxyCommand int
const ( ProxyCommandLocal ProxyCommand = iota ProxyCommandProxy )
type ProxyNetwork ¶
type ProxyNetwork int
const ( ProxyNetworkUnspec ProxyNetwork = iota ProxyNetworkStream ProxyNetworkDgram )
type ProxyTlv ¶
type ProxyTlv struct { Content []byte Typ ProxyTlvType }
type ProxyTlvType ¶
type ProxyTlvType int
const ( ProxyTlvALPN ProxyTlvType = iota + 0x01 ProxyTlvAuthority ProxyTlvCRC32C ProxyTlvNoop ProxyTlvUniqueID ProxyTlvSSL ProxyTlvType = iota + 0x20 ProxyTlvSSLCN ProxyTlvSSLCipher ProxyTlvSSLSignALG ProxyTlvSSLKeyALG ProxyTlvNetns ProxyTlvType = iota + 0x30 )
Click to show internal directories.
Click to hide internal directories.