Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RuntimeConfig Config Terrarium TerrariumConfig )
Functions ¶
Types ¶
type AllowConfig ¶ added in v0.0.8
type AllowConfig struct {
Origins string `mapstructure:"origins"`
}
type ApiConfig ¶ added in v0.0.8
type ApiConfig struct { Allow AllowConfig `mapstructure:"allow"` Auth AuthConfig `mapstructure:"auth"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` }
type AuthConfig ¶ added in v0.0.8
type AuthConfig struct {
Enabled bool `mapstructure:"enabled"`
}
type AutoControlConfig ¶ added in v0.0.8
type AutoControlConfig struct {
DurationMilliSec int `mapstructure:"duration_ms"`
}
type Config ¶ added in v0.0.8
type Config struct {
Terrarium TerrariumConfig `mapstructure:"terrarium"`
}
type LogfileConfig ¶ added in v0.0.8
type NodeConfig ¶ added in v0.0.8
type NodeConfig struct {
Env string `mapstructure:"env"`
}
type SelfConfig ¶ added in v0.0.8
type SelfConfig struct {
Endpoint string `mapstructure:"endpoint"`
}
type TerrariumConfig ¶ added in v0.0.8
type TerrariumConfig struct { Root string `mapstructure:"root"` Self SelfConfig `mapstructure:"self"` API ApiConfig `mapstructure:"api"` LogFile LogfileConfig `mapstructure:"logfile"` LogLevel string `mapstructure:"loglevel"` LogWriter string `mapstructure:"logwriter"` Node NodeConfig `mapstructure:"node"` AutoControl AutoControlConfig `mapstructure:"autocontrol"` Tumblebug TumblebugConfig `mapstructure:"tumblebug"` }
type TumblebugApiConfig ¶ added in v0.0.8
type TumblebugConfig ¶ added in v0.0.8
type TumblebugConfig struct { Endpoint string `mapstructure:"endpoint"` RestUrl string `mapstructure:"resturl"` API TumblebugApiConfig `mapstructure:"api"` }
Click to show internal directories.
Click to hide internal directories.