proxy

package
v0.0.0-...-fe16607 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package proxy Implement proxy components for different protocols.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy interface {
	// status functions
	Config() *config.Target

	// management functions
	StartListener() error
	Shutdown() error
}

Proxy Interface for the proxy server of one target.

func New

func New(target *config.Target) (Proxy, error)

New Create and initialize a new proxy connection

type TCPProxy

type TCPProxy struct {
	Target *config.Target
	// contains filtered or unexported fields
}

TCPProxy Proxy tcp requests

func (*TCPProxy) Config

func (p *TCPProxy) Config() *config.Target

Config Return the current confiuration.

func (*TCPProxy) Shutdown

func (p *TCPProxy) Shutdown() error

Shutdown Close the listener to shutdown the proxy

func (*TCPProxy) StartListener

func (p *TCPProxy) StartListener() error

StartListener Start a listener and handle incoming connections.

Jump to

Keyboard shortcuts

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