Documentation ¶
Index ¶
- func InitializeX3uiClient(localPort int, username, password string, logger *slog.Logger) (*x3client.Client, error)
- type ServerHandler
- func (sh *ServerHandler) Close()
- func (sh *ServerHandler) CreateInbound(server *database.Server) (*x3client.Inbound, error)
- func (sh *ServerHandler) GetClient(server *database.Server) (*x3client.Client, error)
- func (sh *ServerHandler) StartSSHPortForward(server *database.Server) (*ssh.Client, int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ServerHandler ¶
type ServerHandler struct { SSHKeyPath string // contains filtered or unexported fields }
func NewServerHandler ¶
func (*ServerHandler) Close ¶
func (sh *ServerHandler) Close()
func (*ServerHandler) CreateInbound ¶
func (*ServerHandler) StartSSHPortForward ¶
StartSSHPortForward sets up an SSH connection with port forwarding using SSH key authentication
Click to show internal directories.
Click to hide internal directories.