Versions in this module Expand all Collapse all v1 v1.1.0 May 5, 2025 Changes in this version type Config + Protocol string + type NMEA2000Server interface + SendPGN func(msg pgn.Message) error + type TCP2000Server struct + func NewTCP2000Server(cfg Config) *TCP2000Server + func (s *TCP2000Server) SendPGN(msg pgn.Message) error + func (s *TCP2000Server) Start(ctx context.Context) error + func (s *TCP2000Server) Stop() error + type WebSocket2000Server struct + func NewWebSocket2000Server(cfg Config) *WebSocket2000Server + func (s *WebSocket2000Server) SendPGN(msg pgn.Message) error + func (s *WebSocket2000Server) Start(ctx context.Context) error + func (s *WebSocket2000Server) Stop() error v1.0.0 Apr 30, 2025 Changes in this version + type BaseServer struct + Config Config + Done chan struct{} + Mu sync.RWMutex + func NewBaseServer(cfg Config) *BaseServer + type Config struct + BaudRate int + Host string + Logger zerolog.Logger + Port int + SentenceOptions SentenceOptions + UpdateInterval time.Duration + type SentenceOptions struct + EnableEnvironment bool + EnableNavigation bool + EnablePosition bool + type Server interface + Start func(ctx context.Context) error + Stop func() error + type TCPServer struct + func NewTCPServer(cfg Config) *TCPServer + func (s *TCPServer) Start(ctx context.Context) error + func (s *TCPServer) Stop() error + type WebSocketServer struct + func NewWebSocketServer(cfg Config) *WebSocketServer + func (s *WebSocketServer) Start(ctx context.Context) error + func (s *WebSocketServer) Stop() error