dexcom

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: BSD-2-Clause Imports: 18 Imported by: 3

Documentation

Index

Constants

View Source
const (
	AlertScheduleSettingsStartTimeDefault = "00:00"
	AlertScheduleSettingsEndTimeDefault   = "00:00"

	AlertScheduleSettingsDaySunday    = "sunday"
	AlertScheduleSettingsDayMonday    = "monday"
	AlertScheduleSettingsDayTuesday   = "tuesday"
	AlertScheduleSettingsDayWednesday = "wednesday"
	AlertScheduleSettingsDayThursday  = "thursday"
	AlertScheduleSettingsDayFriday    = "friday"
	AlertScheduleSettingsDaySaturday  = "saturday"

	AlertSettingAlertNameFall          = "fall"
	AlertSettingAlertNameHigh          = "high"
	AlertSettingAlertNameLow           = "low"
	AlertSettingAlertNameNoReadings    = "noReadings"
	AlertSettingAlertNameOutOfRange    = "outOfRange"
	AlertSettingAlertNameRise          = "rise"
	AlertSettingAlertNameUrgentLow     = "urgentLow"
	AlertSettingAlertNameUrgentLowSoon = "urgentLowSoon"

	AlertSettingSnoozeMinutesMaximum = dataTypesSettingsCgm.SnoozeDurationMinutesMaximum
	AlertSettingSnoozeMinutesMinimum = dataTypesSettingsCgm.SnoozeDurationMinutesMinimum

	AlertSettingUnitMinutes    = "minutes"
	AlertSettingUnitMgdL       = "mg/dL"
	AlertSettingUnitMgdLMinute = "mg/dL/min"

	AlertSettingValueFallMgdLMinuteMaximum    = dataTypesSettingsCgm.FallAlertRateMgdLMinuteMaximum
	AlertSettingValueFallMgdLMinuteMinimum    = dataTypesSettingsCgm.FallAlertRateMgdLMinuteMinimum
	AlertSettingValueHighMgdLMaximum          = dataTypesSettingsCgm.HighAlertLevelMgdLMaximum
	AlertSettingValueHighMgdLMinimum          = dataTypesSettingsCgm.HighAlertLevelMgdLMinimum
	AlertSettingValueLowMgdLMaximum           = dataTypesSettingsCgm.LowAlertLevelMgdLMaximum
	AlertSettingValueLowMgdLMinimum           = dataTypesSettingsCgm.LowAlertLevelMgdLMinimum
	AlertSettingValueNoReadingsMgdLMaximum    = dataTypesSettingsCgm.NoDataAlertDurationMinutesMaximum
	AlertSettingValueNoReadingsMgdLMinimum    = dataTypesSettingsCgm.NoDataAlertDurationMinutesMinimum
	AlertSettingValueOutOfRangeMgdLMaximum    = dataTypesSettingsCgm.OutOfRangeAlertDurationMinutesMaximum
	AlertSettingValueOutOfRangeMgdLMinimum    = dataTypesSettingsCgm.OutOfRangeAlertDurationMinutesMinimum
	AlertSettingValueRiseMgdLMinuteMaximum    = dataTypesSettingsCgm.RiseAlertRateMgdLMinuteMaximum
	AlertSettingValueRiseMgdLMinuteMinimum    = dataTypesSettingsCgm.RiseAlertRateMgdLMinuteMinimum
	AlertSettingValueUrgentLowMgdLMaximum     = dataTypesSettingsCgm.UrgentLowAlertLevelMgdLMaximum
	AlertSettingValueUrgentLowMgdLMinimum     = dataTypesSettingsCgm.UrgentLowAlertLevelMgdLMinimum
	AlertSettingValueUrgentLowSoonMgdLMaximum = dataTypesSettingsCgm.UrgentLowAlertLevelMgdLMaximum
	AlertSettingValueUrgentLowSoonMgdLMinimum = dataTypesSettingsCgm.UrgentLowAlertLevelMgdLMinimum
)
View Source
const (
	CalibrationUnitMgdL = "mg/dL"

	CalibrationValueMgdLMaximum = dataBloodGlucose.MgdLMaximum
	CalibrationValueMgdLMinimum = dataBloodGlucose.MgdLMinimum
)
View Source
const (
	DeviceDisplayDeviceAndroid             = "android"
	DeviceDisplayDeviceIOS                 = "iOS"
	DeviceDisplayDeviceReceiver            = "receiver"
	DeviceDisplayDeviceShareReceiver       = "shareReceiver"
	DeviceDisplayDeviceTouchscreenReceiver = "touchscreenReceiver"

	DeviceTransmitterGenerationG4 = "g4"
	DeviceTransmitterGenerationG5 = "g5"
	DeviceTransmitterGenerationG6 = "g6"
)
View Source
const (
	TimeFormat             = "2006-01-02T15:04:05"
	SystemTimeNowThreshold = 24 * time.Hour
)
View Source
const (
	EGVUnitMgdL       = "mg/dL"
	EGVUnitMgdLMinute = "mg/dL/min"

	EGVValueMgdLMaximum       = dataBloodGlucose.MgdLMaximum
	EGVValueMgdLMinimum       = dataBloodGlucose.MgdLMinimum
	EGVValuePinnedMgdLMaximum = 400.0
	EGVValuePinnedMgdLMinimum = 40.0

	EGVStatusHigh             = "high"
	EGVStatusLow              = "low"
	EGVStatusOK               = "ok"
	EGVStatusOutOfCalibration = "outOfCalibration"
	EGVStatusSensorNoise      = "sensorNoise"

	EGVTrendDoubleUp       = "doubleUp"
	EGVTrendSingleUp       = "singleUp"
	EGVTrendFortyFiveUp    = "fortyFiveUp"
	EGVTrendFlat           = "flat"
	EGVTrendFortyFiveDown  = "fortyFiveDown"
	EGVTrendSingleDown     = "singleDown"
	EGVTrendDoubleDown     = "doubleDown"
	EGVTrendNone           = "none"
	EGVTrendNotComputable  = "notComputable"
	EGVTrendRateOutOfRange = "rateOutOfRange"

	EGVTransmitterTickMinimum = 0
)
View Source
const (
	EventTypeCarbs    = "carbs"
	EventTypeExercise = "exercise"
	EventTypeHealth   = "health"
	EventTypeInsulin  = "insulin"

	EventUnitCarbsGrams         = "grams"
	EventValueCarbsGramsMaximum = dataTypesFood.CarbohydrateNetGramsMaximum
	EventValueCarbsGramsMinimum = dataTypesFood.CarbohydrateNetGramsMinimum

	EventSubTypeExerciseLight        = "light"
	EventSubTypeExerciseMedium       = "medium"
	EventSubTypeExerciseHeavy        = "heavy"
	EventUnitExerciseMinutes         = "minutes"
	EventValueExerciseMinutesMaximum = dataTypesActivityPhysical.DurationValueMinutesMaximum
	EventValueExerciseMinutesMinimum = dataTypesActivityPhysical.DurationValueMinutesMinimum

	EventSubTypeHealthAlcohol      = "alcohol"
	EventSubTypeHealthCycle        = "cycle"
	EventSubTypeHealthHighSymptoms = "highSymptoms"
	EventSubTypeHealthIllness      = "illness"
	EventSubTypeHealthLowSymptoms  = "lowSymptoms"
	EventSubTypeHealthStress       = "stress"

	EventSubTypeInsulinFastActing = "fastActing"
	EventSubTypeInsulinLongActing = "longActing"
	EventUnitInsulinUnits         = "units"
	EventValueInsulinUnitsMaximum = dataTypesInsulin.DoseTotalUnitsMaximum
	EventValueInsulinUnitsMinimum = dataTypesInsulin.DoseTotalUnitsMinimum

	EventStatusCreated = "created"
	EventStatusDeleted = "deleted"
)

