proxy

package
v0.0.0-...-5ba556e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Closer

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

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) ListenPort

func (s *MSSQLServer) ListenPort() string

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) ListenPort

func (s *MongoDBServer) ListenPort() string

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) ListenPort

func (s *MySQLServer) ListenPort() string

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) ListenPort

func (p *PGServer) ListenPort() string

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 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) ListenPort

func (p *TCPServer) ListenPort() string

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
JackTT - Gopher 🇻🇳