Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AMQPProxy ¶
type AMQPProxy struct {
Matcher func([]byte)
Replacer func([]byte) []byte
// Settings
Nagles bool
Log Logger
OutputHex bool
// contains filtered or unexported fields
}
AMQPProxy - Manages a Proxy connection, piping data between local and remote, and support AMQP frame
func NewAMQP ¶
func NewAMQP(lconn io.ReadWriteCloser, laddr, raddr *net.TCPAddr) *AMQPProxy
NewAMQP - Create a new Proxy instance. Takes over local connection passed in, and closes it when finished.
func NewAMQPTLSUnwrapped ¶
func NewAMQPTLSUnwrapped(lconn io.ReadWriteCloser, laddr, raddr *net.TCPAddr, addr string) *AMQPProxy
NewAMQPTLSUnwrapped - Create a new Proxy instance with a remote TLS server for which we want to unwrap the TLS to be able to connect without encryption locally
type ColorLogger ¶
ColorLogger - A Logger that logs to stdout in color
func (ColorLogger) Debug ¶
func (l ColorLogger) Debug(f string, args ...interface{})
Debug - Log a debug message
func (ColorLogger) Info ¶
func (l ColorLogger) Info(f string, args ...interface{})
Info - Log a general message
func (ColorLogger) Trace ¶
func (l ColorLogger) Trace(f string, args ...interface{})
Trace - Log a very verbose trace message
func (ColorLogger) Warn ¶
func (l ColorLogger) Warn(f string, args ...interface{})
Warn - Log a warning
type Logger ¶
type Logger interface {
Trace(f string, args ...interface{})
Debug(f string, args ...interface{})
Info(f string, args ...interface{})
Warn(f string, args ...interface{})
}
Logger - Interface to pass into Proxy for it to log messages
type Proxy ¶
type Proxy struct {
Matcher func([]byte)
Replacer func([]byte) []byte
// Settings
Nagles bool
Log Logger
OutputHex bool
// contains filtered or unexported fields
}
Proxy - Manages a Proxy connection, piping data between local and remote.
func New ¶
New - Create a new Proxy instance. Takes over local connection passed in, and closes it when finished.
func NewTLSUnwrapped ¶
NewTLSUnwrapped - Create a new Proxy instance with a remote TLS server for which we want to unwrap the TLS to be able to connect without encryption locally