Variables

This section is empty.

Functions

func AlertScheduleSettingsDayIndex added in v1.30.0

func AlertScheduleSettingsDayIndex(day string) int

func AlertScheduleSettingsDays added in v1.30.0

func AlertScheduleSettingsDays() []string

func AlertScheduleSettingsTimeValidator added in v1.30.0

func AlertScheduleSettingsTimeValidator(value string, errorReporter structure.ErrorReporter)

func AlertSettingAlertNames added in v1.30.0

func AlertSettingAlertNames() []string

func AlertSettingUnitFalls added in v1.30.0

func AlertSettingUnitFalls() []string

func AlertSettingUnitHighs added in v1.30.0

func AlertSettingUnitHighs() []string

func AlertSettingUnitLows added in v1.30.0

func AlertSettingUnitLows() []string

func AlertSettingUnitNoReadings added in v1.30.0

func AlertSettingUnitNoReadings() []string

func AlertSettingUnitOutOfRanges added in v1.30.0

func AlertSettingUnitOutOfRanges() []string

func AlertSettingUnitRises added in v1.30.0

func AlertSettingUnitRises() []string

func AlertSettingUnitUrgentLowSoons added in v1.30.0

func AlertSettingUnitUrgentLowSoons() []string

func AlertSettingUnitUrgentLows added in v1.30.0

