MCPcopy Create free account

hub / github.com/pires/go-proxyproto / functions

Functions366 in github.com/pires/go-proxyproto

MethodRead
(_ []byte)
protocol_test.go:1938
MethodRead
(p []byte)
protocol_test.go:1971
MethodRead
(b []byte)
protocol_test.go:2133
MethodRead
([]byte)
header_test.go:48
MethodReadFrom
(r io.Reader)
protocol_test.go:1986
MethodRemoteAddr
()
protocol_test.go:1944
MethodRemoteAddr
()
protocol_test.go:1975
MethodSetDeadline
(time.Time)
protocol_test.go:1945
MethodSetDeadline
(time.Time)
protocol_test.go:1976
MethodSetReadDeadline
(t time.Time)
protocol_test.go:1925
MethodSetReadDeadline
(time.Time)
protocol_test.go:1946
MethodSetReadDeadline
(time.Time)
protocol_test.go:1977
MethodSetWriteDeadline
(time.Time)
protocol_test.go:1949
MethodSetWriteDeadline
(time.Time)
protocol_test.go:1984
MethodString
()
policy_test.go:25
MethodString
()
policy_test.go:30
MethodTemporary
()
helper/http2/http2_internal_test.go:299
FunctionTestAcceptConcurrentDoesNotRaceOnReadHeaderTimeout
TestAcceptConcurrentDoesNotRaceOnReadHeaderTimeout runs many Accept calls concurrently. Under -race this guards the fix that stopped Accept from writi
protocol_test.go:446
FunctionTestAcceptDoesNotMutateListenerReadHeaderTimeout
(t *testing.T)
protocol_test.go:773
FunctionTestAcceptReturnsErrorWhenConnPolicyFuncErrors
(t *testing.T)
protocol_test.go:1205
FunctionTestAcceptReturnsErrorWhenPolicyFuncErrors
(t *testing.T)
protocol_test.go:1159
FunctionTestCloseListenersReturnsCloseError
(t *testing.T)
helper/http2/http2_internal_test.go:149
FunctionTestConnReadHandlesChunkedPayload
TestConnReadHandlesChunkedPayload verifies Conn.Read does not drop data when the initial TCP read is smaller than the payload.
protocol_test.go:2147
FunctionTestConnSkipProxyHeaderForCIDR
(t *testing.T)
policy_test.go:337
FunctionTestConnSkipProxyHeaderForCIDRReturnsErrorOnInvalidAddress
(t *testing.T)
policy_test.go:324
FunctionTestConnWhitelistPolicies
(t *testing.T)
policy_test.go:360
FunctionTestCopyFromWrappedConnection
(t *testing.T)
protocol_test.go:2021
FunctionTestCopyFromWrappedConnectionToWrappedConnection
(t *testing.T)
protocol_test.go:2033
FunctionTestCopyToWrappedConnection
(t *testing.T)
protocol_test.go:2008
FunctionTestDeadlineSettersAfterHeaderProcessed
(t *testing.T)
protocol_test.go:654
FunctionTestDeadlineWrappersDelegate
(t *testing.T)
protocol_test.go:2047
FunctionTestEqualTo
This is here just because of coveralls.
header_test.go:334
FunctionTestEqualToDeprecatedWrapper
(t *testing.T)
header_test.go:324
FunctionTestExtractPSCConnectionID
(t *testing.T)
tlvparse/gcp_test.go:9
FunctionTestFindAzurePrivateEndpointLinkID
(t *testing.T)
tlvparse/azure_test.go:9
FunctionTestFormat
(t *testing.T)
header_test.go:602
FunctionTestFormatInvalid
(t *testing.T)
header_test.go:622
FunctionTestGetters
(t *testing.T)
header_test.go:338
FunctionTestHeaderProxyFromAddrs
(t *testing.T)
header_test.go:707
FunctionTestIgnorePolicyIgnoresIpFromProxyHeader
(t *testing.T)
protocol_test.go:1274
FunctionTestIgnoreProxyHeaderNotOnInterface
(t *testing.T)
policy_test.go:439
FunctionTestInvalidAddressFamilyAndProtocol
(t *testing.T)
addr_proto_test.go:85
FunctionTestInvalidProtocolVersion
(t *testing.T)
version_cmd_test.go:39
FunctionTestInvalidV2TLV
(t *testing.T)
tlv_test.go:65
FunctionTestJoinTLVs
(t *testing.T)
tlv_test.go:117
FunctionTestLaxWhitelistPolicyReturnsIgnoreWhenUpstreamIpAddrNotInWhitelist
(t *testing.T)
policy_test.go:97
FunctionTestListenerReadBufferSizeApplied
(t *testing.T)
protocol_test.go:540
FunctionTestListenerReadBufferSizeZeroUsesDefault
(t *testing.T)
protocol_test.go:568
FunctionTestLocal
(t *testing.T)
version_cmd_test.go:7
FunctionTestLocalCommandUsesUnderlyingAddrs
(t *testing.T)
protocol_test.go:1457
FunctionTestNewConnAppliesDefaultReadHeaderTimeout
(t *testing.T)
protocol_test.go:302
FunctionTestNewConnDefaultTimeoutBoundsHeaderDetection
TestNewConnDefaultTimeoutBoundsHeaderDetection verifies what the NewConn default actually bounds: PROXY header *detection*. A peer that connects but n
protocol_test.go:373
FunctionTestNewConnRequirePolicyTimeoutUnblocksRead
TestNewConnRequirePolicyTimeoutUnblocksRead verifies the end-to-end guarantee that does hold: under the REQUIRE policy a silent client makes the first
protocol_test.go:406
FunctionTestNewConnSetReadHeaderTimeoutIgnoresNegative
(t *testing.T)
protocol_test.go:290
FunctionTestNewConnSetReadHeaderTimeoutOption
(t *testing.T)
protocol_test.go:277
FunctionTestNewConnSetReadHeaderTimeoutZeroDisables
(t *testing.T)
protocol_test.go:317
FunctionTestPP2SSLClientCertAndFindSSL
(t *testing.T)
tlvparse/ssl_test.go:207
FunctionTestPP2SSLMarshal
(t *testing.T)
tlvparse/ssl_test.go:173
FunctionTestPP2SSLMarshalPropagatesSubTLVError
(t *testing.T)
tlvparse/ssl_test.go:345
FunctionTestPanicIfPolicyAndConnPolicySet
(t *testing.T)
protocol_test.go:1180
FunctionTestParseAWSVPCEndpointIDTLVs
(t *testing.T)
tlvparse/aws_test.go:164
FunctionTestParseV1Valid
(t *testing.T)
v1_test.go:235
FunctionTestParseV2Invalid
(t *testing.T)
v2_test.go:165
FunctionTestParseV2Padded
(t *testing.T)
v2_test.go:413
FunctionTestParseV2TLV
(t *testing.T)
tlvparse/ssl_test.go:164
FunctionTestParseV2Valid
(t *testing.T)
v2_test.go:318
FunctionTestParseVersion1Overflow
(t *testing.T)
v1_test.go:305
FunctionTestParse_ipv4
(t *testing.T)
protocol_test.go:930
FunctionTestParse_ipv6
(t *testing.T)
protocol_test.go:1100
FunctionTestParse_unixDatagram
(t *testing.T)
protocol_test.go:1041
FunctionTestParse_unixStream
(t *testing.T)
protocol_test.go:977
FunctionTestPassthrough
(t *testing.T)
protocol_test.go:164
FunctionTestPipeListenerAddrAndDoubleClose
(t *testing.T)
helper/http2/http2_internal_test.go:167
FunctionTestProxy
(t *testing.T)
version_cmd_test.go:23
FunctionTestReadFromFallbackCopiesToConn
(t *testing.T)
protocol_test.go:2077
FunctionTestReadHeaderPreservesHeaderWhenDeadlineRestoreFails
TestReadHeaderPreservesHeaderWhenDeadlineRestoreFails locks in the fix where a successfully parsed header must not be discarded if restoring the read
protocol_test.go:333
FunctionTestReadHeaderTimeoutCancelsStalledRead
(t *testing.T)
header_test.go:115
FunctionTestReadHeaderTimeoutInitialDeadlineError
(t *testing.T)
header_test.go:199
FunctionTestReadHeaderTimeoutIsEmpty
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
FunctionTestReadHeaderTimeoutIsNegative
TestReadHeaderTimeoutIsNegative does the same as above except with a negative timeout. Therefore, we expect the right ProxyHeader to be returned.
protocol_test.go:869
FunctionTestReadHeaderTimeoutIsReset
(t *testing.T)
protocol_test.go:685
FunctionTestReadHeaderTimeoutNoHeaderPreservesData
(t *testing.T)
header_test.go:142
FunctionTestReadHeaderTimeoutParsesHeaderAndPreservesPayload
(t *testing.T)
header_test.go:82
FunctionTestReadHeaderTimeoutPropagatesParseError
(t *testing.T)
header_test.go:214
FunctionTestReadHeaderTimeoutRespectsEarlierDeadline
(t *testing.T)
protocol_test.go:593
FunctionTestReadHeaderTimeoutZeroTimeoutReadsWithoutDeadline
(t *testing.T)
header_test.go:176
FunctionTestReadTimeoutPropagatesReadError
(t *testing.T)
header_test.go:70
FunctionTestReadTimeoutV1Invalid
(t *testing.T)
header_test.go:59
FunctionTestReadUsesConnWhenBufReaderNil
(t *testing.T)
protocol_test.go:2212
FunctionTestReadV1Invalid
(t *testing.T)
v1_test.go:109
FunctionTestReadingIsRefusedOnErrorWhenLocalAddrRequestedFirst
(t *testing.T)
protocol_test.go:1362
FunctionTestReadingIsRefusedOnErrorWhenRemoteAddrRequestedFirst
(t *testing.T)
protocol_test.go:1339
FunctionTestReadingIsRefusedWhenProxyHeaderPresentButNotAllowed
(t *testing.T)
protocol_test.go:1248
FunctionTestReadingIsRefusedWhenProxyHeaderRequiredButMissing
(t *testing.T)
protocol_test.go:1226
FunctionTestRequiredWithReadHeaderTimeout
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
FunctionTestSSLRejectsMalformedTLVs
(t *testing.T)
tlvparse/ssl_test.go:254
FunctionTestServeAcceptErrorPaths
(t *testing.T)
helper/http2/http2_internal_test.go:94
FunctionTestServeConnRejectsUnsupportedProxyALPN
(t *testing.T)
helper/http2/http2_internal_test.go:187
FunctionTestServeConnReturnsMalformedProxyTLVError
(t *testing.T)
helper/http2/http2_internal_test.go:224
FunctionTestServeConn_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
← previousnext →201–300 of 366, ranked by callers