models

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2018 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorObject

type ErrorObject struct {

	// code
	Code string `json:"code,omitempty"`

	// detail
	Detail string `json:"detail,omitempty"`

	// id
	// Required: true
	ID *string `json:"id"`

	// title
	Title string `json:"title,omitempty"`
}

ErrorObject error object swagger:model ErrorObject

func (*ErrorObject) MarshalBinary

func (m *ErrorObject) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorObject) UnmarshalBinary

func (m *ErrorObject) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorObject) Validate

func (m *ErrorObject) Validate(formats strfmt.Registry) error

Validate validates this error object

type ErrorResponse

type ErrorResponse struct {

	// errors
	// Required: true
	Errors ErrorResponseErrors `json:"errors"`
}

ErrorResponse error response swagger:model ErrorResponse

func (*ErrorResponse) MarshalBinary

func (m *ErrorResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorResponse) UnmarshalBinary

func (m *ErrorResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorResponse) Validate

func (m *ErrorResponse) Validate(formats strfmt.Registry) error

Validate validates this error response

type ErrorResponseErrors

type ErrorResponseErrors []*ErrorObject

ErrorResponseErrors error response errors swagger:model errorResponseErrors

func (ErrorResponseErrors) Validate

func (m ErrorResponseErrors) Validate(formats strfmt.Registry) error

Validate validates this error response errors

type GenericLinks struct {

	// self
	// Required: true
	Self *string `json:"self"`
}

GenericLinks generic links swagger:model GenericLinks

func (*GenericLinks) MarshalBinary

func (m *GenericLinks) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GenericLinks) UnmarshalBinary

func (m *GenericLinks) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GenericLinks) Validate

func (m *GenericLinks) Validate(formats strfmt.Registry) error

Validate validates this generic links

type SensorCard

type SensorCard struct {

	// id
	// Required: true
	ID *string `json:"id"`

	// links
	// Required: true
	Links *GenericLinks `json:"links"`

	// name
	// Required: true
	Name *string `json:"name"`
}

SensorCard sensor card swagger:model SensorCard

func (*SensorCard) MarshalBinary

func (m *SensorCard) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SensorCard) UnmarshalBinary

func (m *SensorCard) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SensorCard) Validate

func (m *SensorCard) Validate(formats strfmt.Registry) error

Validate validates this sensor card

type SensorData

type SensorData struct {

	// delta time
	// Required: true
	DeltaTime *int64 `json:"deltaTime"`

	// heat index
	HeatIndex float64 `json:"heatIndex,omitempty"`

	// humidity
	// Required: true
	Humidity *float64 `json:"humidity"`

	// id
	// Required: true
	ID *string `json:"id"`

	// name
	// Required: true
	Name *string `json:"name"`

	// stale
	// Required: true
	Stale *bool `json:"stale"`

	// temperature
	// Required: true
	Temperature *float64 `json:"temperature"`

	// timestamp
	// Required: true
	Timestamp *strfmt.DateTime `json:"timestamp"`
}

SensorData sensor data swagger:model SensorData

func (*SensorData) MarshalBinary

func (m *SensorData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SensorData) UnmarshalBinary

func (m *SensorData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SensorData) Validate

func (m *SensorData) Validate(formats strfmt.Registry) error

Validate validates this sensor data

type SensorList

type SensorList struct {

	// data
	// Required: true
	Data SensorListData `json:"data"`

	// links
	Links *GenericLinks `json:"links,omitempty"`
}

SensorList sensor list swagger:model SensorList

func (*SensorList) MarshalBinary

func (m *SensorList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SensorList) UnmarshalBinary

func (m *SensorList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SensorList) Validate

func (m *SensorList) Validate(formats strfmt.Registry) error

Validate validates this sensor list

type SensorListData

type SensorListData []*SensorCard

SensorListData sensor list data swagger:model sensorListData

func (SensorListData) Validate

func (m SensorListData) Validate(formats strfmt.Registry) error

Validate validates this sensor list data

type SensorResponse

type SensorResponse struct {

	// data
	// Required: true
	Data *SensorData `json:"data"`

	// links
	Links *GenericLinks `json:"links,omitempty"`
}

SensorResponse sensor response swagger:model SensorResponse

func (*SensorResponse) MarshalBinary

func (m *SensorResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SensorResponse) UnmarshalBinary

func (m *SensorResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SensorResponse) Validate

func (m *SensorResponse) Validate(formats strfmt.Registry) error

Validate validates this sensor response

type SensorResponseRaw

type SensorResponseRaw struct {

	// humidity
	// Required: true
	Humidity *float64 `json:"humidity"`

	// temperature
	// Required: true
	Temperature *float64 `json:"temperature"`
}

SensorResponseRaw sensor response raw swagger:model SensorResponseRaw

func (*SensorResponseRaw) MarshalBinary

func (m *SensorResponseRaw) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SensorResponseRaw) UnmarshalBinary

func (m *SensorResponseRaw) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SensorResponseRaw) Validate

func (m *SensorResponseRaw) Validate(formats strfmt.Registry) error

Validate validates this sensor response raw

Jump to

Keyboard shortcuts

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