We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c608a7 commit aa45f1bCopy full SHA for aa45f1b
pkg/tcpproxy/tcpproxy.go
@@ -83,16 +83,6 @@ type Proxy struct {
83
ListenFunc func(net, laddr string) (net.Listener, error)
84
}
85
86
-// Matcher reports whether hostname matches the Matcher's criteria.
87
-type Matcher func(ctx context.Context, hostname string) bool
88
-
89
-// equals is a trivial Matcher that implements string equality.
90
-func equals(want string) Matcher {
91
- return func(_ context.Context, got string) bool {
92
- return want == got
93
- }
94
-}
95
96
// config contains the proxying state for one listener.
97
type config struct {
98
routes []route
0 commit comments