Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig(database *data.DB, logger *logrus.Logger, conf *Configuration)
func SaveConfig ¶
func SaveConfig(database *data.DB, logger *logrus.Logger, conf *Configuration)
Types ¶
type Configuration ¶
type Configuration struct { ID int RootPath string ScriptsAsFiles bool // Store scripts on the filesystem ScriptsPath string // Path to script storage EnableFileAPI bool // Enable the filesystem API in scripts FileAPIRoot string // Only allow filesystem ops in this directory Network string // Hostname and port, format: hostname:1234 TLS bool // Enable TLS/SSL for IRC AutoConnect bool Nick string Username string SASL bool // Enable SASL authentication SASLUsername string SASLPassword string OwnerNick string OwnerHost string WebInterface bool HTTPHostPort string // Hostname and port, format: hostname:1234 HTTPS bool RequireHTTPS bool SSLCertFile string SSLCertKey string SSLHostPort string // Hostname and port, format: hostname:1234 HTTPAuth bool AuthUsername string AuthPassword string PluginsEnabled []string // List of plugins to load PluginsPath string // Path to search for plugins in. }
func NewConfiguration ¶
func NewConfiguration(rootPath string) *Configuration
Click to show internal directories.
Click to hide internal directories.