Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
/////////// /////////// generic helper functions
func Debug_dumpDeviceList ¶
/////////// /////////// debug functions
func FindDeviceByKey ¶
func FindDeviceByMac ¶
func SetupBackend ¶
func SetupBackend()
Types ¶
type Device ¶
type Device struct { Name string `json:"name"` // name a device identified itself with Key string `json:"key"` // key the device will use to authenticate itself with backend-api Mac string `json:"mac"` // MAC address of any interface provided by the device LastCheckin time.Time `json:"last_checkin"` // time when the device last checked in OS string `json:"os"` // operating system running on the device }
Device is for maintaining devices currently being handled by this backend process
type ReturnCode ¶
type ReturnCode struct { Code int `json:"code"` CodeString string `json:"code_string"` Comment string `json:"comment"` }
ReturnCode is for responses to devices
Click to show internal directories.
Click to hide internal directories.