proxy

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientUpdater

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

func (*ClientUpdater) Consume

func (cc *ClientUpdater) Consume(seg *common.RfbSegment) error

Consume recieves vnc-server-bound messages (Client messages) and updates the server part of the proxy

type ServerUpdater

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

func (*ServerUpdater) Consume

func (p *ServerUpdater) Consume(seg *common.RfbSegment) error

type SessionManager

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

func (*SessionManager) DeleteSession

func (s *SessionManager) DeleteSession(sessionId string) error

func (*SessionManager) GetSession

func (s *SessionManager) GetSession(sessionId string) (*VncSession, error)

func (*SessionManager) SetSession

func (s *SessionManager) SetSession(sessionId string, session *VncSession) error

type SessionStatus

type SessionStatus int
const (
	SessionStatusInit SessionStatus = iota
	SessionStatusActive
	SessionStatusError
)

type SessionType

type SessionType int
const (
	SessionTypeRecordingProxy SessionType = iota
	SessionTypeReplayServer
	SessionTypeProxyPass
)

type VncProxy

type VncProxy struct {
	TCPListeningURL  string      // empty = not listening on tcp
	WsListeningURL   string      // empty = not listening on ws
	ProxyVncPassword string      //empty = no auth
	SingleSession    *VncSession // to be used when not using sessions
	UsingSessions    bool        //false = single session - defined in the var above
	SessionManager   *SessionManager
}

func (*VncProxy) StartListening

func (vp *VncProxy) StartListening()

type VncSession

type VncSession struct {
	Target         string
	TargetPassword string
	ID             string
	Status         SessionStatus
	Type           SessionType
}

Jump to

Keyboard shortcuts

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