Documentation ¶
Index ¶
- func BuildDeviceLayoutPayload(informationDeviceLayoutDeviceID string, informationDeviceLayoutAuth string) (*information.DeviceLayoutPayload, error)
- func BuildFirmwareStatisticsPayload(informationFirmwareStatisticsAuth string) (*information.FirmwareStatisticsPayload, error)
- func DecodeDeviceLayoutResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeFirmwareStatisticsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DeviceLayoutInformationPath(deviceID string) string
- func EncodeDeviceLayoutRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeFirmwareStatisticsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func FirmwareStatisticsInformationPath() string
- func NewDeviceLayoutBadRequest(body *DeviceLayoutBadRequestResponseBody) *goa.ServiceError
- func NewDeviceLayoutForbidden(body *DeviceLayoutForbiddenResponseBody) *goa.ServiceError
- func NewDeviceLayoutNotFound(body *DeviceLayoutNotFoundResponseBody) *goa.ServiceError
- func NewDeviceLayoutResponseViewOK(body *DeviceLayoutResponseBody) *informationviews.DeviceLayoutResponseView
- func NewDeviceLayoutUnauthorized(body *DeviceLayoutUnauthorizedResponseBody) *goa.ServiceError
- func NewFirmwareStatisticsBadRequest(body *FirmwareStatisticsBadRequestResponseBody) *goa.ServiceError
- func NewFirmwareStatisticsForbidden(body *FirmwareStatisticsForbiddenResponseBody) *goa.ServiceError
- func NewFirmwareStatisticsNotFound(body *FirmwareStatisticsNotFoundResponseBody) *goa.ServiceError
- func NewFirmwareStatisticsResultOK(body interface{}) *information.FirmwareStatisticsResult
- func NewFirmwareStatisticsUnauthorized(body *FirmwareStatisticsUnauthorizedResponseBody) *goa.ServiceError
- func ValidateDeviceLayoutBadRequestResponseBody(body *DeviceLayoutBadRequestResponseBody) (err error)
- func ValidateDeviceLayoutForbiddenResponseBody(body *DeviceLayoutForbiddenResponseBody) (err error)
- func ValidateDeviceLayoutNotFoundResponseBody(body *DeviceLayoutNotFoundResponseBody) (err error)
- func ValidateDeviceLayoutUnauthorizedResponseBody(body *DeviceLayoutUnauthorizedResponseBody) (err error)
- func ValidateFirmwareStatisticsBadRequestResponseBody(body *FirmwareStatisticsBadRequestResponseBody) (err error)
- func ValidateFirmwareStatisticsForbiddenResponseBody(body *FirmwareStatisticsForbiddenResponseBody) (err error)
- func ValidateFirmwareStatisticsNotFoundResponseBody(body *FirmwareStatisticsNotFoundResponseBody) (err error)
- func ValidateFirmwareStatisticsUnauthorizedResponseBody(body *FirmwareStatisticsUnauthorizedResponseBody) (err error)
- func ValidateSensorRangeResponseBody(body *SensorRangeResponseBody) (err error)
- func ValidateSensorReadingResponseBody(body *SensorReadingResponseBody) (err error)
- func ValidateStationConfigurationResponseBody(body *StationConfigurationResponseBody) (err error)
- func ValidateStationModuleResponseBody(body *StationModuleResponseBody) (err error)
- func ValidateStationSensorResponseBody(body *StationSensorResponseBody) (err error)
- type Client
- func (c *Client) BuildDeviceLayoutRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildFirmwareStatisticsRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) DeviceLayout() goa.Endpoint
- func (c *Client) FirmwareStatistics() goa.Endpoint
- type DeviceLayoutBadRequestResponseBody
- type DeviceLayoutForbiddenResponseBody
- type DeviceLayoutNotFoundResponseBody
- type DeviceLayoutResponseBody
- type DeviceLayoutUnauthorizedResponseBody
- type FirmwareStatisticsBadRequestResponseBody
- type FirmwareStatisticsForbiddenResponseBody
- type FirmwareStatisticsNotFoundResponseBody
- type FirmwareStatisticsUnauthorizedResponseBody
- type SensorRangeResponseBody
- type SensorReadingResponseBody
- type StationConfigurationResponseBody
- type StationModuleResponseBody
- type StationSensorResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDeviceLayoutPayload ¶
func BuildDeviceLayoutPayload(informationDeviceLayoutDeviceID string, informationDeviceLayoutAuth string) (*information.DeviceLayoutPayload, error)
BuildDeviceLayoutPayload builds the payload for the information device layout endpoint from CLI flags.
func BuildFirmwareStatisticsPayload ¶
func BuildFirmwareStatisticsPayload(informationFirmwareStatisticsAuth string) (*information.FirmwareStatisticsPayload, error)
BuildFirmwareStatisticsPayload builds the payload for the information firmware statistics endpoint from CLI flags.
func DecodeDeviceLayoutResponse ¶
func DecodeDeviceLayoutResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeDeviceLayoutResponse returns a decoder for responses returned by the information device layout endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeDeviceLayoutResponse may return the following errors:
- "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
- "forbidden" (type *goa.ServiceError): http.StatusForbidden
- "not-found" (type *goa.ServiceError): http.StatusNotFound
- "bad-request" (type *goa.ServiceError): http.StatusBadRequest
- error: internal error
func DecodeFirmwareStatisticsResponse ¶
func DecodeFirmwareStatisticsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeFirmwareStatisticsResponse returns a decoder for responses returned by the information firmware statistics endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeFirmwareStatisticsResponse may return the following errors:
- "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
- "forbidden" (type *goa.ServiceError): http.StatusForbidden
- "not-found" (type *goa.ServiceError): http.StatusNotFound
- "bad-request" (type *goa.ServiceError): http.StatusBadRequest
- error: internal error
func DeviceLayoutInformationPath ¶
DeviceLayoutInformationPath returns the URL path to the information service device layout HTTP endpoint.
func EncodeDeviceLayoutRequest ¶
func EncodeDeviceLayoutRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeDeviceLayoutRequest returns an encoder for requests sent to the information device layout server.
func EncodeFirmwareStatisticsRequest ¶
func EncodeFirmwareStatisticsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeFirmwareStatisticsRequest returns an encoder for requests sent to the information firmware statistics server.
func FirmwareStatisticsInformationPath ¶
func FirmwareStatisticsInformationPath() string
FirmwareStatisticsInformationPath returns the URL path to the information service firmware statistics HTTP endpoint.
func NewDeviceLayoutBadRequest ¶
func NewDeviceLayoutBadRequest(body *DeviceLayoutBadRequestResponseBody) *goa.ServiceError
NewDeviceLayoutBadRequest builds a information service device layout endpoint bad-request error.
func NewDeviceLayoutForbidden ¶
func NewDeviceLayoutForbidden(body *DeviceLayoutForbiddenResponseBody) *goa.ServiceError
NewDeviceLayoutForbidden builds a information service device layout endpoint forbidden error.
func NewDeviceLayoutNotFound ¶
func NewDeviceLayoutNotFound(body *DeviceLayoutNotFoundResponseBody) *goa.ServiceError
NewDeviceLayoutNotFound builds a information service device layout endpoint not-found error.
func NewDeviceLayoutResponseViewOK ¶
func NewDeviceLayoutResponseViewOK(body *DeviceLayoutResponseBody) *informationviews.DeviceLayoutResponseView
NewDeviceLayoutResponseViewOK builds a "information" service "device layout" endpoint result from a HTTP "OK" response.
func NewDeviceLayoutUnauthorized ¶
func NewDeviceLayoutUnauthorized(body *DeviceLayoutUnauthorizedResponseBody) *goa.ServiceError
NewDeviceLayoutUnauthorized builds a information service device layout endpoint unauthorized error.
func NewFirmwareStatisticsBadRequest ¶
func NewFirmwareStatisticsBadRequest(body *FirmwareStatisticsBadRequestResponseBody) *goa.ServiceError
NewFirmwareStatisticsBadRequest builds a information service firmware statistics endpoint bad-request error.
func NewFirmwareStatisticsForbidden ¶
func NewFirmwareStatisticsForbidden(body *FirmwareStatisticsForbiddenResponseBody) *goa.ServiceError
NewFirmwareStatisticsForbidden builds a information service firmware statistics endpoint forbidden error.
func NewFirmwareStatisticsNotFound ¶
func NewFirmwareStatisticsNotFound(body *FirmwareStatisticsNotFoundResponseBody) *goa.ServiceError
NewFirmwareStatisticsNotFound builds a information service firmware statistics endpoint not-found error.
func NewFirmwareStatisticsResultOK ¶
func NewFirmwareStatisticsResultOK(body interface{}) *information.FirmwareStatisticsResult
NewFirmwareStatisticsResultOK builds a "information" service "firmware statistics" endpoint result from a HTTP "OK" response.
func NewFirmwareStatisticsUnauthorized ¶
func NewFirmwareStatisticsUnauthorized(body *FirmwareStatisticsUnauthorizedResponseBody) *goa.ServiceError
NewFirmwareStatisticsUnauthorized builds a information service firmware statistics endpoint unauthorized error.
func ValidateDeviceLayoutBadRequestResponseBody ¶
func ValidateDeviceLayoutBadRequestResponseBody(body *DeviceLayoutBadRequestResponseBody) (err error)
ValidateDeviceLayoutBadRequestResponseBody runs the validations defined on device layout_bad-request_response_body
func ValidateDeviceLayoutForbiddenResponseBody ¶
func ValidateDeviceLayoutForbiddenResponseBody(body *DeviceLayoutForbiddenResponseBody) (err error)
ValidateDeviceLayoutForbiddenResponseBody runs the validations defined on device layout_forbidden_response_body
func ValidateDeviceLayoutNotFoundResponseBody ¶
func ValidateDeviceLayoutNotFoundResponseBody(body *DeviceLayoutNotFoundResponseBody) (err error)
ValidateDeviceLayoutNotFoundResponseBody runs the validations defined on device layout_not-found_response_body
func ValidateDeviceLayoutUnauthorizedResponseBody ¶
func ValidateDeviceLayoutUnauthorizedResponseBody(body *DeviceLayoutUnauthorizedResponseBody) (err error)
ValidateDeviceLayoutUnauthorizedResponseBody runs the validations defined on device layout_unauthorized_response_body
func ValidateFirmwareStatisticsBadRequestResponseBody ¶
func ValidateFirmwareStatisticsBadRequestResponseBody(body *FirmwareStatisticsBadRequestResponseBody) (err error)
ValidateFirmwareStatisticsBadRequestResponseBody runs the validations defined on firmware statistics_bad-request_response_body
func ValidateFirmwareStatisticsForbiddenResponseBody ¶
func ValidateFirmwareStatisticsForbiddenResponseBody(body *FirmwareStatisticsForbiddenResponseBody) (err error)
ValidateFirmwareStatisticsForbiddenResponseBody runs the validations defined on firmware statistics_forbidden_response_body
func ValidateFirmwareStatisticsNotFoundResponseBody ¶
func ValidateFirmwareStatisticsNotFoundResponseBody(body *FirmwareStatisticsNotFoundResponseBody) (err error)
ValidateFirmwareStatisticsNotFoundResponseBody runs the validations defined on firmware statistics_not-found_response_body
func ValidateFirmwareStatisticsUnauthorizedResponseBody ¶
func ValidateFirmwareStatisticsUnauthorizedResponseBody(body *FirmwareStatisticsUnauthorizedResponseBody) (err error)
ValidateFirmwareStatisticsUnauthorizedResponseBody runs the validations defined on firmware statistics_unauthorized_response_body
func ValidateSensorRangeResponseBody ¶
func ValidateSensorRangeResponseBody(body *SensorRangeResponseBody) (err error)
ValidateSensorRangeResponseBody runs the validations defined on SensorRangeResponseBody
func ValidateSensorReadingResponseBody ¶
func ValidateSensorReadingResponseBody(body *SensorReadingResponseBody) (err error)
ValidateSensorReadingResponseBody runs the validations defined on SensorReadingResponseBody
func ValidateStationConfigurationResponseBody ¶
func ValidateStationConfigurationResponseBody(body *StationConfigurationResponseBody) (err error)
ValidateStationConfigurationResponseBody runs the validations defined on StationConfigurationResponseBody
func ValidateStationModuleResponseBody ¶
func ValidateStationModuleResponseBody(body *StationModuleResponseBody) (err error)
ValidateStationModuleResponseBody runs the validations defined on StationModuleResponseBody
func ValidateStationSensorResponseBody ¶
func ValidateStationSensorResponseBody(body *StationSensorResponseBody) (err error)
ValidateStationSensorResponseBody runs the validations defined on StationSensorResponseBody
Types ¶
type Client ¶
type Client struct { // DeviceLayout Doer is the HTTP client used to make requests to the device // layout endpoint. DeviceLayoutDoer goahttp.Doer // FirmwareStatistics Doer is the HTTP client used to make requests to the // firmware statistics endpoint. FirmwareStatisticsDoer goahttp.Doer // CORS Doer is the HTTP client used to make requests to the endpoint. CORSDoer goahttp.Doer // RestoreResponseBody controls whether the response bodies are reset after // decoding so they can be read again. RestoreResponseBody bool // contains filtered or unexported fields }
Client lists the information service endpoint HTTP clients.
func NewClient ¶
func NewClient( scheme string, host string, doer goahttp.Doer, enc func(*http.Request) goahttp.Encoder, dec func(*http.Response) goahttp.Decoder, restoreBody bool, ) *Client
NewClient instantiates HTTP clients for all the information service servers.
func (*Client) BuildDeviceLayoutRequest ¶
func (c *Client) BuildDeviceLayoutRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildDeviceLayoutRequest instantiates a HTTP request object with method and path set to call the "information" service "device layout" endpoint
func (*Client) BuildFirmwareStatisticsRequest ¶
func (c *Client) BuildFirmwareStatisticsRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildFirmwareStatisticsRequest instantiates a HTTP request object with method and path set to call the "information" service "firmware statistics" endpoint
func (*Client) DeviceLayout ¶
DeviceLayout returns an endpoint that makes HTTP requests to the information service device layout server.
func (*Client) FirmwareStatistics ¶
FirmwareStatistics returns an endpoint that makes HTTP requests to the information service firmware statistics server.
type DeviceLayoutBadRequestResponseBody ¶
type DeviceLayoutBadRequestResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
DeviceLayoutBadRequestResponseBody is the type of the "information" service "device layout" endpoint HTTP response body for the "bad-request" error.
type DeviceLayoutForbiddenResponseBody ¶
type DeviceLayoutForbiddenResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
DeviceLayoutForbiddenResponseBody is the type of the "information" service "device layout" endpoint HTTP response body for the "forbidden" error.
type DeviceLayoutNotFoundResponseBody ¶
type DeviceLayoutNotFoundResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
DeviceLayoutNotFoundResponseBody is the type of the "information" service "device layout" endpoint HTTP response body for the "not-found" error.
type DeviceLayoutResponseBody ¶
type DeviceLayoutResponseBody struct { Configurations []*StationConfigurationResponseBody `form:"configurations,omitempty" json:"configurations,omitempty" xml:"configurations,omitempty"` Sensors map[string][]*StationSensorResponseBody `form:"sensors,omitempty" json:"sensors,omitempty" xml:"sensors,omitempty"` }
DeviceLayoutResponseBody is the type of the "information" service "device layout" endpoint HTTP response body.
type DeviceLayoutUnauthorizedResponseBody ¶
type DeviceLayoutUnauthorizedResponseBody struct { string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }Name *
DeviceLayoutUnauthorizedResponseBody is the type of the "information" service "device layout" endpoint HTTP response body for the "unauthorized" error.
type FirmwareStatisticsBadRequestResponseBody ¶
type FirmwareStatisticsBadRequestResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
FirmwareStatisticsBadRequestResponseBody is the type of the "information" service "firmware statistics" endpoint HTTP response body for the "bad-request" error.
type FirmwareStatisticsForbiddenResponseBody ¶
type FirmwareStatisticsForbiddenResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
FirmwareStatisticsForbiddenResponseBody is the type of the "information" service "firmware statistics" endpoint HTTP response body for the "forbidden" error.
type FirmwareStatisticsNotFoundResponseBody ¶
type FirmwareStatisticsNotFoundResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
FirmwareStatisticsNotFoundResponseBody is the type of the "information" service "firmware statistics" endpoint HTTP response body for the "not-found" error.
type FirmwareStatisticsUnauthorizedResponseBody ¶
type FirmwareStatisticsUnauthorizedResponseBody struct { string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }Name *
FirmwareStatisticsUnauthorizedResponseBody is the type of the "information" service "firmware statistics" endpoint HTTP response body for the "unauthorized" error.
type SensorRangeResponseBody ¶
type SensorRangeResponseBody struct { Minimum *float32 `form:"minimum,omitempty" json:"minimum,omitempty" xml:"minimum,omitempty"` Maximum *float32 `form:"maximum,omitempty" json:"maximum,omitempty" xml:"maximum,omitempty"` }
SensorRangeResponseBody is used to define fields on response body types.
type SensorReadingResponseBody ¶
type SensorReadingResponseBody struct { Last *float32 `form:"last,omitempty" json:"last,omitempty" xml:"last,omitempty"` Time *int64 `form:"time,omitempty" json:"time,omitempty" xml:"time,omitempty"` }
SensorReadingResponseBody is used to define fields on response body types.
type StationConfigurationResponseBody ¶
type StationConfigurationResponseBody struct { ID *int64 `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` Time *int64 `form:"time,omitempty" json:"time,omitempty" xml:"time,omitempty"` ProvisionID *int64 `form:"provisionId,omitempty" json:"provisionId,omitempty" xml:"provisionId,omitempty"` MetaRecordID *int64 `form:"metaRecordId,omitempty" json:"metaRecordId,omitempty" xml:"metaRecordId,omitempty"` SourceID *int32 `form:"sourceId,omitempty" json:"sourceId,omitempty" xml:"sourceId,omitempty"` Modules []*StationModuleResponseBody `form:"modules,omitempty" json:"modules,omitempty" xml:"modules,omitempty"` }
StationConfigurationResponseBody is used to define fields on response body types.
type StationModuleResponseBody ¶
type StationModuleResponseBody struct { ID *int64 `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` HardwareID *string `form:"hardwareId,omitempty" json:"hardwareId,omitempty" xml:"hardwareId,omitempty"` HardwareIDBase64 *string `form:"hardwareIdBase64,omitempty" json:"hardwareIdBase64,omitempty" xml:"hardwareIdBase64,omitempty"` MetaRecordID *int64 `form:"metaRecordId,omitempty" json:"metaRecordId,omitempty" xml:"metaRecordId,omitempty"` Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` Label *string `form:"label,omitempty" json:"label,omitempty" xml:"label,omitempty"` Position *int32 `form:"position,omitempty" json:"position,omitempty" xml:"position,omitempty"` Flags *int32 `form:"flags,omitempty" json:"flags,omitempty" xml:"flags,omitempty"` Internal *bool `form:"internal,omitempty" json:"internal,omitempty" xml:"internal,omitempty"` FullKey *string `form:"fullKey,omitempty" json:"fullKey,omitempty" xml:"fullKey,omitempty"` Sensors []*StationSensorResponseBody `form:"sensors,omitempty" json:"sensors,omitempty" xml:"sensors,omitempty"` Meta map[string]interface{} `form:"meta,omitempty" json:"meta,omitempty" xml:"meta,omitempty"` }
StationModuleResponseBody is used to define fields on response body types.
type StationSensorResponseBody ¶
type StationSensorResponseBody struct { Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` UnitOfMeasure *string `form:"unitOfMeasure,omitempty" json:"unitOfMeasure,omitempty" xml:"unitOfMeasure,omitempty"` Reading *SensorReadingResponseBody `form:"reading,omitempty" json:"reading,omitempty" xml:"reading,omitempty"` Key *string `form:"key,omitempty" json:"key,omitempty" xml:"key,omitempty"` FullKey *string `form:"fullKey,omitempty" json:"fullKey,omitempty" xml:"fullKey,omitempty"` Ranges []*SensorRangeResponseBody `form:"ranges,omitempty" json:"ranges,omitempty" xml:"ranges,omitempty"` Meta map[string]interface{} `form:"meta,omitempty" json:"meta,omitempty" xml:"meta,omitempty"` }
StationSensorResponseBody is used to define fields on response body types.