device

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: BSD-2-Clause Imports: 3 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) Validate

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

type Meta

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

Jump to

Keyboard shortcuts

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