func AlertSettingUnitUrgentLows() []string

func CalibrationUnits added in v1.30.0

func CalibrationUnits() []string

func DeviceDisplayDevices added in v1.30.0

func DeviceDisplayDevices() []string

func DeviceTransmitterGenerations added in v1.30.0

func DeviceTransmitterGenerations() []string

func EGVStatuses added in v1.30.0

func EGVStatuses() []string

func EGVTrends added in v1.30.0

func EGVTrends() []string

func EGVsResponseRateUnits added in v1.30.0

func EGVsResponseRateUnits() []string

func EGVsResponseUnits added in v1.30.0

func EGVsResponseUnits() []string

func ErrorValueStringAsAlertScheduleSettingsTimeNotValid added in v1.30.0

func ErrorValueStringAsAlertScheduleSettingsTimeNotValid(value string) error

func ErrorValueStringAsTransmitterIDNotValid added in v1.30.0

func ErrorValueStringAsTransmitterIDNotValid(value string) error

func EventStatuses added in v1.30.0

func EventStatuses() []string

func EventSubTypesExercise added in v1.30.0

func EventSubTypesExercise() []string

func EventSubTypesHealth added in v1.30.0

func EventSubTypesHealth() []string

func EventSubTypesInsulin added in v1.30.0

func EventSubTypesInsulin() []string

func EventTypes added in v1.30.0

func EventTypes() []string

func IsValidAlertScheduleSettingsTime added in v1.30.0

func IsValidAlertScheduleSettingsTime(value string) bool

func IsValidTransmitterID added in v1.30.0

func IsValidTransmitterID(value string) bool

func ParseAlertScheduleSettingsTime added in v1.30.0

func ParseAlertScheduleSettingsTime(value string) (int, int, bool)

func TransmitterIDValidator added in v1.30.0

func TransmitterIDValidator(value string, errorReporter structure.ErrorReporter)

func ValidateAlertScheduleSettingsTime added in v1.30.0

func ValidateAlertScheduleSettingsTime(value string) error

func ValidateTransmitterID added in v1.30.0

func ValidateTransmitterID(value string) error

Types

type AlertSchedule added in v1.30.0

type AlertSchedule struct {
	AlertScheduleSettings *AlertScheduleSettings `json:"alertScheduleSettings,omitempty" yaml:"alertScheduleSettings,omitempty"`
	AlertSettings         *AlertSettings         `json:"alertSettings,omitempty" yaml:"alertSettings,omitempty"`
}

func NewAlertSchedule added in v1.30.0

func NewAlertSchedule() *AlertSchedule

func ParseAlertSchedule added in v1.30.0

func ParseAlertSchedule(parser structure.ObjectParser) *AlertSchedule

func (*AlertSchedule) IsDefault added in v1.30.0

func (a *AlertSchedule) IsDefault() bool

func (*AlertSchedule) Name added in v1.30.0

func (a *AlertSchedule) Name() *string

func (*AlertSchedule) Normalize added in v1.30.0

func (a *AlertSchedule) Normalize(normalizer structure.Normalizer)

func (*AlertSchedule) Parse added in v1.30.0

func (a *AlertSchedule) Parse(parser structure.ObjectParser)

