Documentation
¶
Index ¶
- Constants
- type Closer
- type Host
- type HttpProxy
- type MSSQLServer
- type MongoDBServer
- type MySQLServer
- type PGServer
- type SSHServer
- func (p *SSHServer) Close() error
- func (p *SSHServer) CloseTCPConnection(connectionID string)
- func (p *SSHServer) Host() Host
- func (p *SSHServer) PacketWriteClient(connectionID string, pkt *pb.Packet) (int, error)
- func (p *SSHServer) Serve(sid string) error
- func (p *SSHServer) ServeAndConnect(sid string) error
- type TCPServer
- type Terminal
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 HttpProxy ¶
type HttpProxy struct {
// contains filtered or unexported fields
}
func NewHttpProxy ¶
func NewHttpProxy(listenPort string, client pb.ClientTransport, packetType pb.PacketType) *HttpProxy
func (*HttpProxy) CloseTCPConnection ¶
func (*HttpProxy) PacketWriteClient ¶
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 (*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 (*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 (*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) CloseTCPConnection ¶
func (*PGServer) PacketWriteClient ¶
type SSHServer ¶
type SSHServer struct {
// contains filtered or unexported fields
}
func NewSSHServer ¶
func (*SSHServer) CloseTCPConnection ¶
func (*SSHServer) PacketWriteClient ¶
func (*SSHServer) ServeAndConnect ¶
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) CloseTCPConnection ¶
func (*TCPServer) PacketWriteClient ¶
type Terminal ¶
type Terminal struct {
// contains filtered or unexported fields
}
func NewTerminal ¶
func NewTerminal(client pb.ClientTransport) *Terminal
func (*Terminal) CloseTCPConnection ¶
func (*Terminal) ConnectWithTTY ¶
Connect control the current terminal connecting with the remote one
Click to show internal directories.
Click to hide internal directories.