Documentation ¶
Overview ¶
Package healthkit contains Apple's HealthKit types and constans.
Index ¶
Constants ¶
View Source
const ( BiologicalSexFemale = BiologicalSex("HKBiologicalSexFemale") BiologicalSexMale = BiologicalSex("HKBiologicalSexMale") BiologicalSexOther = BiologicalSex("HKBiologicalSexOther") )
View Source
const ( BloodTypeAPositive = BloodType("HKBloodTypeAPositive") BloodTypeANegative = BloodType("HKBloodTypeANegative") BloodTypeBPositive = BloodType("HKBloodTypeBPositive") BloodTypeBNegative = BloodType("HKBloodTypeBNegative") BloodTypeABPositive = BloodType("HKBloodTypeABPositive") BloodTypeABNegative = BloodType("HKBloodTypeABNegative") BloodTypeOPositive = BloodType("HKBloodTypeOPositive") BloodTypeONegative = BloodType("HKBloodTypeONegative") )
View Source
const ( CategoryValueSleepAnalysisInBed = CategoryValueSleepAnalysis("HKCategoryValueSleepAnalysisInBed") CategoryValueSleepAnalysisAsleep = CategoryValueSleepAnalysis("HKCategoryValueSleepAnalysisAsleep") CategoryValueSleepAnalysisAwake = CategoryValueSleepAnalysis("HKCategoryValueSleepAnalysisAwake") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivitySummary ¶
type ActivitySummary struct { XMLName xml.Name `xml:"ActivitySummary"` DateComponents string `xml:"dateComponents,attr"` ActiveEnergyBurned string `xml:"activeEnergyBurned,attr"` ActiveEnergyBurnedGoal string `xml:"activeEnergyBurnedGoal,attr"` ActiveEnergyBurnedUnit string `xml:"activeEnergyBurnedUnit,attr"` AppleMoveMinutes string `xml:"appleMoveMinutes,attr"` AppleMoveMinutesGoal string `xml:"appleMoveMinutesGoal,attr"` AppleExerciseTime string `xml:"appleExerciseTime,attr"` AppleExerciseTimeGoal string `xml:"appleExerciseTimeGoal,attr"` AppleStandHours string `xml:"appleStandHours,attr"` AppleStandHoursGoal string `xml:"appleStandHoursGoal,attr"` }
func (*ActivitySummary) String ¶
func (as *ActivitySummary) String() string
type BiologicalSex ¶
type BiologicalSex string
type CategoryValueSleepAnalysis ¶
type CategoryValueSleepAnalysis string
type Correlation ¶
type Correlation struct { XMLName xml.Name `xml:"Correlation"` Type string `xml:"type,attr"` SourceName string `xml:"sourceName,attr"` SourceVersion string `xml:"sourceVersion,attr"` Device string `xml:"device,attr"` CreationDate string `xml:"creationDate,attr"` StartDate string `xml:"startDate,attr"` EndDate string `xml:"endDate,attr"` MetadataEntry []*MetadataEntry `xml:"MetadataEntry"` Record []*Record `xml:"Record"` }
func (*Correlation) CreationDateTime ¶
func (c *Correlation) CreationDateTime() time.Time
func (*Correlation) EndDateTime ¶
func (c *Correlation) EndDateTime() time.Time
func (*Correlation) StartDateTime ¶
func (c *Correlation) StartDateTime() time.Time
func (*Correlation) String ¶
func (c *Correlation) String() string
type ExportDate ¶
type HeartRateVariabilityMetadataList ¶
type HeartRateVariabilityMetadataList struct { XMLName xml.Name `xml:"HeartRateVariabilityMetadataList"` InstantaneousBeatsPerMinute []*InstantaneousBeatsPerMinute `xml:"InstantaneousBeatsPerMinute"` }
type Me ¶
type Me struct { XMLName xml.Name `xml:"Me"` DateOfBirth string `xml:"HKCharacteristicTypeIdentifierDateOfBirth,attr"` BiologicalSex BiologicalSex `xml:"HKCharacteristicTypeIdentifierBiologicalSex,attr"` BloodType BloodType `xml:"HKCharacteristicTypeIdentifierBloodType,attr"` FitzpatrickSkinType string `xml:"HKCharacteristicTypeIdentifierFitzpatrickSkinType,attr"` }
func (*Me) DateOfBirthTime ¶
type Meta ¶
type Meta struct { Locale string ExportDate ExportDate Me Me }
type MetadataEntry ¶
type Record ¶
type Record struct { XMLName xml.Name `xml:"Record"` Type string `xml:"type,attr"` Unit string `xml:"unit,attr"` Value string `xml:"value,attr"` SourceName string `xml:"sourceName,attr"` SourceVersion string `xml:"sourceVersion,attr"` Device string `xml:"device,attr"` CreationDate string `xml:"creationDate,attr"` StartDate string `xml:"startDate,attr"` EndDate string `xml:"endDate,attr"` MetadataEntry []*MetadataEntry `xml:"MetadataEntry"` HeartRateVariabilityMetadataList []*HeartRateVariabilityMetadataList `xml:"HeartRateVariabilityMetadataList"` }
func (*Record) CreationDateTime ¶
func (*Record) EndDateTime ¶
func (*Record) StartDateTime ¶
type Workout ¶
type Workout struct { XMLName xml.Name `xml:"Workout"` WorkoutActivityType string `xml:"workoutActivityType,attr"` Duration string `xml:"duration,attr"` DurationUnit string `xml:"durationUnit,attr"` TotalDistance string `xml:"totalDistance,attr"` TotalDistanceUnit string `xml:"totalDistanceUnit,attr"` TotalEnergyBurned string `xml:"totalEnergyBurned,attr"` TotalEnergyBurnedUnit string `xml:"totalEnergyBurnedUnit,attr"` SourceName string `xml:"sourceName,attr"` SourceVersion string `xml:"sourceVersion,attr"` CreationDate string `xml:"creationDate,attr"` StartDate string `xml:"startDate,attr"` EndDate string `xml:"endDate,attr"` MetadataEntry []*MetadataEntry `xml:"MetadataEntry"` }
func (*Workout) CreationDateTime ¶
func (*Workout) EndDateTime ¶
func (*Workout) StartDateTime ¶
Click to show internal directories.
Click to hide internal directories.