client

package
v0.0.0-...-cd2df2e Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package client

Index

Constants

This section is empty.

Variables

View Source
var WebsocketNotStartedError = errors.New("Websocket not initialized")

Functions

This section is empty.

Types

type Callback

type Callback func(msg utils.Msg)

type WeylusClient

type WeylusClient struct {
	Framerate uint

	BufPipe *bufio.ReadWriter
	// contains filtered or unexported fields
}

func NewWeylusClient

func NewWeylusClient(ctx context.Context, fps uint) *WeylusClient

func (*WeylusClient) AddCallback

func (w *WeylusClient) AddCallback(event protocol.WeylusResponse, callback Callback) int

func (*WeylusClient) AddCallbackNext

func (w *WeylusClient) AddCallbackNext(event protocol.WeylusResponse, callback Callback)

func (*WeylusClient) Close

func (w *WeylusClient) Close() error

func (*WeylusClient) Config

func (*WeylusClient) Dial

func (w *WeylusClient) Dial(address string) error

func (*WeylusClient) GetCapturableList

func (w *WeylusClient) GetCapturableList() (protocol.CapturableList, error)

func (*WeylusClient) Listen

func (w *WeylusClient) Listen()

func (*WeylusClient) RemoveCallback

func (w *WeylusClient) RemoveCallback(event protocol.WeylusResponse, i int) int

func (*WeylusClient) Run

func (w *WeylusClient) Run()

func (*WeylusClient) RunVideo

func (w *WeylusClient) RunVideo()

func (*WeylusClient) SendKeyboardEvent

func (w *WeylusClient) SendKeyboardEvent(e protocol.KeyboardEvent) error

func (*WeylusClient) SendPointerEvent

func (w *WeylusClient) SendPointerEvent(e protocol.PointerEvent) error

func (*WeylusClient) SendWheelEvent

func (w *WeylusClient) SendWheelEvent(e protocol.WheelEvent) error

func (*WeylusClient) StartVideo

func (w *WeylusClient) StartVideo() error

func (*WeylusClient) TryGetFrame

func (w *WeylusClient) TryGetFrame() error

Jump to

Keyboard shortcuts

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