func (*AlertSchedule) Validate added in v1.30.0

func (a *AlertSchedule) Validate(validator structure.Validator)

type AlertScheduleSettings added in v1.30.0

type AlertScheduleSettings struct {
	Name       *string   `json:"alertScheduleName,omitempty" yaml:"alertScheduleName,omitempty"`
	Enabled    *bool     `json:"isEnabled,omitempty" yaml:"isEnabled,omitempty"`
	Default    *bool     `json:"isDefaultSchedule,omitempty" yaml:"isDefaultSchedule,omitempty"`
	StartTime  *string   `json:"startTime,omitempty" yaml:"startTime,omitempty"`
	EndTime    *string   `json:"endTime,omitempty" yaml:"endTime,omitempty"`
	DaysOfWeek *[]string `json:"daysOfWeek,omitempty" yaml:"daysOfWeek,omitempty"`
}

func NewAlertScheduleSettings added in v1.30.0

func NewAlertScheduleSettings() *AlertScheduleSettings

func ParseAlertScheduleSettings added in v1.30.0

func ParseAlertScheduleSettings(parser structure.ObjectParser) *AlertScheduleSettings

func (*AlertScheduleSettings) IsDefault added in v1.30.0

func (a *AlertScheduleSettings) IsDefault() bool

func (*AlertScheduleSettings) Normalize added in v1.30.0

func (a *AlertScheduleSettings) Normalize(normalizer structure.Normalizer)

func (*AlertScheduleSettings) Parse added in v1.30.0

func (a *AlertScheduleSettings) Parse(parser structure.ObjectParser)

func (*AlertScheduleSettings) Validate added in v1.30.0

func (a *AlertScheduleSettings) Validate(validator structure.Validator)

type AlertSchedules added in v1.30.0

type AlertSchedules []*AlertSchedule

func NewAlertSchedules added in v1.30.0

func NewAlertSchedules() *AlertSchedules

func ParseAlertSchedules added in v1.30.0

func ParseAlertSchedules(parser structure.ArrayParser) *AlertSchedules

func (*AlertSchedules) Default added in v1.30.0

func (a *AlertSchedules) Default() *AlertSchedule

func (*AlertSchedules) Normalize added in v1.30.0

func (a *AlertSchedules) Normalize(normalizer structure.Normalizer)

func (*AlertSchedules) Parse added in v1.30.0

func (a *AlertSchedules) Parse(parser structure.ArrayParser)

func (*AlertSchedules) Validate added in v1.30.0

func (a *AlertSchedules) Validate(validator structure.Validator)

type AlertSchedulesByAlertScheduleName added in v1.30.0

type AlertSchedulesByAlertScheduleName AlertSchedules

func (AlertSchedulesByAlertScheduleName) Len added in v1.30.0

func (AlertSchedulesByAlertScheduleName) Less added in v1.30.0

func (AlertSchedulesByAlertScheduleName) Swap added in v1.30.0

type AlertSetting

type AlertSetting struct {
	SystemTime  *Time    `json:"systemTime,omitempty" yaml:"-"`
	DisplayTime *Time    `json:"displayTime,omitempty" yaml:"-"`
	AlertName   *string  `json:"alertName,omitempty" yaml:"alertName,omitempty"`
	Unit        *string  `json:"unit,omitempty" yaml:"unit,omitempty"`
	Value       *float64 `json:"value,omitempty" yaml:"value,omitempty"`
	Snooze      *int     `json:"snooze,omitempty" yaml:"snooze,omitempty"`
	Enabled     *bool    `json:"enabled,omitempty" yaml:"enabled,omitempty"`
}

func NewAlertSetting

func NewAlertSetting() *AlertSetting

func ParseAlertSetting added in v1.30.0

func ParseAlertSetting(parser structure.ObjectParser) *AlertSetting

func (*AlertSetting) IsNewerMatchThan added in v1.28.0

func (a *AlertSetting) IsNewerMatchThan(alertSetting *AlertSetting) bool

func (*AlertSetting) Normalize added in v1.30.0

func (a *AlertSetting) Normalize(normalizer structure.Normalizer)

func (*AlertSetting) Parse

