upload

package
v1.20.0-dexcom-api.3 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2017 License: BSD-3-Clause Imports: 4 Imported by: 8

Documentation

Index

Constants

View Source
const (
	ComputerTimeFormat = "2006-01-02T15:04:05"

	DataSetTypeNormal     = "normal"
	DataSetTypeContinuous = "continuous"

	DeviceTagInsulinPump = "insulin-pump"
	DeviceTagCGM         = "cgm"
	DeviceTagBGM         = "bgm"

	TimeProcessingAcrossTheBoardTimezone = "across-the-board-timezone"
	TimeProcessingUTCBootstrapping       = "utc-bootstrapping"
	TimeProcessingNone                   = "none"
)

Variables

This section is empty.

Functions

func NewDatum

func NewDatum() data.Datum

func Type

func Type() string

Types

type Client added in v1.20.0

type Client struct {
	Name    *string `json:"name,omitempty" bson:"name,omitempty"`
	Version *string `json:"version,omitempty" bson:"version,omitempty"`
}

func NewClient added in v1.20.0

func NewClient() *Client

func ParseClient added in v1.20.0

func ParseClient(parser data.ObjectParser) *Client

func (*Client) Normalize added in v1.20.0

func (c *Client) Normalize(normalizer data.Normalizer)

func (*Client) Parse added in v1.20.0

func (c *Client) Parse(parser data.ObjectParser)

func (*Client) Validate added in v1.20.0

func (c *Client) Validate(validator data.Validator)

type Upload

type Upload struct {
	types.Base `bson:",inline"`

	State     string `json:"-" bson:"_state,omitempty"`
	DataState string `json:"-" bson:"_dataState,omitempty"` // TODO: Deprecated DataState (after data migration)
	ByUser    string `json:"byUser,omitempty" bson:"byUser,omitempty"`

	Client              *Client   `json:"client,omitempty" bson:"client,omitempty"`
	ComputerTime        *string   `json:"computerTime,omitempty" bson:"computerTime,omitempty"`
	DataSetType         *string   `json:"dataSetType,omitempty" bson:"dataSetType,omitempty"`
	DeviceManufacturers *[]string `json:"deviceManufacturers,omitempty" bson:"deviceManufacturers,omitempty"`
	DeviceModel         *string   `json:"deviceModel,omitempty" bson:"deviceModel,omitempty"`
	DeviceSerialNumber  *string   `json:"deviceSerialNumber,omitempty" bson:"deviceSerialNumber,omitempty"`
	DeviceTags          *[]string `json:"deviceTags,omitempty" bson:"deviceTags,omitempty"`
	TimeProcessing      *string   `json:"timeProcessing,omitempty" bson:"timeProcessing,omitempty"`
	Timezone            *string   `json:"timezone,omitempty" bson:"timezone,omitempty"`
	Version             *string   `json:"version,omitempty" bson:"version,omitempty"`
}

func Init

func Init() *Upload

func New

func New() *Upload

func (*Upload) HasDeviceManufacturerOneOf added in v1.20.0

func (u *Upload) HasDeviceManufacturerOneOf(deviceManufacturers []string) bool

func (*Upload) Init

func (u *Upload) Init()

func (*Upload) Normalize

func (u *Upload) Normalize(normalizer data.Normalizer) error

func (*Upload) Parse

func (u *Upload) Parse(parser data.ObjectParser) error

func (*Upload) Validate

func (u *Upload) Validate(validator data.Validator) error

Jump to

Keyboard shortcuts

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