Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authtokens ¶
type Authtokens struct {
Tokens []string `json:"tokens"`
}
Authtokens stores json represent array of tokens
type HiveConfig ¶
type HiveConfig struct {
ServerURL string `json:"server"`
TokensPath string `json:"token_file_path"`
DeviceCodes string `json:"device_codes_file_path"`
SecondsDelay int64 `json:"delay"`
Endpoints map[string]Endpoints `json:"endpoints"`
}
HiveConfig gather all of needed configs
func GetConfigJSON ¶
func GetConfigJSON(jsonFile string) (cfg HiveConfig, err error)
GetConfigJSON func get full path to config.json and store it in HiveConfig struct
type SadirLogins ¶
type SadirLogins struct {
Logins []string `json:"sadira_logins"`
}
SadirLogins stores logins
func GetLogins ¶
func GetLogins(loginsFile string) (logins SadirLogins, err error)
GetLogins read avaible logins and return it
Click to show internal directories.
Click to hide internal directories.