Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pires/go-proxyproto
/ functions
Functions
366 in github.com/pires/go-proxyproto
⨍
Functions
366
◇
Types & classes
41
Method
Read
(_ []byte)
protocol_test.go:1938
Method
Read
(p []byte)
protocol_test.go:1971
Method
Read
(b []byte)
protocol_test.go:2133
Method
Read
([]byte)
header_test.go:48
Method
ReadFrom
(r io.Reader)
protocol_test.go:1986
Method
RemoteAddr
()
protocol_test.go:1944
Method
RemoteAddr
()
protocol_test.go:1975
Method
SetDeadline
(time.Time)
protocol_test.go:1945
Method
SetDeadline
(time.Time)
protocol_test.go:1976
Method
SetReadDeadline
(t time.Time)
protocol_test.go:1925
Method
SetReadDeadline
(time.Time)
protocol_test.go:1946
Method
SetReadDeadline
(time.Time)
protocol_test.go:1977
Method
SetWriteDeadline
(time.Time)
protocol_test.go:1949
Method
SetWriteDeadline
(time.Time)
protocol_test.go:1984
Method
String
()
policy_test.go:25
Method
String
()
policy_test.go:30
Method
Temporary
()
helper/http2/http2_internal_test.go:299
Function
TestAcceptConcurrentDoesNotRaceOnReadHeaderTimeout
TestAcceptConcurrentDoesNotRaceOnReadHeaderTimeout runs many Accept calls concurrently. Under -race this guards the fix that stopped Accept from writi
protocol_test.go:446
Function
TestAcceptDoesNotMutateListenerReadHeaderTimeout
(t *testing.T)
protocol_test.go:773
Function
TestAcceptReturnsErrorWhenConnPolicyFuncErrors
(t *testing.T)
protocol_test.go:1205
Function
TestAcceptReturnsErrorWhenPolicyFuncErrors
(t *testing.T)
protocol_test.go:1159
Function
TestCloseListenersReturnsCloseError
(t *testing.T)
helper/http2/http2_internal_test.go:149
Function
TestConnReadHandlesChunkedPayload
TestConnReadHandlesChunkedPayload verifies Conn.Read does not drop data when the initial TCP read is smaller than the payload.
protocol_test.go:2147
Function
TestConnSkipProxyHeaderForCIDR
(t *testing.T)
policy_test.go:337
Function
TestConnSkipProxyHeaderForCIDRReturnsErrorOnInvalidAddress
(t *testing.T)
policy_test.go:324
Function
TestConnWhitelistPolicies
(t *testing.T)
policy_test.go:360
Function
TestCopyFromWrappedConnection
(t *testing.T)
protocol_test.go:2021
Function
TestCopyFromWrappedConnectionToWrappedConnection
(t *testing.T)
protocol_test.go:2033
Function
TestCopyToWrappedConnection
(t *testing.T)
protocol_test.go:2008
Function
TestDeadlineSettersAfterHeaderProcessed
(t *testing.T)
protocol_test.go:654
Function
TestDeadlineWrappersDelegate
(t *testing.T)
protocol_test.go:2047
Function
TestEqualTo
This is here just because of coveralls.
header_test.go:334
Function
TestEqualToDeprecatedWrapper
(t *testing.T)
header_test.go:324
Function
TestExtractPSCConnectionID
(t *testing.T)
tlvparse/gcp_test.go:9
Function
TestFindAzurePrivateEndpointLinkID
(t *testing.T)
tlvparse/azure_test.go:9
Function
TestFormat
(t *testing.T)
header_test.go:602
Function
TestFormatInvalid
(t *testing.T)
header_test.go:622
Function
TestGetters
(t *testing.T)
header_test.go:338
Function
TestHeaderProxyFromAddrs
(t *testing.T)
header_test.go:707
Function
TestIgnorePolicyIgnoresIpFromProxyHeader
(t *testing.T)
protocol_test.go:1274
Function
TestIgnoreProxyHeaderNotOnInterface
(t *testing.T)
policy_test.go:439
Function
TestInvalidAddressFamilyAndProtocol
(t *testing.T)
addr_proto_test.go:85
Function
TestInvalidProtocolVersion
(t *testing.T)
version_cmd_test.go:39
Function
TestInvalidV2TLV
(t *testing.T)
tlv_test.go:65
Function
TestJoinTLVs
(t *testing.T)
tlv_test.go:117
Function
TestLaxWhitelistPolicyReturnsIgnoreWhenUpstreamIpAddrNotInWhitelist
(t *testing.T)
policy_test.go:97
Function
TestListenerReadBufferSizeApplied
(t *testing.T)
protocol_test.go:540
Function
TestListenerReadBufferSizeZeroUsesDefault
(t *testing.T)
protocol_test.go:568
Function
TestLocal
(t *testing.T)
version_cmd_test.go:7
Function
TestLocalCommandUsesUnderlyingAddrs
(t *testing.T)
protocol_test.go:1457
Function
TestNewConnAppliesDefaultReadHeaderTimeout
(t *testing.T)
protocol_test.go:302
Function
TestNewConnDefaultTimeoutBoundsHeaderDetection
TestNewConnDefaultTimeoutBoundsHeaderDetection verifies what the NewConn default actually bounds: PROXY header *detection*. A peer that connects but n
protocol_test.go:373
Function
TestNewConnRequirePolicyTimeoutUnblocksRead
TestNewConnRequirePolicyTimeoutUnblocksRead verifies the end-to-end guarantee that does hold: under the REQUIRE policy a silent client makes the first
protocol_test.go:406
Function
TestNewConnSetReadHeaderTimeoutIgnoresNegative
(t *testing.T)
protocol_test.go:290
Function
TestNewConnSetReadHeaderTimeoutOption
(t *testing.T)
protocol_test.go:277
Function
TestNewConnSetReadHeaderTimeoutZeroDisables
(t *testing.T)
protocol_test.go:317
Function
TestPP2SSLClientCertAndFindSSL
(t *testing.T)
tlvparse/ssl_test.go:207
Function
TestPP2SSLMarshal
(t *testing.T)
tlvparse/ssl_test.go:173
Function
TestPP2SSLMarshalPropagatesSubTLVError
(t *testing.T)
tlvparse/ssl_test.go:345
Function
TestPanicIfPolicyAndConnPolicySet
(t *testing.T)
protocol_test.go:1180
Function
TestParseAWSVPCEndpointIDTLVs
(t *testing.T)
tlvparse/aws_test.go:164
Function
TestParseV1Valid
(t *testing.T)
v1_test.go:235
Function
TestParseV2Invalid
(t *testing.T)
v2_test.go:165
Function
TestParseV2Padded
(t *testing.T)
v2_test.go:413
Function
TestParseV2TLV
(t *testing.T)
tlvparse/ssl_test.go:164
Function
TestParseV2Valid
(t *testing.T)
v2_test.go:318
Function
TestParseVersion1Overflow
(t *testing.T)
v1_test.go:305
Function
TestParse_ipv4
(t *testing.T)
protocol_test.go:930
Function
TestParse_ipv6
(t *testing.T)
protocol_test.go:1100
Function
TestParse_unixDatagram
(t *testing.T)
protocol_test.go:1041
Function
TestParse_unixStream
(t *testing.T)
protocol_test.go:977
Function
TestPassthrough
(t *testing.T)
protocol_test.go:164
Function
TestPipeListenerAddrAndDoubleClose
(t *testing.T)
helper/http2/http2_internal_test.go:167
Function
TestProxy
(t *testing.T)
version_cmd_test.go:23
Function
TestReadFromFallbackCopiesToConn
(t *testing.T)
protocol_test.go:2077
Function
TestReadHeaderPreservesHeaderWhenDeadlineRestoreFails
TestReadHeaderPreservesHeaderWhenDeadlineRestoreFails locks in the fix where a successfully parsed header must not be discarded if restoring the read
protocol_test.go:333
Function
TestReadHeaderTimeoutCancelsStalledRead
(t *testing.T)
header_test.go:115
Function
TestReadHeaderTimeoutInitialDeadlineError
(t *testing.T)
header_test.go:199
Function
TestReadHeaderTimeoutIsEmpty
TestReadHeaderTimeoutIsEmpty ensures the default is set if it is empty. The default is 10s, but we delay sending a message, so use 200ms in this test.
protocol_test.go:807
Function
TestReadHeaderTimeoutIsNegative
TestReadHeaderTimeoutIsNegative does the same as above except with a negative timeout. Therefore, we expect the right ProxyHeader to be returned.
protocol_test.go:869
Function
TestReadHeaderTimeoutIsReset
(t *testing.T)
protocol_test.go:685
Function
TestReadHeaderTimeoutNoHeaderPreservesData
(t *testing.T)
header_test.go:142
Function
TestReadHeaderTimeoutParsesHeaderAndPreservesPayload
(t *testing.T)
header_test.go:82
Function
TestReadHeaderTimeoutPropagatesParseError
(t *testing.T)
header_test.go:214
Function
TestReadHeaderTimeoutRespectsEarlierDeadline
(t *testing.T)
protocol_test.go:593
Function
TestReadHeaderTimeoutZeroTimeoutReadsWithoutDeadline
(t *testing.T)
header_test.go:176
Function
TestReadTimeoutPropagatesReadError
(t *testing.T)
header_test.go:70
Function
TestReadTimeoutV1Invalid
(t *testing.T)
header_test.go:59
Function
TestReadUsesConnWhenBufReaderNil
(t *testing.T)
protocol_test.go:2212
Function
TestReadV1Invalid
(t *testing.T)
v1_test.go:109
Function
TestReadingIsRefusedOnErrorWhenLocalAddrRequestedFirst
(t *testing.T)
protocol_test.go:1362
Function
TestReadingIsRefusedOnErrorWhenRemoteAddrRequestedFirst
(t *testing.T)
protocol_test.go:1339
Function
TestReadingIsRefusedWhenProxyHeaderPresentButNotAllowed
(t *testing.T)
protocol_test.go:1248
Function
TestReadingIsRefusedWhenProxyHeaderRequiredButMissing
(t *testing.T)
protocol_test.go:1226
Function
TestRequiredWithReadHeaderTimeout
TestRequiredWithReadHeaderTimeout will iterate through 3 different timeouts to see whether using a REQUIRE policy for a listener would cause an error
protocol_test.go:198
Function
TestSSLRejectsMalformedTLVs
(t *testing.T)
tlvparse/ssl_test.go:254
Function
TestServeAcceptErrorPaths
(t *testing.T)
helper/http2/http2_internal_test.go:94
Function
TestServeConnRejectsUnsupportedProxyALPN
(t *testing.T)
helper/http2/http2_internal_test.go:187
Function
TestServeConnReturnsMalformedProxyTLVError
(t *testing.T)
helper/http2/http2_internal_test.go:224
Function
TestServeConn_ConnContextReturnsNil
TestServeConn_ConnContextReturnsNil lives in package http2 (not http2_test) so it can call the unexported serveConn method directly and recover the pa
helper/http2/http2_internal_test.go:22
← previous
next →
201–300 of 366, ranked by callers