guacx

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ConnectionID string
	Protocol     string
	Parameters   map[string]string
}

func NewConfig

func NewConfig() (config *Config)

func (*Config) GetParameter

func (c *Config) GetParameter(name string) string

func (*Config) SetParameter

func (c *Config) SetParameter(name, value string)

type GuacamoleHandler

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

func NewGuacamoleHandler

func NewGuacamoleHandler(ws *websocket.Conn, tunnel *Tunnel) *GuacamoleHandler

func (GuacamoleHandler) Start

func (r GuacamoleHandler) Start()

func (GuacamoleHandler) Stop

func (r GuacamoleHandler) Stop()

type Instruction

type Instruction struct {
	Opcode string
	Args   []string
	// contains filtered or unexported fields
}

func NewInstruction

func NewInstruction(opcode string, args ...string) *Instruction

func (*Instruction) Bytes

func (i *Instruction) Bytes() []byte

func (*Instruction) Parse

func (i *Instruction) Parse(content string) *Instruction

func (*Instruction) String

func (i *Instruction) String() string

type Tunnel

type Tunnel struct {
	Config *Config
	// contains filtered or unexported fields
}

func NewTunnel

func NewTunnel(address string, config *Config) (*Tunnel, error)

func (*Tunnel) Close

func (t *Tunnel) Close() error

func (*Tunnel) Handshake

func (t *Tunnel) Handshake() error

func (*Tunnel) Read

func (t *Tunnel) Read() (p []byte, err error)

func (*Tunnel) ReadInstruction

func (t *Tunnel) ReadInstruction() (*Instruction, error)

func (*Tunnel) Write

func (t *Tunnel) Write(p []byte) (int, error)

func (*Tunnel) WriteInstruction

func (t *Tunnel) WriteInstruction(instruction *Instruction) (int, error)

Jump to

Keyboard shortcuts

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