func (a *AlertSetting) Parse(parser structure.ObjectParser)

func (*AlertSetting) Validate

func (a *AlertSetting) Validate(validator structure.Validator)

type AlertSettings added in v1.28.0

type AlertSettings []*AlertSetting

func NewAlertSettings added in v1.30.0

func NewAlertSettings() *AlertSettings

func ParseAlertSettings added in v1.30.0

func ParseAlertSettings(parser structure.ArrayParser) *AlertSettings

func (*AlertSettings) Deduplicate added in v1.28.0

func (a *AlertSettings) Deduplicate()

func (*AlertSettings) Normalize added in v1.30.0

func (a *AlertSettings) Normalize(normalizer structure.Normalizer)

func (*AlertSettings) Parse added in v1.30.0

func (a *AlertSettings) Parse(parser structure.ArrayParser)

func (*AlertSettings) Validate added in v1.30.0

func (a *AlertSettings) Validate(validator structure.Validator)

type AlertSettingsByAlertSettingAlertName added in v1.30.0

type AlertSettingsByAlertSettingAlertName AlertSettings

func (AlertSettingsByAlertSettingAlertName) Len added in v1.30.0

func (AlertSettingsByAlertSettingAlertName) Less added in v1.30.0

func (AlertSettingsByAlertSettingAlertName) Swap added in v1.30.0

type Calibration

type Calibration struct {
	SystemTime    *Time    `json:"systemTime,omitempty"`
	DisplayTime   *Time    `json:"displayTime,omitempty"`
	Unit          *string  `json:"unit,omitempty"`
	Value         *float64 `json:"value,omitempty"`
	TransmitterID *string  `json:"transmitterId,omitempty"`
}

func NewCalibration

func NewCalibration() *Calibration

func ParseCalibration added in v1.30.0

func ParseCalibration(parser structure.ObjectParser) *Calibration

func (*Calibration) Parse

func (c *Calibration) Parse(parser structure.ObjectParser)

func (*Calibration) Validate

func (c *Calibration) Validate(validator structure.Validator)

type Calibrations added in v1.30.0

type Calibrations []*Calibration

func NewCalibrations added in v1.30.0

func NewCalibrations() *Calibrations

func ParseCalibrations added in v1.30.0

func ParseCalibrations(parser structure.ArrayParser) *Calibrations

func (*Calibrations) Parse added in v1.30.0

func (c *Calibrations) Parse(parser structure.ArrayParser)

func (*Calibrations) Validate added in v1.30.0

func (c *Calibrations) Validate(validator structure.Validator)

type CalibrationsResponse

type CalibrationsResponse struct {
	Calibrations *Calibrations `json:"calibrations,omitempty"`
}

func NewCalibrationsResponse

func NewCalibrationsResponse() *CalibrationsResponse

func ParseCalibrationsResponse added in v1.30.0

func ParseCalibrationsResponse(parser structure.ObjectParser) *CalibrationsResponse

func (*CalibrationsResponse) Parse

func (c *CalibrationsResponse) Parse(parser structure.ObjectParser)

func (*CalibrationsResponse) Validate

func (c *CalibrationsResponse) Validate(validator structure.Validator)

type Client

type Client interface {
	GetCalibrations(ctx context.Context, startTime time.Time, endTime time.Time, tokenSource oauth.TokenSource) (*CalibrationsResponse, error)
	GetDevices(ctx context.Context, startTime time.Time, endTime time.Time, tokenSource oauth.TokenSource) (*DevicesResponse, error)
	GetEGVs(ctx context.Context, startTime time.Time, endTime time.Time, tokenSource oauth.TokenSource) (*EGVsResponse, error)
	GetEvents(ctx context.Context, startTime time.Time, endTime time.Time, tokenSource oauth.TokenSource) (*EventsResponse, error)
}

type DaysOfWeekByAlertScheduleSettingsDayIndex added in v1.30.0

type DaysOfWeekByAlertScheduleSettingsDayIndex []string

func (DaysOfWeekByAlertScheduleSettingsDayIndex) Len added in v1.30.0

func (DaysOfWeekByAlertScheduleSettingsDayIndex) Less added in v1.30.0

