gofreerdp

package module
v0.0.0-...-1f02cd9 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 9 Imported by: 0

README

GoFreeRDP

A wrapper or adapter for freerdp version 3.x command line interface in go lang

Usage

package main

import "github.com/moatasemgamal/gofreerdp"

func main(){
  freeRDP, _ := gofreerdp.Init(gofreerdp.DisplayServer_Xorg)
  rdpConf := &gofreerdp.RDPConfig{
			Addr:     "192.168.100.100", // or with port "192.168.100.100:3389"
			Username: "User",
			Password: "Pass",
		}

  freeRDP.SetConfig(config)

  freeRDP.Run() // build the command and execute it
}

Documentation

Index

Constants

View Source
const (
	Option_aero                  = "aero"
	Option_asyncChannels         = "async-channels"
	Option_asyncUpdate           = "async-update"
	Option_authOnly              = "auth-only"
	Option_authentication        = "authentication"
	Option_autoReconnect         = "auto-reconnect"
	Option_compression           = "compression"
	Option_credentialsDelegation = "credentials-delegation"
	Option_decorations           = "decorations"
	Option_drives                = "drives"
	Option_encryption            = "encryption"
	Option_fipsMode              = "fipsmode"
	Option_fonts                 = "fonts"
	Option_forceConsoleCallbacks = "force-console-callbacks"
	Option_gestures              = "gestures"
	Option_grabKeyboard          = "grab-keyboard"
	Option_grabMouse             = "grab-mouse"
	Option_heartbeat             = "heartbeat"
	Option_homeDrive             = "home-drive"
	Option_menuAnims             = "menu-anims"
	Option_mouseMotion           = "mouse-motion"
	Option_mouseRelative         = "mouse-relative"
	Option_multiTouch            = "multitouch"
	Option_multiTransport        = "multitransport"
	Option_nego                  = "nego"
	Option_oldLicense            = "old-license"
	Option_suppressOutput        = "suppress-output"
	Option_printReconnectCookie  = "print-reconnect-cookie"
	Option_themes                = "themes"
	Option_toggleFullscreen      = "toggle-fullscreen"
	Option_unmapButtons          = "unmap-buttons"
	Option_wallpaper             = "wallpaper"
	Option_windowDrag            = "window-drag"
)
View Source
const (
	DisplayServer_Xorg    = "Xorg"
	DisplayServer_Wayland = "wayland"
)

Variables

This section is empty.

Functions

func Init

func Init(displayServer string) (*freeRDP, error)

Types

type App

type App struct {
	Program string
	Cmd     string
	File    string
	Guid    string
	Icon    string
	Name    string
	Workdir string
}

type ArgumentBuilder

type ArgumentBuilder interface {
	// contains filtered or unexported methods
}

type RDPConfig

type RDPConfig struct {
	Addr     string `validate:"required,hostname|ip"` // Addr is required, and must be a valid hostname or IP address
	Username string `validate:"required"`             // Username is required
	Password string `validate:"required"`             // Password is required
}

Jump to

Keyboard shortcuts

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