handler

package
v0.0.0-...-4a84db8 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Connection    *websocket.Conn
	Configuration *environment.Configuration
	Gateway       gateways.Gateway
	Services      *services.Services
	ClientID      string
	Connected     bool
}

func NewHandler

func NewHandler(
	configuration *environment.Configuration,
	gateway gateways.Gateway,
	services *services.Services,
	clientID string,
) *Handler

func (*Handler) HandleCommand

func (h *Handler) HandleCommand()

func (*Handler) KeepConnection

func (h *Handler) KeepConnection()

func (*Handler) Log

func (h *Handler) Log(v ...any)

func (*Handler) Reconnect

func (h *Handler) Reconnect()

func (*Handler) RunCommand

func (h *Handler) RunCommand(command string) ([]byte, error)

func (*Handler) SendDeviceSpecs

func (h *Handler) SendDeviceSpecs() error

func (*Handler) ServerIsAvailable

func (h *Handler) ServerIsAvailable() error

Jump to

Keyboard shortcuts

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