guacd

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Host                = "host"
	Port                = "port"
	EnableRecording     = "enable-recording"
	RecordingPath       = "recording-path"
	CreateRecordingPath = "create-recording-path"

	FontName    = "font-name"
	FontSize    = "font-size"
	ColorScheme = "color-scheme"

	EnableDrive              = "enable-drive"
	DriveName                = "drive-name"
	DrivePath                = "drive-path"
	EnableWallpaper          = "enable-wallpaper"
	EnableTheming            = "enable-theming"
	EnableFontSmoothing      = "enable-font-smoothing"
	EnableFullWindowDrag     = "enable-full-window-drag"
	EnableDesktopComposition = "enable-desktop-composition"
	EnableMenuAnimations     = "enable-menu-animations"
	DisableBitmapCaching     = "disable-bitmap-caching"
	DisableOffscreenCaching  = "disable-offscreen-caching"
	DisableGlyphCaching      = "disable-glyph-caching"
)
View Source
const Delimiter = ';'
View Source
const Version = "VERSION_1_2_0"

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

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

func NewConiguration

func NewConiguration() (ret Configuration)

func (*Configuration) GetParameter

func (opt *Configuration) GetParameter(name string) string

func (*Configuration) SetParameter

func (opt *Configuration) SetParameter(name, value string)

func (*Configuration) UnSetParameter

func (opt *Configuration) UnSetParameter(name string)

type Instruction

type Instruction struct {
	Opcode       string
	Args         []string
	ProtocolForm string
}

func NewInstruction

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

func (*Instruction) Parse

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

func (*Instruction) String

func (opt *Instruction) String() string

type Tunnel

type Tunnel struct {
	UUID   string
	Config Configuration
	IsOpen bool
	// contains filtered or unexported fields
}

func NewTunnel

func NewTunnel(address string, config Configuration) (ret *Tunnel, err error)

func (*Tunnel) Close

func (opt *Tunnel) Close() error

func (*Tunnel) Flush

func (opt *Tunnel) Flush() error

func (*Tunnel) Read

func (opt *Tunnel) Read() ([]byte, error)

func (*Tunnel) ReadInstruction

func (opt *Tunnel) ReadInstruction() (instruction Instruction, err error)

func (*Tunnel) Write

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

func (*Tunnel) WriteAndFlush

func (opt *Tunnel) WriteAndFlush(p []byte) (int, error)

func (*Tunnel) WriteInstruction

func (opt *Tunnel) WriteInstruction(instruction Instruction) error

func (*Tunnel) WriteInstructionAndFlush

func (opt *Tunnel) WriteInstructionAndFlush(instruction Instruction) error

Jump to

Keyboard shortcuts

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