webconsole

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Server *http.Server
)

Functions

func HandleWebSocket

func HandleWebSocket(c *gin.Context)

func MCServerLauncher

func MCServerLauncher(baseCmd string, cmdArgs []string) error

func RunServer

func RunServer(arguments []string)

func RunServerWithWebSocketHandler

func RunServerWithWebSocketHandler(arguments []string, connections []*websocket.Conn)

func StartWebsocket

func StartWebsocket()

Types

type WebSocketHandler

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

func (*WebSocketHandler) ReadCommandError

func (h *WebSocketHandler) ReadCommandError()

func (*WebSocketHandler) ReadCommandOutput

func (h *WebSocketHandler) ReadCommandOutput()

func (*WebSocketHandler) ReadCommands

func (h *WebSocketHandler) ReadCommands()

func (*WebSocketHandler) WriteCommand

func (h *WebSocketHandler) WriteCommand(command string)

Jump to

Keyboard shortcuts

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