vnc

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VNC

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

func New

func New(appCtx context.Context, manager *vnc_svc.Manager) *VNC

func (*VNC) Cleanup

func (r *VNC) Cleanup()

func (*VNC) ConnectVNC

func (r *VNC) ConnectVNC(assetID int64) (*vnc_svc.Session, error)

func (*VNC) DisconnectVNC

func (r *VNC) DisconnectVNC(sessionID string)

func (*VNC) EncodeVNCClipboardText

func (r *VNC) EncodeVNCClipboardText(text string) ([]int, error)

func (*VNC) StartVNCStream

func (r *VNC) StartVNCStream(sessionID string) error

StartVNCStream 挂上 IPC 回调并启动读 pump。前端必须在 EventsOn 订阅 vnc:data/closed 之后再调,保证不丢 RFB 握手首包。

func (*VNC) Startup

func (r *VNC) Startup(ctx context.Context)

func (*VNC) WriteVNC

func (r *VNC) WriteVNC(sessionID, dataB64 string) error

WriteVNC 把前端(noVNC)发来的 base64 字节写入目标连接。

Jump to

Keyboard shortcuts

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