Documentation ¶
Index ¶
Constants ¶
View Source
const DATE_TIME_LAYOUT = "2006-01-02T15:04:05.000Z"
Variables ¶
This section is empty.
Functions ¶
func InitDb ¶
func InitDb(path string, jsonDB *DevicesJsonDB) (err error)
Types ¶
type Device ¶
type Device struct { Id int `json:"-"` Product string `json:"product"` Name string `json:"name"` LastCheckedOn string `json:"last_checked_on"` LastCheckedOnParsed time.Time `json:"-"` Updates []*DeviceUpdate `json:"updates,omitempty"` }
func FetchAllDevices ¶
func FetchAllDevicesByKey ¶
func FetchDeviceByProduct ¶
type DeviceUpdate ¶
type DevicesJsonDB ¶
type DevicesJsonDB struct {
// contains filtered or unexported fields
}
func LoadDevices ¶
func LoadDevices(path string) (*DevicesJsonDB, error)
Click to show internal directories.
Click to hide internal directories.