upload

package
v0.0.1-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2016 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatum

func NewDatum() data.Datum

func Type

func Type() string

Types

type Deduplicator

type Deduplicator struct {
	Name string                 `bson:"name,omitempty"`
	Data map[string]interface{} `bson:"data,omitempty"`
}

type Upload

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

	DataState    string        `json:"-" bson:"_dataState,omitempty"`
	Deduplicator *Deduplicator `json:"-" bson:"_deduplicator,omitempty"`
	UploadUserID string        `json:"byUser,omitempty" bson:"byUser,omitempty"`

	ComputerTime        *string   `json:"computerTime,omitempty" bson:"computerTime,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) 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) SetDataState

func (u *Upload) SetDataState(dataState string)

func (*Upload) SetDeduplicator

func (u *Upload) SetDeduplicator(deduplicator *Deduplicator)

func (*Upload) SetUploadUserID

func (u *Upload) SetUploadUserID(uploadUserID string)

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