Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Websocket WebsocketConfig `json:"websocket,omitempty" yaml:"websocket,omitempty"` Wsjtx WsjtxConfig `json:"wsjtx,omitempty" yaml:"wsjtx,omitempty"` VersionInfo string `json:"-"` }
func ParseAllConfigs ¶
type WebsocketConfig ¶
type WebsocketConfig struct { // Address is the IP or hostname from which to serve the websocket HTTP Address string `json:"address,omitempty" yaml:"address,omitempty"` // Port is the TCP port from which to serve the websocket HTTP Port uint `json:"port,omitempty" yaml:"port,omitempty"` // key is the path to the TLS private key file (needed only if serving securely) Key string `json:"key,omitempty" yaml:"key,omitempty"` // cert is the path to the TLS public certificate file (needed only if serving securely) Cert string `json:"cert,omitempty" yaml:"cert,omitempty"` // allowedOrigins are the web origins which are allowed by CORS AllowedOrigins []string `json:"allowedOrigins,omitempty" yaml:"allowedOrigins,omitempty"` }
type WsjtxConfig ¶
type WsjtxConfig struct { // Enabled is whether to listen to WSJT-X Enabled bool `json:"enabled" yaml:"enabled,omitempty"` // Address is the IP or hostname on which to listen to WSJT-X Address string `json:"address,omitempty" yaml:"address,omitempty"` // Port is the UDP port on which to listen to WSJT-X Port uint `json:"port,omitempty" yaml:"port,omitempty"` }
Click to show internal directories.
Click to hide internal directories.