server

package
v0.0.0-...-7d39aca Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MiniserverAisprid

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

func Listen

func Listen(port string) (MiniserverAisprid, error)

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

func (MiniserverAisprid) Run

func (server MiniserverAisprid) Run() (MiniserverAisprid, error)

func (MiniserverAisprid) Test

func (server MiniserverAisprid) Test() (MiniserverAisprid, error)

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

type MiniserverAispridClient

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

It is client for connecting to "MiniserverAisprid" server.

func Connect

func Connect(url string) (MiniserverAispridClient, error)

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

func (MiniserverAispridClient) Close

func (client MiniserverAispridClient) Close()

Fonction to close connection to the server

func (MiniserverAispridClient) GetAlertHistory

func (client MiniserverAispridClient) GetAlertHistory() ([]*messages.GetAlertHistoryReply_Alert, error)

Return alert history based on previous Set() call where name/value exceed threashold defined on server side.

func (MiniserverAispridClient) Set

func (client MiniserverAispridClient) Set(varName string, varValue int32) (string, error)

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

func (MiniserverAispridClient) Test

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

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

Jump to

Keyboard shortcuts

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