Documentation
¶
Overview ¶
Package remotelisten manages the desktop application's incoming workspace connections.
Index ¶
Constants ¶
const ( WebSocket = iota TCP )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is shared by all windows and called from the desktop UI thread.
func Open ¶
func Open(directory string) *Controller
func (*Controller) Apply ¶
func (c *Controller) Apply(settings Settings) error
Apply binds replacement ports and saves the configuration before retiring current listeners. A failed bind or save leaves the current setup in use.
func (*Controller) Close ¶
func (c *Controller) Close()
func (*Controller) LoadError ¶
func (c *Controller) LoadError() error
func (*Controller) Settings ¶
func (c *Controller) Settings() Settings
func (*Controller) Token ¶
func (c *Controller) Token() string
type ListenerSettings ¶
type Settings ¶
type Settings struct {
WebSocket ListenerSettings `json:"websocket"`
TCP ListenerSettings `json:"tcp"`
}