proxy

package
v0.0.0-...-21dcfbf Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const SIGWINCH = syscall.Signal(0x1c)

from syscall.SIGWINCH, avoid syscall errors when compiling on Windows

Variables

This section is empty.

Functions

This section is empty.

Types

type Closer

type Closer interface {
	io.Closer
	CloseTCPConnection(connectionID string)
}

type Host

type Host struct {
	Port string
	Host string
}

func (Host) Addr

func (h Host) Addr() string

type HttpProxy

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

func NewHttpProxy

func NewHttpProxy(listenPort string, client pb.ClientTransport, packetType pb.PacketType) *HttpProxy

func (*HttpProxy) Close

func (p *HttpProxy) Close() error

func (*HttpProxy) CloseTCPConnection

func (p *HttpProxy) CloseTCPConnection(connectionID string)

func (*HttpProxy) Host

func (s *HttpProxy) Host() Host

func (*HttpProxy) PacketWriteClient

func (p *HttpProxy) PacketWriteClient(connectionID string, pkt *pb.Packet) (int, error)

func (*HttpProxy) Serve

func (p *HttpProxy) Serve(sessionID string) error

type MSSQLServer

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

func NewMSSQLServer

func NewMSSQLServer(listenPort string, client pb.ClientTransport) *MSSQLServer

func (*MSSQLServer) Close

func (s *MSSQLServer) Close() error

func (*MSSQLServer) CloseTCPConnection

func (s *MSSQLServer) CloseTCPConnection(connectionID string)

func (*MSSQLServer) Host

func (s *MSSQLServer) Host() Host

func (*MSSQLServer) PacketWriteClient

func (s *MSSQLServer) PacketWriteClient(connectionID string, pkt *pb.Packet) (int, error)

func (*MSSQLServer) Serve

func (s *MSSQLServer) Serve(sessionID string) error

type MongoDBServer

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

func NewMongoDBServer

func NewMongoDBServer(proxyPort string, client pb.ClientTransport) *MongoDBServer

func (*MongoDBServer) Close

func (s *MongoDBServer) Close() error

func (*MongoDBServer) CloseTCPConnection

func (s *MongoDBServer) CloseTCPConnection(connectionID string)

func (*MongoDBServer) Host

func (s *MongoDBServer) Host() Host

func (*MongoDBServer) PacketWriteClient

func (s *MongoDBServer) PacketWriteClient(connectionID string, pkt *pb.Packet) (int, error)

func (*MongoDBServer) Serve

func (p *MongoDBServer) Serve(sessionID string) error

type MySQLServer

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

func NewMySQLServer

func NewMySQLServer(listenPort string, client pb.ClientTransport) *MySQLServer

func (*MySQLServer) Close

func (s *MySQLServer) Close() error

func (*MySQLServer) CloseTCPConnection

func (s *MySQLServer) CloseTCPConnection(connectionID string)

func (*MySQLServer) Host

func (s *MySQLServer) Host() Host

func (*MySQLServer) PacketWriteClient

func (s *MySQLServer) PacketWriteClient(connectionID string, pkt *pb.Packet) (int, error)

func (*MySQLServer) Serve

func (s *MySQLServer) Serve(sessionID string) error

type PGServer

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

func NewPGServer

func NewPGServer(proxyPort string, client pb.ClientTransport) *PGServer

func (*PGServer) Close

func (p *PGServer) Close() error

func (*PGServer) CloseTCPConnection

func (p *PGServer) CloseTCPConnection(connectionID string)

func (*PGServer) Host

func (p *PGServer) Host() Host

func (*PGServer) PacketWriteClient

func (p *PGServer) PacketWriteClient(connectionID string, pkt *pb.Packet) (int, error)

func (*PGServer) Serve

func (p *PGServer) Serve(sessionID string) error

type SSHServer

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

func NewSSHServer

func NewSSHServer(listenPort, connName string, client pb.ClientTransport, hostKey ssh.Signer, isDebug bool) (*SSHServer, error)

func (*SSHServer) Close

func (p *SSHServer) Close() error

func (*SSHServer) CloseTCPConnection

func (p *SSHServer) CloseTCPConnection(connectionID string)

func (*SSHServer) Host

func (p *SSHServer) Host() Host

func (*SSHServer) PacketWriteClient

func (p *SSHServer) PacketWriteClient(connectionID string, pkt *pb.Packet) (int, error)

func (*SSHServer) Serve

func (p *SSHServer) Serve(sid string) error

func (*SSHServer) ServeAndConnect

func (p *SSHServer) ServeAndConnect(sid string) error

type TCPServer

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

func NewTCPServer

func NewTCPServer(listenPort string, client pb.ClientTransport, packetType pb.PacketType) *TCPServer

func (*TCPServer) Close

func (p *TCPServer) Close() error

func (*TCPServer) CloseTCPConnection

func (p *TCPServer) CloseTCPConnection(connectionID string)

func (*TCPServer) Host

func (p *TCPServer) Host() Host

func (*TCPServer) PacketWriteClient

func (p *TCPServer) PacketWriteClient(connectionID string, pkt *pb.Packet) (int, error)

func (*TCPServer) Serve

func (p *TCPServer) Serve(sessionID string) error

type Terminal

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

func NewTerminal

func NewTerminal(client pb.ClientTransport) *Terminal

func (*Terminal) Close

func (t *Terminal) Close() error

func (*Terminal) CloseTCPConnection

func (t *Terminal) CloseTCPConnection(_ string)

func (*Terminal) ConnectWithTTY

func (t *Terminal) ConnectWithTTY() error

Connect control the current terminal connecting with the remote one

func (*Terminal) ProcessPacketWriteStdout

func (t *Terminal) ProcessPacketWriteStdout(pkt *pb.Packet) (int, error)

Jump to

Keyboard shortcuts

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