Skip to content

Commit

Permalink
tcpproxy: remove unused functions
Browse files Browse the repository at this point in the history
Signed-off-by: Akihiro Suda <[email protected]>
  • Loading branch information
AkihiroSuda committed Oct 18, 2024
1 parent 2c608a7 commit aa45f1b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pkg/tcpproxy/tcpproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,6 @@ type Proxy struct {
ListenFunc func(net, laddr string) (net.Listener, error)
}

// Matcher reports whether hostname matches the Matcher's criteria.
type Matcher func(ctx context.Context, hostname string) bool

// equals is a trivial Matcher that implements string equality.
func equals(want string) Matcher {
return func(_ context.Context, got string) bool {
return want == got
}
}

// config contains the proxying state for one listener.
type config struct {
routes []route
Expand Down

0 comments on commit aa45f1b

Please sign in to comment.