client

package
v0.0.0-...-3ed38a9 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(ws *websocket.Conn, ac *agent.Client) *Client

func (*Client) ProcessFrame

func (c *Client) ProcessFrame(frame *agent.Frame) error

func (*Client) ProcessSysLog

func (c *Client) ProcessSysLog(line string) error

func (*Client) SendMsg

func (c *Client) SendMsg(msg ClientOutMsg) error

type ClientInMsg

type ClientInMsg struct {
	Type       string      `json:"type"`
	Line       *string     `json:"line"`
	TouchEvent *TouchEvent `json:"touchEvent"`
	PowerEvent *string     `json:"powerEvent"`
}

type ClientOutMsg

type ClientOutMsg struct {
	Type string  `json:"type"`
	Line *string `json:"line"`
}

type TouchEvent

type TouchEvent struct {
	Id       uint32 `json:"id"`
	X        uint32 `json:"x"`
	Y        uint32 `json:"y"`
	Pressure uint32 `json:"pressure"`
}

Jump to

Keyboard shortcuts

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