server

package
v0.0.0-...-8c278e4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: BSD-3-Clause Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServerHandler

func NewServerHandler(address, port string) handler.Server

Types

type ServerHandler

type ServerHandler struct {
	Listener net.Listener
	Devices  map[string]*models.Device
}

func (*ServerHandler) AcceptConnections

func (server *ServerHandler) AcceptConnections()

func (*ServerHandler) GetDevice

func (server *ServerHandler) GetDevice(key string) (*models.Device, bool)

func (*ServerHandler) HandleConnections

func (server *ServerHandler) HandleConnections()

func (*ServerHandler) SetDevice

func (server *ServerHandler) SetDevice(key string, device *models.Device)

Jump to

Keyboard shortcuts

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