Documentation ¶
Overview ¶
Package client
Index ¶
- Variables
- type Callback
- type WeylusClient
- func (w *WeylusClient) AddCallback(event protocol.WeylusResponse, callback Callback) int
- func (w *WeylusClient) AddCallbackNext(event protocol.WeylusResponse, callback Callback)
- func (w *WeylusClient) Close() error
- func (w *WeylusClient) Config(config protocol.Config) (protocol.WeylusResponse, error)
- func (w *WeylusClient) Dial(address string) error
- func (w *WeylusClient) GetCapturableList() (protocol.CapturableList, error)
- func (w *WeylusClient) Listen()
- func (w *WeylusClient) RemoveCallback(event protocol.WeylusResponse, i int) int
- func (w *WeylusClient) Run()
- func (w *WeylusClient) RunVideo()
- func (w *WeylusClient) SendKeyboardEvent(e protocol.KeyboardEvent) error
- func (w *WeylusClient) SendPointerEvent(e protocol.PointerEvent) error
- func (w *WeylusClient) SendWheelEvent(e protocol.WheelEvent) error
- func (w *WeylusClient) StartVideo() error
- func (w *WeylusClient) TryGetFrame() error
Constants ¶
This section is empty.
Variables ¶
View Source
var WebsocketNotStartedError = errors.New("Websocket not initialized")
Functions ¶
This section is empty.
Types ¶
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 (w *WeylusClient) Config(config protocol.Config) (protocol.WeylusResponse, error)
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
Click to show internal directories.
Click to hide internal directories.