Documentation
¶
Overview ¶
Package maConf reads and writes the configurations.
Index ¶
Constants ¶
View Source
const ( // VERSION contains the mahou version. VERSION = "0.0.1" // PATH contains relative or absolute default path to the configuration // file. PATH = "mahou.conf" )
Variables ¶
This section is empty.
Functions ¶
func PopulateConfig ¶
PopulateConfig copies the sample config to <path>.
Types ¶
type Config ¶
type Config struct {
Login *Login
Prefs *Preferences
// contains filtered or unexported fields
}
Config represents the whole mahou configuration, containing all the needed substructures.
func ReadConfig ¶
ReadConfig reads the configuration file.
type Login ¶
type Login struct {
Localpart string
Password string
HomeServer string
UserID string
AccessToken string
}
Login represents the information needed to log into a Matrix server.
type Preferences ¶
type Preferences struct {
}
Preferences represents settings that are not required.
Click to show internal directories.
Click to hide internal directories.