func (DaysOfWeekByAlertScheduleSettingsDayIndex) Swap added in v1.30.0

type Device

type Device struct {
	LastUploadDate        *Time           `json:"lastUploadDate,omitempty" yaml:"-"`
	AlertScheduleList     *AlertSchedules `json:"alertScheduleList,omitempty" yaml:"alertScheduleList,omitempty"`
	UDI                   *string         `json:"udi,omitempty" yaml:"udi,omitempty"`
	SerialNumber          *string         `json:"serialNumber,omitempty" yaml:"serialNumber,omitempty"`
	TransmitterID         *string         `json:"transmitterId,omitempty" yaml:"transmitterId,omitempty"`
	TransmitterGeneration *string         `json:"transmitterGeneration,omitempty" yaml:"transmitterGeneration,omitempty"`
	DisplayDevice         *string         `json:"displayDevice,omitempty" yaml:"displayDevice,omitempty"`
	SoftwareVersion       *string         `json:"softwareVersion,omitempty" yaml:"softwareVersion,omitempty"`
	SoftwareNumber        *string         `json:"softwareNumber,omitempty" yaml:"softwareNumber,omitempty"`
	Language              *string         `json:"language,omitempty" yaml:"language,omitempty"`
	IsMmolDisplayMode     *bool           `json:"isMmolDisplayMode,omitempty" yaml:"isMmolDisplayMode,omitempty"`
	IsBlindedMode         *bool           `json:"isBlindedMode,omitempty" yaml:"isBlindedMode,omitempty"`
	Is24HourMode          *bool           `json:"is24HourMode,omitempty" yaml:"is24HourMode,omitempty"`
	DisplayTimeOffset     *int            `json:"displayTimeOffset,omitempty" yaml:"displayTimeOffset,omitempty"`
	SystemTimeOffset      *int            `json:"systemTimeOffset,omitempty" yaml:"systemTimeOffset,omitempty"`
}

func NewDevice

func NewDevice() *Device

func ParseDevice added in v1.30.0

func ParseDevice(parser structure.ObjectParser) *Device

func (*Device) Hash added in v1.30.0

func (d *Device) Hash() (string, error)

func (*Device) Normalize added in v1.30.0

func (d *Device) Normalize(normalizer structure.Normalizer)

func (*Device) Parse

func (d *Device) Parse(parser structure.ObjectParser)

func (*Device) Validate

func (d *Device) Validate(validator structure.Validator)

type Devices added in v1.30.0

type Devices []*Device

func NewDevices added in v1.30.0

func NewDevices() *Devices

func ParseDevices added in v1.30.0

func ParseDevices(parser structure.ArrayParser) *Devices

func (*Devices) Normalize added in v1.30.0

func (d *Devices) Normalize(normalizer structure.Normalizer)

func (*Devices) Parse added in v1.30.0

func (d *Devices) Parse(parser structure.ArrayParser)

func (*Devices) Validate added in v1.30.0

func (d *Devices) Validate(validator structure.Validator)

type DevicesResponse

type DevicesResponse struct {
	Devices *Devices `json:"devices,omitempty"`
}

func NewDevicesResponse

func NewDevicesResponse() *DevicesResponse

func ParseDevicesResponse added in v1.30.0

func ParseDevicesResponse(parser structure.ObjectParser) *DevicesResponse

func (*DevicesResponse) Normalize added in v1.30.0

func (d *DevicesResponse) Normalize(normalizer structure.Normalizer)

func (*DevicesResponse) Parse

func (d *DevicesResponse) Parse(parser structure.ObjectParser)

func (*DevicesResponse) Validate

func (d *DevicesResponse) Validate(validator structure.Validator)

type EGV

type EGV struct {
	SystemTime       *Time    `json:"systemTime,omitempty"`
	DisplayTime      *Time    `json:"displayTime,omitempty"`
	Unit             *string  `json:"unit,omitempty"`
	Value            *float64 `json:"value,omitempty"`
	RealTimeValue    *float64 `json:"realtimeValue,omitempty"`
	SmoothedValue    *float64 `json:"smoothedValue,omitempty"`
	Status           *string  `json:"status,omitempty"`
	Trend            *string  `json:"trend,omitempty"`
	TrendRate        *float64 `json:"trendRate,omitempty"`
	TransmitterID    *string  `json:"transmitterId,omitempty"`
	TransmitterTicks *int     `json:"transmitterTicks,omitempty"`
}

