Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RuntimeConfig Config Damselfly DamselflyConfig )
Functions ¶
Types ¶
type AllowConfig ¶
type AllowConfig struct {
Origins string `mapstructure:"origins"`
}
type ApiConfig ¶
type ApiConfig struct {
Allow AllowConfig `mapstructure:"allow"`
Auth AuthConfig `mapstructure:"auth"`
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
}
type AuthConfig ¶
type AuthConfig struct {
Enabled bool `mapstructure:"enabled"`
}
type AutoControlConfig ¶
type AutoControlConfig struct {
DurationMilliSec int `mapstructure:"duration_ms"`
}
type Config ¶
type Config struct {
Damselfly DamselflyConfig `mapstructure:"damselfly"`
}
type DamselflyConfig ¶
type DamselflyConfig struct {
Root string `mapstructure:"root"`
Self SelfConfig `mapstructure:"self"`
API ApiConfig `mapstructure:"api"`
LKVStore LkvStoreConfig `mapstructure:"lkvstore"`
LogFile LogfileConfig `mapstructure:"logfile"`
LogLevel string `mapstructure:"loglevel"`
LogWriter string `mapstructure:"logwriter"`
Node NodeConfig `mapstructure:"node"`
AutoControl AutoControlConfig `mapstructure:"autocontrol"`
}
type LkvStoreConfig ¶
type LkvStoreConfig struct {
Path string `mapstructure:"path"`
}
type LogfileConfig ¶
type NodeConfig ¶
type NodeConfig struct {
Env string `mapstructure:"env"`
}
type SelfConfig ¶
type SelfConfig struct {
Endpoint string `mapstructure:"endpoint"`
}
Click to show internal directories.
Click to hide internal directories.