proxy

package
v0.0.0-...-1561e87 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WSProxyMap = make(map[string]*WSProxy)
)

Functions

This section is empty.

Types

type IPodProxy

type IPodProxy interface {
	Setup()
	Close()
	Proxies() []IProxy
}

func NewPodProxy

func NewPodProxy(targets []string) IPodProxy

type IProxy

type IProxy interface {
	Setup()
	Close()
	Entry() (entry string)
}

func NewProxy

func NewProxy(target string) IProxy

func NewTCPProxy

func NewTCPProxy(target string) IProxy

func NewWSProxy

func NewWSProxy(target string) IProxy

type PodProxy

type PodProxy struct {
	// contains filtered or unexported fields
}

func (*PodProxy) Close

func (p *PodProxy) Close()

func (*PodProxy) Proxies

func (p *PodProxy) Proxies() []IProxy

func (*PodProxy) Setup

func (p *PodProxy) Setup()

type TCPProxy

type TCPProxy struct {
	Listen string
	Target string
	// contains filtered or unexported fields
}

func (*TCPProxy) Close

func (t *TCPProxy) Close()

func (*TCPProxy) Entry

func (t *TCPProxy) Entry() string

func (*TCPProxy) Handle

func (t *TCPProxy) Handle(clientConn net.Conn, target string)

func (*TCPProxy) HandleInTrafficCapture

func (t *TCPProxy) HandleInTrafficCapture(clientConn net.Conn, target string)

func (*TCPProxy) Setup

func (t *TCPProxy) Setup()

type WSProxy

type WSProxy struct {
	Listen   string
	Target   string
	Upgrader websocket.Upgrader
}

func (*WSProxy) Close

func (w *WSProxy) Close()

func (*WSProxy) Entry

func (w *WSProxy) Entry() string

func (*WSProxy) Handle

func (w *WSProxy) Handle(conn *websocket.Conn)

func (*WSProxy) Setup

func (w *WSProxy) Setup()

Jump to

Keyboard shortcuts

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