upload

package
v0.0.1-alpha.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Name = "upload"

Variables

This section is empty.

Functions

func DeviceManufacturersValidator

func DeviceManufacturersValidator(v *validator.Validate, topStruct reflect.Value, currentStructOrField reflect.Value, field reflect.Value, fieldType reflect.Type, fieldKind reflect.Kind, param string) bool

func DeviceTagsValidator

func DeviceTagsValidator(v *validator.Validate, topStruct reflect.Value, currentStructOrField reflect.Value, field reflect.Value, fieldType reflect.Type, fieldKind reflect.Kind, param string) bool

func TimeProcessingValidator

func TimeProcessingValidator(v *validator.Validate, topStruct reflect.Value, currentStructOrField reflect.Value, field reflect.Value, fieldType reflect.Type, fieldKind reflect.Kind, param string) bool

Types

type Upload

type Upload struct {
	// UploadID            *string     `json:"uploadId" bson:"uploadId"` // valid:"gte=10"
	UploadUserID        *string     `json:"byUser" bson:"byUser" valid:"gte=10"`
	Version             *string     `json:"version" bson:"version" valid:"gte=5"`
	ComputerTime        *string     `json:"computerTime" bson:"computerTime" valid:"nonZuluTimeString"`
	DeviceTags          []string    `json:"deviceTags" bson:"deviceTags" valid:"uploaddevicetags"`
	DeviceManufacturers []string    `json:"deviceManufacturers" bson:"deviceManufacturers" valid:"uploaddevicemanufacturers"`
	DeviceModel         *string     `json:"deviceModel" bson:"deviceModel" valid:"gte=1"`
	DeviceSerialNumber  *string     `json:"deviceSerialNumber" bson:"deviceSerialNumber" valid:"gte=1"` // TODO_DATA: Serial number on Tandem is only 6 numbers
	TimeProcessing      *string     `json:"timeProcessing" bson:"timeProcessing" valid:"uploadtimeprocessing"`
	DataState           *string     `json:"dataState" bson:"dataState"`
	Deduplicator        interface{} `json:"deduplicator" bson:"deduplicator"`
	types.Base          `bson:",inline"`
}

func Build

func Build(datum types.Datum, errs validate.ErrorProcessing) *Upload

Jump to

Keyboard shortcuts

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