Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimulatorRepository ¶
type SimulatorRepository interface { Run() bool Stop() bool GetIstance() AddWebSocket(*socketio.Conn) SaveBridgeAddress(models.AddressIP) error GetBridgeAddress() models.AddressIP GetGateways() []gw.Gateway AddGateway(*gw.Gateway) (int, int, error) UpdateGateway(*gw.Gateway) (int, error) DeleteGateway(int) bool AddDevice(*dev.Device) (int, int, error) GetDevices() []dev.Device UpdateDevice(*dev.Device) (int, error) DeleteDevice(int) bool ToggleStateDevice(int) SendMACCommand(lorawan.CID, e.MacCommand) ChangePayload(e.NewPayload) (string, bool) SendUplink(e.NewPayload) ChangeLocation(e.NewLocation) bool ToggleStateGateway(int) }
SimulatorRepository è il repository del simulatore
func NewSimulatorRepository ¶
func NewSimulatorRepository() SimulatorRepository
NewSimulatorRepository return repository del simulatore
Click to show internal directories.
Click to hide internal directories.