dexcomimporter

package
v0.0.0-...-a2a2cd2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2023 License: MIT, MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertXmlCalibrationRead

func ConvertXmlCalibrationRead(calibration Calibration) (*apimodel.CalibrationRead, error)

func ConvertXmlGlucoseRead

func ConvertXmlGlucoseRead(read Glucose) (*apimodel.GlucoseRead, error)

Types

type Calibration

type Calibration struct {
	InternalTime string `json:"InternalTime" xml:"InternalTime,attr"`
	DisplayTime  string `json:"DisplayTime" xml:"DisplayTime,attr"`
	Value        string `json:"Value" xml:"Value,attr"`
}

type Event

type Event struct {
	InternalTime string `xml:"InternalTime,attr"`
	DisplayTime  string `xml:"DisplayTime,attr"`
	EventTime    string `xml:"EventTime,attr"`
	EventType    string `xml:"EventType,attr"`
	Description  string `xml:"Decription,attr"`
}

Event represents the event structure that holds all events. This includes injections, carbs and exercise.

type EventTimestamp

type EventTimestamp struct {
	RecordedTime string `json:"recordedTime"`
	InternalTime string `json:"internalTime"`
	EventTime    string `json:"eventTime"`
}

DataTime represents hold a timestamp and a localtime string

type Glucose

type Glucose struct {
	InternalTime string `xml:"InternalTime,attr"`
	DisplayTime  string `xml:"DisplayTime,attr"`
	Value        string `xml:"Value,attr"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL