guac

package
v0.0.0-...-6410feb Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TunnerClose        = errors.Error("TunnerClose")
	InvalidInstruction = errors.Error("InvalidInstruction")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GuacOptions

type GuacOptions struct {
	ConnectionId        string
	Protocol            string
	Parameters          map[string]string
	OptimalScreenWidth  int
	OptimalScreenHeight int
	OptimalResolution   int
	AudioMimetypes      []string
	VideoMimetypes      []string
	ImageMimetypes      []string
}

func NewGuacOptions

func NewGuacOptions() *GuacOptions

type GuacamoleTunnel

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

func NewGuacamoleTunnel

func NewGuacamoleTunnel(host string, port int, user, password string, id string, w, h, dpi int, uId string) (*GuacamoleTunnel, error)

func (*GuacamoleTunnel) Handshake

func (self *GuacamoleTunnel) Handshake() error

func (*GuacamoleTunnel) ReadOne

func (self *GuacamoleTunnel) ReadOne() (*Instruction, error)

func (*GuacamoleTunnel) Start

func (self *GuacamoleTunnel) Start() error

func (*GuacamoleTunnel) Stop

func (self *GuacamoleTunnel) Stop()

func (*GuacamoleTunnel) Wait

func (self *GuacamoleTunnel) Wait() error

func (*GuacamoleTunnel) Write

func (self *GuacamoleTunnel) Write(data []byte) (int, error)

type Instruction

type Instruction struct {
	Opcode string
	Args   []string
}

func NewInstruction

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

func (*Instruction) String

func (i *Instruction) String() string

Jump to

Keyboard shortcuts

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