status

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2017 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatum

func NewDatum() data.Datum

func SubType

func SubType() string

Types

type Status

type Status struct {
	device.Device `bson:",inline"`

	Name     *string                 `json:"status,omitempty" bson:"status,omitempty"`
	Duration *int                    `json:"duration,omitempty" bson:"duration,omitempty"`
	Reason   *map[string]interface{} `json:"reason,omitempty" bson:"reason,omitempty"`
}

func Init

func Init() *Status

func New

func New() *Status

func (*Status) Init

func (s *Status) Init()

func (*Status) Parse

func (s *Status) Parse(parser data.ObjectParser) error

func (*Status) Validate

func (s *Status) Validate(validator data.Validator) error

Jump to

Keyboard shortcuts

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