Documentation ¶
Index ¶
- func CreateDbIfNotExists(db_file string) bool
- func CreateIdToGUIDMapping(db *sql.DB, update_id int, update_guid string)
- func DBPoll(db *sql.DB, HOSTNAME string, API_URL string, system_id int)
- func GetUpdateId(db *sql.DB, update_guid string) int
- func SetToSynced(db *sql.DB, system_log_id_slice []int) bool
- type UpdateIdToUpdateGuid
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDbIfNotExists ¶
CreateDbIfNotExists creates a sqlite database at db_file path if it doesn't exist. returns a bool of the success of creating the database file.
func CreateIdToGUIDMapping ¶
CreateIdToGUIDMapping inserts into the local database a mapping of the remote id to the local update_guid
func DBPoll ¶
DBPoll is a separate go routine that queries the database for logs to push to the centralized API
func GetUpdateId ¶
GetUpdateId returns the mapping of the local update to the centalized API mapping If a mapping does not exist, return 0
Types ¶
type UpdateIdToUpdateGuid ¶
type UpdateIdToUpdateGuid struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.