types

package
v1.20.0-dexcom-api.5 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: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DeviceTimeFormat = "2006-01-02T15:04:05"
View Source
const SchemaVersionCurrent = 3
View Source
const TimeFormat = "2006-01-02T15:04:05Z07:00"

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Active            bool                         `json:"-" bson:"_active"`
	ArchivedDatasetID string                       `json:"-" bson:"archivedDatasetId,omitempty"`
	ArchivedTime      string                       `json:"-" bson:"archivedTime,omitempty"`
	CreatedTime       string                       `json:"createdTime,omitempty" bson:"createdTime,omitempty"`
	CreatedUserID     string                       `json:"createdUserId,omitempty" bson:"createdUserId,omitempty"`
	Deduplicator      *data.DeduplicatorDescriptor `json:"-" bson:"_deduplicator,omitempty"`
	DeletedTime       string                       `json:"deletedTime,omitempty" bson:"deletedTime,omitempty"`
	DeletedUserID     string                       `json:"deletedUserId,omitempty" bson:"deletedUserId,omitempty"`
	GUID              string                       `json:"guid,omitempty" bson:"guid,omitempty"`
	ID                string                       `json:"id,omitempty" bson:"id,omitempty"`
	ModifiedTime      string                       `json:"modifiedTime,omitempty" bson:"modifiedTime,omitempty"`
	ModifiedUserID    string                       `json:"modifiedUserId,omitempty" bson:"modifiedUserId,omitempty"`
	SchemaVersion     int                          `json:"-" bson:"_schemaVersion,omitempty"`
	Type              string                       `json:"type,omitempty" bson:"type,omitempty"`
	UploadID          string                       `json:"uploadId,omitempty" bson:"uploadId,omitempty"`
	UserID            string                       `json:"-" bson:"_userId,omitempty"`
	Version           int                          `json:"-" bson:"_version,omitempty"`

	Annotations      *[]map[string]interface{} `json:"annotations,omitempty" bson:"annotations,omitempty"`
	ClockDriftOffset *int                      `json:"clockDriftOffset,omitempty" bson:"clockDriftOffset,omitempty"`
	ConversionOffset *int                      `json:"conversionOffset,omitempty" bson:"conversionOffset,omitempty"`
	DeviceID         *string                   `json:"deviceId,omitempty" bson:"deviceId,omitempty"`
	DeviceTime       *string                   `json:"deviceTime,omitempty" bson:"deviceTime,omitempty"`
	Payload          *map[string]interface{}   `json:"payload,omitempty" bson:"payload,omitempty"`
	Source           *string                   `json:"source,omitempty" bson:"source,omitempty"`
	Time             *string                   `json:"time,omitempty" bson:"time,omitempty"`
	TimezoneOffset   *int                      `json:"timezoneOffset,omitempty" bson:"timezoneOffset,omitempty"`
}

func (*Base) DeduplicatorDescriptor

func (b *Base) DeduplicatorDescriptor() *data.DeduplicatorDescriptor

func (*Base) GetPayload added in v1.20.0

func (b *Base) GetPayload() *map[string]interface{}

func (*Base) IdentityFields

func (b *Base) IdentityFields() ([]string, error)

func (*Base) Init

func (b *Base) Init()

func (*Base) Meta

func (b *Base) Meta() interface{}

func (*Base) Normalize

func (b *Base) Normalize(normalizer data.Normalizer) error

func (*Base) Parse

func (b *Base) Parse(parser data.ObjectParser) error

func (*Base) SetActive

func (b *Base) SetActive(active bool)

func (*Base) SetCreatedTime

func (b *Base) SetCreatedTime(createdTime string)

func (*Base) SetCreatedUserID

func (b *Base) SetCreatedUserID(createdUserID string)

func (*Base) SetDatasetID

func (b *Base) SetDatasetID(datasetID string)

func (*Base) SetDeduplicatorDescriptor

func (b *Base) SetDeduplicatorDescriptor(deduplicatorDescriptor *data.DeduplicatorDescriptor)

func (*Base) SetDeletedTime

func (b *Base) SetDeletedTime(deletedTime string)

func (*Base) SetDeletedUserID

func (b *Base) SetDeletedUserID(deletedUserID string)

func (*Base) SetModifiedTime

func (b *Base) SetModifiedTime(modifiedTime string)

func (*Base) SetModifiedUserID

func (b *Base) SetModifiedUserID(modifiedUserID string)

func (*Base) SetUserID

func (b *Base) SetUserID(userID string)

func (*Base) Validate

func (b *Base) Validate(validator data.Validator) error

type Meta

type Meta struct {
	Type string `json:"type,omitempty"`
}

Jump to

Keyboard shortcuts

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