xdebugproxy

package
v0.0.0-...-f991c82 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	Raddr      *net.TCPAddr
	Lconn      *net.TCPConn
	PathMapper XDebugProcessorPlugin
	Config     *config.Config
	Logger     *logger.Logger
	// contains filtered or unexported fields
}

Proxy represents a pair of connections and their state

func (*Proxy) RegisterPostProcessor

func (p *Proxy) RegisterPostProcessor(processor XDebugProcessorPlugin)

RegisterPostProcessor add a new message post processor

func (*Proxy) Start

func (p *Proxy) Start()

Start the proxy

type XDebugProcessorPlugin

type XDebugProcessorPlugin interface {
	Initialize(c *config.Config, l *logger.Logger, m *pathmapping.PathMapping)
	ApplyMappingToTextProtocol(message []byte) []byte
	ApplyMappingToXML(message []byte) []byte
}

XDebugProcessorPlugin process message in xDebug protocol

Jump to

Keyboard shortcuts

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