mirror of
https://github.com/mrusme/neonmodem.git
synced 2024-12-04 14:46:37 -05:00
22 lines
419 B
Go
22 lines
419 B
Go
|
package lobsters
|
||
|
|
||
|
type UserAPIKey struct {
|
||
|
Key string `json:"key"`
|
||
|
Nonce string `json:"nonce"`
|
||
|
Push bool `json:"push"`
|
||
|
API int `json:"api"`
|
||
|
}
|
||
|
|
||
|
func (sys *System) Connect(sysURL string) error {
|
||
|
// Credentials
|
||
|
credentials := make(map[string]string)
|
||
|
|
||
|
if sys.config == nil {
|
||
|
sys.config = make(map[string]interface{})
|
||
|
}
|
||
|
sys.config["url"] = sysURL
|
||
|
sys.config["credentials"] = credentials
|
||
|
|
||
|
return nil
|
||
|
}
|