handler

package
v0.0.0-...-3956df7 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 13 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 {
	Configuration *environment.Configuration
	Gateway       gateway.Gateway
	Services      *services.Services
	MacAddress    string
	Connected     bool
	DoingRequest  bool
	CommandUrl    string
}

func NewHandler

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

func (*Handler) HandleCommand

func (h *Handler) HandleCommand()

func (*Handler) HandleServer

func (h *Handler) HandleServer()

func (*Handler) Log

func (h *Handler) Log(v string)

func (*Handler) ReceiveCommand

func (h *Handler) ReceiveCommand() (entities.Payload, 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