proxy

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL