config

package
v0.0.0-...-967dab9 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: MIT Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

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