Documentation ¶
Overview ¶
Package config handles reading and parsing the config.yaml file, which contains the configuration for the server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeRecommendedHandlingOrder ¶
ComputeRecommendedHandlingOrder computes the recommended handling order for a message. Only message types with computed (non-static) recommended handling orders are handled by this function.
Types ¶
type BBSConfig ¶
type BBSConfig struct { Transport string `yaml:"transport"` AX25 string `yaml:"ax25"` TCP string `yaml:"tcp"` Passwords map[string]string `yaml:"passwords"` }
BBSConfig holds the configuration of a single BBS.
type Config ¶
type Config struct { BBSes map[string]*BBSConfig `yaml:"bbses"` MinPIFOVersion string `yaml:"minPIFOVersion"` MessageTypes map[string]*MessageTypeConfig `yaml:"messageTypes"` ServerURL string `yaml:"serverURL"` ListenAddr string `yaml:"listenAddr"` SMTP *SMTPConfig `yaml:"smtp"` CanViewEveryone []string `yaml:"canViewEveryone"` CanEditSessions []string `yaml:"canEditSessions"` }
Config holds all of the configuration data.
type MessageTypeConfig ¶
type MessageTypeConfig struct { MinimumVersion string `yaml:"minimumVersion"` HandlingOrder string `yaml:"handlingOrder"` ToICSPosition []string `yaml:"toICSPosition"` ToLocation []string `yaml:"toLocation"` }
A MessageTypeConfig structure specifies the configuration for a particular message type.
Click to show internal directories.
Click to hide internal directories.