Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetHexdumpPackets ¶
func SetHexdumpPackets(v bool)
SetHexdumpPackets determines if the proxy should print a hexdump of every packet from both the client and server (default: false)
func SetLogExchanges ¶
func SetLogExchanges(v bool)
SetLogExchanges sets whether a log line should be printed every time a packet goes through the proxy (default: false)
func SetLogNewConnections ¶
func SetLogNewConnections(v bool)
SetLogNewConnections sets whether a message should be printed for every new connection to the proxy (default: true)
Types ¶
type SocketServer ¶
type SocketServer struct { ListenAddress string ListenPort int Destination string // contains filtered or unexported fields }
func New ¶
func New(listen, dest string) *SocketServer
func (*SocketServer) Close ¶
func (s *SocketServer) Close() error
func (*SocketServer) Start ¶
func (s *SocketServer) Start() error
Click to show internal directories.
Click to hide internal directories.