Documentation ¶
Index ¶
- type ModuleConfig
- func (hc *ModuleConfig) AddNewDevice(dev coreconfig.CoreConfig) bool
- func (hc *ModuleConfig) GetDevice(uid string) (*coreconfig.CoreConfig, error)
- func (hc *ModuleConfig) GetDevices() []coreconfig.CoreConfig
- func (hc *ModuleConfig) GetDisabledDevices() []string
- func (hc *ModuleConfig) GetEnabledDevices() []string
- func (hc *ModuleConfig) GetExportFileRoot() string
- func (hc *ModuleConfig) GetNoCores() int
- func (hc *ModuleConfig) LoadConfig() error
- func (hc ModuleConfig) SaveConfig() error
- func (hc *ModuleConfig) SetEnabledDevices(uids []string)
- func (hc *ModuleConfig) SetExportFileRoot(path string)
- func (hc *ModuleConfig) SetNoCores(n int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModuleConfig ¶
type ModuleConfig struct { Header config.FileHeader UIFileRoot string StaticFileRoot string LangFileRoot string NoCores int ExportFileRoot string Devices []coreconfig.CoreConfig }
func (*ModuleConfig) AddNewDevice ¶
func (hc *ModuleConfig) AddNewDevice(dev coreconfig.CoreConfig) bool
func (*ModuleConfig) GetDevice ¶
func (hc *ModuleConfig) GetDevice(uid string) (*coreconfig.CoreConfig, error)
func (*ModuleConfig) GetDevices ¶
func (hc *ModuleConfig) GetDevices() []coreconfig.CoreConfig
func (*ModuleConfig) GetDisabledDevices ¶
func (hc *ModuleConfig) GetDisabledDevices() []string
func (*ModuleConfig) GetEnabledDevices ¶
func (hc *ModuleConfig) GetEnabledDevices() []string
func (*ModuleConfig) GetExportFileRoot ¶
func (hc *ModuleConfig) GetExportFileRoot() string
func (*ModuleConfig) GetNoCores ¶
func (hc *ModuleConfig) GetNoCores() int
func (*ModuleConfig) LoadConfig ¶
func (hc *ModuleConfig) LoadConfig() error
func (ModuleConfig) SaveConfig ¶
func (hc ModuleConfig) SaveConfig() error
func (*ModuleConfig) SetEnabledDevices ¶
func (hc *ModuleConfig) SetEnabledDevices(uids []string)
func (*ModuleConfig) SetExportFileRoot ¶
func (hc *ModuleConfig) SetExportFileRoot(path string)
func (*ModuleConfig) SetNoCores ¶
func (hc *ModuleConfig) SetNoCores(n int)
Click to show internal directories.
Click to hide internal directories.