Documentation
¶
Index ¶
- type SignalRServer
- type SimpleHub
- func (h *SimpleHub) OnConnected(connectionID string)
- func (h *SimpleHub) OnDisconnected(connectionID string)
- func (h *SimpleHub) ResizeDockerExec(cols int, rows int)
- func (h *SimpleHub) ResizeSshSession(cols int, rows int)
- func (h *SimpleHub) SendChatMessage(message string)
- func (h *SimpleHub) SendDockerExecInput(data string)
- func (h *SimpleHub) SendSshInput(data string)
- func (h *SimpleHub) StartDockerExec(nodeID int64, containerID string, cols int, rows int, shell string) error
- func (h *SimpleHub) StartSshSession(nodeID int64, cols int, rows int) error
- func (h *SimpleHub) StopDockerExec()
- func (h *SimpleHub) StopSshSession()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SignalRServer ¶
type SignalRServer struct {
// contains filtered or unexported fields
}
func NewSignalRServer ¶
func NewSignalRServer(ctx context.Context, hub signalr.HubInterface, opts ...func(signalr.Party) error) (*SignalRServer, error)
func (*SignalRServer) Handler ¶
func (s *SignalRServer) Handler(path string) app.HandlerFunc
func (*SignalRServer) HubClients ¶
func (s *SignalRServer) HubClients() signalr.HubClients
type SimpleHub ¶
func NewSimpleHub ¶
func NewSimpleHub(nodeRepository *repository.NodeRepository, nodeManager *node.NodeManager) *SimpleHub
func (*SimpleHub) OnConnected ¶
func (*SimpleHub) OnDisconnected ¶
func (*SimpleHub) ResizeDockerExec ¶
func (*SimpleHub) ResizeSshSession ¶
ResizeSshSession resizes the remote PTY when the terminal window changes.
func (*SimpleHub) SendChatMessage ¶
func (*SimpleHub) SendDockerExecInput ¶
func (*SimpleHub) SendSshInput ¶
SendSshInput writes user input from the client to the remote SSH session.
func (*SimpleHub) StartDockerExec ¶
func (*SimpleHub) StartSshSession ¶
StartSshSession establishes an interactive SSH session for the current SignalR connection. nodeID identifies the target node, cols/rows configure the PTY size.
func (*SimpleHub) StopDockerExec ¶
func (h *SimpleHub) StopDockerExec()
func (*SimpleHub) StopSshSession ¶
func (h *SimpleHub) StopSshSession()
StopSshSession terminates the SSH session associated with the current connection.
Click to show internal directories.
Click to hide internal directories.