Documentation ¶
Index ¶
Constants ¶
View Source
const Version = "0.8.0-beta"
Variables ¶
View Source
var ( History []string Switches []Switch DebugInfo DebugInfoData )
View Source
var ( Verbose bool ShowInfo bool Silent bool SmarthomeURL string SessionCookies []*http.Cookie Username string Password string )
View Source
var Config = map[string]string{ Username: "", Password: "", SmarthomeURL: "", }
Functions ¶
func PingServer ¶
func PingServer()
Tests if the server configuration is valid and the server is reachable
func PromptLogin ¶
func PromptLogin()
The login function prompts the user to enter his password and username (if not provided via flag)
Types ¶
type DebugInfoData ¶
type DebugInfoData struct { ServerVersion string `json:"version"` DatabaseOnline bool `json:"databaseOnline"` DatabaseStats DBStatus `json:"databaseStats"` CpuCores uint8 `json:"cpuCores"` Goroutines uint16 `json:"goroutines"` GoVersion string `json:"goVersion"` MemoryUsage uint16 `json:"memoryUsage"` PowerJobCount uint16 `json:"powerJobCount"` PowerJobWithErrorCount uint16 `json:"lastPowerJobErrorCount"` PowerJobs []PowerJob `json:"powerJobs"` PowerJobResults []JobResult `json:"powerJobResults"` }
type LoginRequest ¶
Click to show internal directories.
Click to hide internal directories.