Versions in this module Expand all Collapse all v0 v0.0.2 Mar 13, 2024 v0.0.1 Feb 1, 2024 Changes in this version + type BellMessage byte + func (*BellMessage) Read(*ClientConn, io.Reader) (ServerMessage, error) + func (*BellMessage) Type() uint8 + type ButtonMask uint8 + const Button4 + const Button5 + const Button6 + const Button7 + const Button8 + const ButtonLeft + const ButtonMiddle + const ButtonRight + type ClientAuth interface + Handshake func(net.Conn) error + SecurityType func() uint8 + type ClientAuthNone byte + func (*ClientAuthNone) Handshake(net.Conn) error + func (*ClientAuthNone) SecurityType() uint8 + type ClientConfig struct + Auth []ClientAuth + Exclusive bool + ServerMessageCh chan<- ServerMessage + ServerMessages []ServerMessage + type ClientConn struct + ColorMap [256]Color + DesktopName string + Encs []Encoding + FrameBufferHeight uint16 + FrameBufferWidth uint16 + PixelFormat PixelFormat + func Client(c net.Conn, cfg *ClientConfig) (*ClientConn, error) + func (c *ClientConn) Close() error + func (c *ClientConn) CutText(text string) error + func (c *ClientConn) FramebufferUpdateRequest(incremental bool, x, y, width, height uint16) error + func (c *ClientConn) KeyEvent(keysym uint32, down bool) error + func (c *ClientConn) PointerEvent(mask ButtonMask, x, y uint16) error + func (c *ClientConn) SetEncodings(encs []Encoding) error + func (c *ClientConn) SetPixelFormat(format *PixelFormat) error + type Color struct + B uint16 + G uint16 + R uint16 + type CursorEncoding struct + func (*CursorEncoding) Read(c *ClientConn, rect *Rectangle, r io.Reader) (Encoding, error) + func (*CursorEncoding) Type() int32 + type Encoding interface + Read func(*ClientConn, *Rectangle, io.Reader) (Encoding, error) + Type func() int32 + type FramebufferUpdateMessage struct + Rectangles []Rectangle + func (*FramebufferUpdateMessage) Read(c *ClientConn, r io.Reader) (ServerMessage, error) + func (*FramebufferUpdateMessage) Type() uint8 + type PasswordAuth struct + Password string + func (p *PasswordAuth) Handshake(c net.Conn) error + func (p *PasswordAuth) SecurityType() uint8 + type PixelFormat struct + BPP uint8 + BigEndian bool + BlueMax uint16 + BlueShift uint8 + Depth uint8 + GreenMax uint16 + GreenShift uint8 + RedMax uint16 + RedShift uint8 + TrueColor bool + type RawEncoding struct + Colors []Color + RawPixel []uint32 + func (*RawEncoding) Read(c *ClientConn, rect *Rectangle, r io.Reader) (Encoding, error) + func (*RawEncoding) Type() int32 + type Rectangle struct + Enc Encoding + Height uint16 + Width uint16 + X uint16 + Y uint16 + type ServerCutTextMessage struct + Text string + func (*ServerCutTextMessage) Read(c *ClientConn, r io.Reader) (ServerMessage, error) + func (*ServerCutTextMessage) Type() uint8 + type ServerMessage interface + Read func(*ClientConn, io.Reader) (ServerMessage, error) + Type func() uint8 + type SetColorMapEntriesMessage struct + Colors []Color + FirstColor uint16 + func (*SetColorMapEntriesMessage) Read(c *ClientConn, r io.Reader) (ServerMessage, error) + func (*SetColorMapEntriesMessage) Type() uint8 + type ZlibEncoding struct + Colors []Color + RawPixel []uint32 + ZReader io.ReadCloser + ZStream *bytes.Buffer + func (*ZlibEncoding) Type() int32 + func (ze *ZlibEncoding) Close() + func (ze *ZlibEncoding) Read(c *ClientConn, rect *Rectangle, r io.Reader) (Encoding, error)