Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pires/go-proxyproto
/ types & classes
Types & classes
41 in github.com/pires/go-proxyproto
⨍
Functions
366
◇
Types & classes
41
↓ 21 callers
TypeAlias
AddressFamilyAndProtocol
AddressFamilyAndProtocol represents address family and transport protocol.
addr_proto.go:4
↓ 10 callers
TypeAlias
ProtocolVersionAndCommand
ProtocolVersionAndCommand represents the command in proxy protocol v2. Command doesn't exist in v1 but it should be set since other parts of this libr
version_cmd.go:6
↓ 6 callers
TypeAlias
dummyAddr
protocol_test.go:1953
↓ 3 callers
TypeAlias
PP2Type
PP2Type is the proxy protocol v2 type.
tlv.go:53
↓ 2 callers
TypeAlias
contextKey
helper/http2/http2_test.go:44
↓ 1 callers
TypeAlias
stubAddr
helper/http2/http2_internal_test.go:285
Struct
Conn
Conn is used to wrap and underlying connection which may be speaking the Proxy Protocol. If it is, the RemoteAddr() will return the address of the cli
protocol.go:71
FuncType
ConnPolicyFunc
ConnPolicyFunc can be used to decide whether to trust the PROXY info based on connection policy options. If set, the connecting addresses (remote and
policy.go:26
Struct
ConnPolicyOptions
ConnPolicyOptions contains the remote and local addresses of a connection.
policy.go:29
Struct
Header
Header is the placeholder for proxy protocol header.
header.go:62
Struct
Listener
Listener is used to wrap an underlying listener, whose connections may be using the HAProxy Proxy Protocol. If the connection is using the protocol, t
protocol.go:51
Struct
PP2SSL
PP2SSL represents the PP2_TYPE_SSL TLV and its subtypes. See section 2.2.5 of the PROXY protocol spec. * struct pp2_tlv_ssl { uint8_t
tlvparse/ssl.go:38
TypeAlias
Policy
Policy defines how a connection with a PROXY header address is treated.
policy.go:35
FuncType
PolicyFunc
PolicyFunc can be used to decide whether to trust the PROXY info from upstream. If set, the connecting address is passed in as an argument. See below
policy.go:17
Struct
Server
Server is an HTTP server accepting both regular and proxied, both HTTP/1 and HTTP/2 connections. HTTP/2 is negotiated using TLS ALPN, either directly
helper/http2/http2.go:29
Struct
TLV
TLV is a uninterpreted Type-Length-Value for V2 protocol, see section 2.2.
tlv.go:56
Struct
TestTLSServer
protocol_test.go:1645
FuncType
Validator
Validator receives a header and decides whether it is a valid one In case the header is not deemed valid it should return an error.
protocol.go:87
Struct
_addr4
v2.go:55
Struct
_addr6
v2.go:62
Struct
_addrUnix
v2.go:68
Struct
_ports
v2.go:50
Struct
chunkedConn
chunkedConn wraps a net.Conn and limits reads to simulate TCP chunking.
protocol_test.go:2126
Struct
clientConfig
clientConfig parameterizes the standard test client goroutine run by runClient.
protocol_test.go:70
Struct
dataSource
Tests for parseVersion1 overflow - issue #69.
v1_test.go:287
Struct
deadlineConn
protocol_test.go:1910
Struct
deadlineFailConn
deadlineFailConn serves a fixed byte stream and can be told to fail a specific SetReadDeadline call (1-based, 0 = never). It lets tests reproduce a de
protocol_test.go:1965
Struct
dialResult
protocol_test.go:611
TypeAlias
errorReader
header_test.go:53
Struct
failingAddr
policy_test.go:22
Struct
h1Listener
h1Listener is used to signal back http.Server's Close and Shutdown to the HTTP/2 server.
helper/http2/http2.go:216
Struct
header
header.go:319
Struct
invalidIPAddr
policy_test.go:27
Struct
noReadFromConn
protocol_test.go:1934
Struct
pipeAddr
helper/http2/listener.go:64
Struct
pipeListener
pipeListener is a hack to workaround the lack of http.Server.ServeConn. See: https://github.com/golang/go/issues/36673
helper/http2/listener.go:15
Struct
result
protocol_test.go:418
Struct
stubListener
helper/http2/http2_internal_test.go:260
Struct
testConn
protocol_test.go:1904
Struct
timeoutError
helper/http2/http2_internal_test.go:290
TypeAlias
timeoutReader
header_test.go:46