Documentation ¶
Overview ¶
The package godxmap provides a simple way to integrate F5UII's HamDXMap into Go programs. This allows to show callsigns, dx spots or gab chat messages (a Win-Test peculiarity) on the map.
For more information about the used protocol, please refer to the [wtSock API reference]
[wtSock API reference] : https://dxmap.f5uii.net/help/index.html.
Index ¶
- type Server
- func (s *Server) Close() error
- func (s *Server) Serve() error
- func (s *Server) ShowDXSpot(spot string, spotter string, frequencyKHz float64, comments string)
- func (s *Server) ShowGab(from string, to string, message string)
- func (s *Server) ShowLoggedCall(call string, frequencyKHz float64)
- func (s *Server) ShowPartialCall(call string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server opens a websocket and allows to send wtSock frames to all connected websocket clients.
func NewServer ¶
NewServer creates a new server instance for the given listening address. To actually start the server instance, use the Serve method.
func (*Server) Close ¶
Close the active connections, all active net.Listeners, and stop the server.
Close returns any error returned from closing the Server's underlying Listener(s).
func (*Server) Serve ¶
Serve starts this server on its dedicated listening address. It accepts incoming websocket connections and will distribute wtSock frames to all connected clients.
Serve always returns a non-nil error. After [Server.Shutdown] or Server.Close, the returned error is [ErrServerClosed].
func (*Server) ShowDXSpot ¶
ShowDXSpot adds information about a DX spot to the map.
func (*Server) ShowLoggedCall ¶
ShowLoggedCall adds information about a logged callsign to the map.
func (*Server) ShowPartialCall ¶
ShowPartialCall shows the position of a (partially) entered callsign on the map.