Documentation
¶
Index ¶
- func ConfigDir() string
- func ConfigFlagsProcess() (err error)
- func ConfigFlagsRegister(notecardFlags bool, notehubFlags bool)
- func ConfigRead() error
- func ConfigReset()
- func ConfigShow() error
- func ConfigWrite() error
- func FlagParse(notecardFlags bool, notehubFlags bool) (err error)
- type ConfigSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFlagsProcess ¶
func ConfigFlagsProcess() (err error)
ConfigFlagsProcess processes the registered config flags
func ConfigFlagsRegister ¶
ConfigFlagsRegister registers the config-related flags
func ConfigWrite ¶
func ConfigWrite() error
ConfigWrite updates the file with the current config info
Types ¶
type ConfigSettings ¶
type ConfigSettings struct {
When string `json:"when,omitempty"`
Hub string `json:"hub,omitempty"`
App string `json:"app,omitempty"`
Product string `json:"product,omitempty"`
Device string `json:"device,omitempty"`
Root string `json:"root,omitempty"`
Cert string `json:"cert,omitempty"`
Key string `json:"key,omitempty"`
Unsecure bool `json:"unsecure,omitempty"`
Interface string `json:"interface,omitempty"`
Port string `json:"port,omitempty"`
PortConfig int `json:"port_config,omitempty"`
}
ConfigSettings defines the config file that maintains the command processor's state
var Config ConfigSettings
Config are the master config settings
Click to show internal directories.
Click to hide internal directories.