MCPcopy
hub / github.com/fabiolb/fabio / Handler

Interface Handler

proxy/tcp/server.go:15–17  ·  view source on GitHub ↗

Handler responds to a TCP request. ServeTCP should write responses to the in connection and close it on return.

Source from the content-addressed store, hash-verified

13// ServeTCP should write responses to the in connection and close
14// it on return.
15type Handler interface {
16 ServeTCP(in net.Conn) error
17}
18
19type HandlerFunc func(in net.Conn) error
20

Callers 1

ServeMethod · 0.65

Implementers 3

Proxyproxy/tcp/tcp_proxy.go
SNIProxyproxy/tcp/sni_proxy.go
DynamicProxyproxy/tcp/tcp_dynamic_proxy.go

Calls

no outgoing calls

Tested by

no test coverage detected