func NewEGV

func NewEGV(unit *string) *EGV

func ParseEGV added in v1.30.0

func ParseEGV(parser structure.ObjectParser, unit *string) *EGV

func (*EGV) Parse

func (e *EGV) Parse(parser structure.ObjectParser)

func (*EGV) Validate

func (e *EGV) Validate(validator structure.Validator)

type EGVs added in v1.30.0

type EGVs []*EGV

func NewEGVs added in v1.30.0

func NewEGVs() *EGVs

func ParseEGVs added in v1.30.0

func ParseEGVs(parser structure.ArrayParser, unit *string) *EGVs

func (*EGVs) Parse added in v1.30.0

func (e *EGVs) Parse(parser structure.ArrayParser, unit *string)

func (*EGVs) Validate added in v1.30.0

func (e *EGVs) Validate(validator structure.Validator)

type EGVsResponse

type EGVsResponse struct {
	RateUnit *string `json:"rateUnit,omitempty"`
	Unit     *string `json:"unit,omitempty"`
	EGVs     *EGVs   `json:"egvs,omitempty"`
}

func NewEGVsResponse

func NewEGVsResponse() *EGVsResponse

func ParseEGVsResponse added in v1.30.0

func ParseEGVsResponse(parser structure.ObjectParser) *EGVsResponse

func (*EGVsResponse) Parse

func (e *EGVsResponse) Parse(parser structure.ObjectParser)

func (*EGVsResponse) Validate

func (e *EGVsResponse) Validate(validator structure.Validator)

type Event

type Event struct {
	SystemTime  *Time    `json:"systemTime,omitempty"`
	DisplayTime *Time    `json:"displayTime,omitempty"`
	Type        *string  `json:"eventType,omitempty"`
	SubType     *string  `json:"eventSubType,omitempty"`
	Unit        *string  `json:"unit,omitempty"`
	Value       *float64 `json:"value,omitempty"`
	ID          *string  `json:"eventId,omitempty"`
	Status      *string  `json:"eventStatus,omitempty"`
}

func NewEvent

func NewEvent() *Event

func ParseEvent added in v1.30.0

func ParseEvent(parser structure.ObjectParser) *Event

func (*Event) Parse

func (e *Event) Parse(parser structure.ObjectParser)

func (*Event) Validate

func (e *Event) Validate(validator structure.Validator)

type Events added in v1.30.0

type Events []*Event

func NewEvents added in v1.30.0

func NewEvents() *Events

func ParseEvents added in v1.30.0

func ParseEvents(parser structure.ArrayParser) *Events

func (*Events) Parse added in v1.30.0

func (e *Events) Parse(parser structure.ArrayParser)

func (*Events) Validate added in v1.30.0

func (e *Events) Validate(validator structure.Validator)

type EventsResponse

type EventsResponse struct {
	Events *Events `json:"events,omitempty"`
}

func NewEventsResponse

func NewEventsResponse() *EventsResponse

func ParseEventsResponse added in v1.30.0

func ParseEventsResponse(parser structure.ObjectParser) *EventsResponse

func (*EventsResponse) Parse

func (e *EventsResponse) Parse(parser structure.ObjectParser)

func (*EventsResponse) Validate

func (e *EventsResponse) Validate(validator structure.Validator)

type Time added in v1.30.0

type Time struct {
	time.Time
}

func NewTime added in v1.30.0

func NewTime() *Time

func TimeFromRaw added in v1.30.0

func TimeFromRaw(raw *time.Time) *Time

func (Time) GetBSON added in v1.30.0

func (t Time) GetBSON() (interface{}, error)

func (Time) MarshalJSON added in v1.30.0

func (t Time) MarshalJSON() ([]byte, error)

func (Time) MarshalText added in v1.30.0

func (t Time) MarshalText() ([]byte, error)

func (*Time) Raw added in v1.30.0

func (t *Time) Raw() *time.Time

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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