Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Enabled bool `toml:"enabled"` // IP Address the REST API listens on // If empty or non-existing listen on all interfaces IP string `toml:"ip"` // Port the REST API listens on Port string `toml:"port"` }
API holds the API settings for the AbyleBotter configuration
type Botter ¶
type Botter struct {
Address string
}
Botter holds the configuration for one Botter instance
type Config ¶
type Config struct { General General `toml:"general"` MongoBotConfigProvider MongoBotConfigProvider `toml:"mongobotconfigprovider"` Botters map[string]Botter }
Config holds the complete AbyleBotter config
func ParseFromFile ¶
ParseFromFile and return the config if successful
type General ¶
type General struct {
API API `toml:"api"`
}
General holds the general settings for the AbyleBotter configuration
type MongoBotConfigProvider ¶
type MongoBotConfigProvider struct { // URL to connect to URL string // Database to use Database string }
MongoBotConfigProvider holds the settings for the mongodb bot config provider
Click to show internal directories.
Click to hide internal directories.