Documentation ¶
Index ¶
Constants ¶
View Source
const ( SourceMeter = "meter" SourceCGM = "cgm" )
Variables ¶
This section is empty.
Functions ¶
func OverrideDBURL ¶
func OverrideDBURL(url string)
Types ¶
type AuditItem ¶
type AuditItem struct { gorm.Model Occurred NewDeviceTime time.Time BGReading int LinkedBGMeterID string `gorm:"size:256"` TempBasalAmount float64 TempBasalType string `gorm:"size:128"` TempBasalDuration int BolusType string `gorm:"size:128"` BolusVolumeSelected float64 BolusVolumeDelivered float64 BolusDuration int PrimeType string `gorm:"size:128"` PrimeVolumeDelivered float64 Suspend string `gorm:"size:128"` Rewind string `gorm:"size:128"` BolusWizardInsulinEstimate float64 BolusWizardTargetHighBG int BolusWizardTargetLowBG int BolusWizardCurrentCarbRatio int BolusWizardCurrentInsulinSensitivity int BolusWizardCarbInput int BolusWizardBGInput int BolusWizardCorrectionEstimate float64 BolusWizardFoodEstimate float64 BolusWizardActiveInsulin float64 Alarm string `gorm:"size:256"` SensorCalibrationBG int SensorGluclose int ISIGValue float64 DailyInsulinTotal float64 RawType string `gorm:"size:512"` RawValues string `gorm:"size:5096"` RawDeviceType string `gorm:"size:1024"` RawSequenceNumber int RawID int64 `gorm:"unique_index"` }
type Food ¶
type Food struct { gorm.Model Occurred Name string `gorm:"size:2048"` FoodStems []FoodStem Carbs int Insulin float64 }
Food represents a food eaten
type Place ¶
type Place struct { gorm.Model Name string `gorm:"size:4096"` SearchName string `gorm:"size:1024"` }
Place represents a place a meal was eaten
type PlaceVisit ¶
PlaceVisit represents an visit to a place
type Sugar ¶
type Sugar struct { gorm.Model Occurred Value int Source SugarSource `gorm:"size:64"` }
Sugar represents a measured blood sugar
type SugarSource ¶
type SugarSource string
Click to show internal directories.
Click to hide internal directories.