vncproxy/proxy/vnc-session.go
Marc Falzon 9a52a433ea Add support for UNIX socket VNC target
This change add support for targeting a VNC server via a local UNIX
socket. It introduces a new `-target` CLI flag able to handle both TCP
"address:port" and "/path/to/unix.socket" formats, and deprecates the
previous `-targHost` and `-targPort` flags for future removal.
2018-11-01 10:14:15 +01:00

28 lines
479 B
Go

package proxy
type SessionStatus int
type SessionType int
const (
SessionStatusInit SessionStatus = iota
SessionStatusActive
SessionStatusError
)
const (
SessionTypeRecordingProxy SessionType = iota
SessionTypeReplayServer
SessionTypeProxyPass
)
type VncSession struct {
Target string
TargetHostname string
TargetPort string
TargetPassword string
ID string
Status SessionStatus
Type SessionType
ReplayFilePath string
}