config

package
v0.4.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

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

func ParseAllConfigs() (Config, error)

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL