server

package
v0.0.0-...-b1a6986 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenHouseEnergyModuleClient

type OpenHouseEnergyModuleClient struct {
	// contains filtered or unexported fields
}

It is client for connecting to "OpenHouseEnergyModule" server.

func Connect

Fonction to connect to the server : prerequisites for all communications : call to GetAlertHistory and Set

func (OpenHouseEnergyModuleClient) Close

func (client OpenHouseEnergyModuleClient) Close()

Fonction to close connection to the server

func (OpenHouseEnergyModuleClient) SendModuleDescription

func (client OpenHouseEnergyModuleClient) SendModuleDescription(description *messages.SendModuleDescriptionRequest) (string, error)

Set the current value of the variable name registred on the server.

func (OpenHouseEnergyModuleClient) Test

func (client OpenHouseEnergyModuleClient) Test() (string, error)

Function to test client/server communication with simple ASCII (useless now?)

type OpenHouseEnergyModuleServer

type OpenHouseEnergyModuleServer struct {
	// contains filtered or unexported fields
}

func Listen

func Listen(port int32) (OpenHouseEnergyModuleServer, error)

Launch the server and never stop (Hard kill for stop : TODO : better way: special message?)

func (OpenHouseEnergyModuleServer) Run

Jump to

Keyboard shortcuts

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