config

package
v0.0.0-...-9402fd8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppDiscoveryMeta

type AppDiscoveryMeta struct {
	ID           string `json:"id"`
	AppName      string `json:"app_name"`
	Addr         string `json:"addr"`
	AppMode      string `json:"app_mode"`
	HasChat      bool   `json:"has_chat"`
	PageTitle    string `json:"page_title"`
	ScreenWidth  int    `json:"screen_width"`
	ScreenHeight int    `json:"screen_height"`
}

TODO: sync with discovery.go

type Config

type Config struct {
	Path    string `yaml:"path"`
	AppFile string `yaml:"appFile"`
	// To help WinAPI search the app
	WindowTitle  string `yaml:"windowTitle"`
	HWKey        bool   `yaml:"hardwareKey"`
	AppMode      string `yaml:"appMode"`
	AppName      string `yaml:"appName"`
	ScreenWidth  int    `yaml:"screenWidth"`  // Default: 800
	ScreenHeight int    `yaml:"screenHeight"` // Default: 600
	IsWindowMode *bool  `yaml:"isWindowMode"`
	// Discovery service
	DiscoveryHost string `yaml:"discoveryHost"`
	InstanceAddr  string `yaml:"instanceAddr"`
	// Frontend plugin
	HasChat   bool   `yaml:"hasChat"`
	PageTitle string `yaml:"pageTitle"`
	// WebRTC config
	StunTurn   string `yaml:"stunturn"` // Default: Google STUN, disable it with the "none" value
	VideoCodec string `yaml:"videoCodec"`
	// Virtualization mode: To use in Windows. Linux is already fully virtualized with Docker+Wine
	IsVirtualized bool `yaml:"virtualize"`
	// Optional 1:1 NAT mapping
	NAT1To1IP           string `yaml:"nat1to1ip"`
	DisableInterceptors bool   `yaml:"disableInterceptors"`
}

func ReadConfig

func ReadConfig(path string) (Config, error)

Jump to

Keyboard shortcuts

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