Documentation ¶
Index ¶
- type NodeStat
- type Server
- func (s *Server) ConnectedNodes() int
- func (s *Server) SetBackgroundImage(image image.Image)
- func (s *Server) SetDebug(state bool)
- func (s *Server) SetLogger(logger logr.Logger)
- func (s *Server) SetMobility(mobility *emu.Mobility)
- func (s *Server) SetOrigin(x float64, y float64)
- func (s *Server) Start(bind string) error
- func (s *Server) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Server represents the LoRa emu webserver that hosts the frontend and REST API.
func (*Server) ConnectedNodes ¶
func (*Server) SetBackgroundImage ¶
SetBackgroundImage sets a background image that should be displayed in the emu.
func (*Server) SetDebug ¶
SetDebug sets the debug state of the server. If debug is enabled the server expects the vite dev server of the frontend to be running.
func (*Server) SetLogger ¶
SetLogger sets the logger of the server. If no logger is present no logs will be printed.
func (*Server) SetMobility ¶
SetMobility sets a target mobility instance. This will enable the server to pause and resume the mobility.
Click to show internal directories.
Click to hide internal directories.