upload

package
v0.0.1-alpha.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Type

func Type() string

Types

type Upload

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

	DataState    string      `json:"dataState,omitempty" bson:"dataState,omitempty"`
	UploadUserID string      `json:"byUser,omitempty" bson:"byUser,omitempty"`
	Deduplicator interface{} `json:"deduplicator,omitempty" bson:"deduplicator,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 New

func New() (*Upload, error)

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 interface{})

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