Documentation ¶
Index ¶
- func ConfigureLogging()
- func NewSessionMgr() *sessionMgr
- type KeyEvent
- type PointerEvent
- type Region
- type Renderer
- type Screen
- type VNCBatch
- func (v *VNCBatch) Close(name string) error
- func (v *VNCBatch) Flip() (screens []*Screen, updates [][]*vncclient.FramebufferUpdateMessage)
- func (v *VNCBatch) Open(name string, config VNCSessionConfig) error
- func (v *VNCBatch) Peek() (screens []*Screen)
- func (v *VNCBatch) PeekBack() (screens []*Screen)
- func (v *VNCBatch) Render(name string, close bool) error
- func (v *VNCBatch) SetRenderer(name string, renderer Renderer) error
- func (v *VNCBatch) SetSubscription(name string, subs []Region) error
- func (v *VNCBatch) Step(actions map[string][]VNCEvent) (map[string]*Screen, map[string][]*vncclient.FramebufferUpdateMessage, ...)
- type VNCEvent
- type VNCSession
- func (c *VNCSession) Close() error
- func (c *VNCSession) Flip() (*Screen, []*vncclient.FramebufferUpdateMessage)
- func (c *VNCSession) Render(close bool) error
- func (c *VNCSession) SetRenderer(renderer Renderer) error
- func (c *VNCSession) SetSubscription(subs []Region)
- func (c *VNCSession) Step(events []VNCEvent) (*Screen, []*vncclient.FramebufferUpdateMessage, error)
- type VNCSessionConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureLogging ¶
func ConfigureLogging()
func NewSessionMgr ¶
func NewSessionMgr() *sessionMgr
Types ¶
type PointerEvent ¶
type PointerEvent struct { Mask vncclient.ButtonMask X, Y uint16 }
func (PointerEvent) Execute ¶
func (k PointerEvent) Execute(c *vncclient.ClientConn) error
type VNCBatch ¶
type VNCBatch struct {
// contains filtered or unexported fields
}
func NewVNCBatch ¶
func NewVNCBatch() *VNCBatch
func (*VNCBatch) Flip ¶
func (v *VNCBatch) Flip() (screens []*Screen, updates [][]*vncclient.FramebufferUpdateMessage)
func (*VNCBatch) SetSubscription ¶
type VNCEvent ¶
type VNCEvent interface {
Execute(c *vncclient.ClientConn) error
}
type VNCSession ¶
type VNCSession struct {
// contains filtered or unexported fields
}
func NewVNCSession ¶
func NewVNCSession(name string, c VNCSessionConfig) *VNCSession
func (*VNCSession) Close ¶
func (c *VNCSession) Close() error
func (*VNCSession) Flip ¶
func (c *VNCSession) Flip() (*Screen, []*vncclient.FramebufferUpdateMessage)
If rendering, must call from main thread
func (*VNCSession) Render ¶
func (c *VNCSession) Render(close bool) error
Must call from main thread
func (*VNCSession) SetRenderer ¶
func (c *VNCSession) SetRenderer(renderer Renderer) error
func (*VNCSession) SetSubscription ¶
func (c *VNCSession) SetSubscription(subs []Region)
func (*VNCSession) Step ¶
func (c *VNCSession) Step(events []VNCEvent) (*Screen, []*vncclient.FramebufferUpdateMessage, error)
type VNCSessionConfig ¶
type VNCSessionConfig struct { Address string Password string Encoding string QualityLevel int // 0-9, 9 being top quality. Not orthogonal to FineQualityLevel/SubsampleLevel, see https://github.com/TurboVNC/turbovnc/blob/master/unix/Xvnc/programs/Xserver/hw/vnc/rfbserver.c#L1103-L1112 CompressLevel int // 0-9, 9 being highest compression FineQualityLevel int // 0-100, 100 being top quality SubsampleLevel int // 0-3, 3 being grayscale; 0 being full color StartTimeout time.Duration Subscription []Region }
Click to show internal directories.
Click to hide internal directories.