device

package
v1.29.0-mobile.9 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2018 License: BSD-2-Clause Imports: 4 Imported by: 7

Documentation

Index

Constants

View Source
const (
	Type = "deviceEvent"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

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

	SubType string `json:"subType,omitempty" bson:"subType,omitempty"`
}

func New added in v1.26.0

func New(subType string) Device

func (*Device) IdentityFields

func (d *Device) IdentityFields() ([]string, error)

func (*Device) Meta

func (d *Device) Meta() interface{}

func (*Device) Parse

func (d *Device) Parse(parser data.ObjectParser) error

func (*Device) Validate

func (d *Device) Validate(validator structure.Validator)

type Meta

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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