rpc_client

package
v0.0.0-...-bd93964 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetDataRequest

type GetDataRequest struct{}

type GetDataResponse

type GetDataResponse struct {
	Status                 string  `json:"status,omitempty"`
	Runtime                int     `json:"runtime,omitempty"`
	Id                     int     `json:"id,omitempty"`
	HumidityValue          float32 `json:"humidity_value,omitempty"`
	HumidityUnit           string  `json:"humidity_unit,omitempty"`
	TemperatureValue       float32 `json:"temperature_primary_value,omitempty"`
	TemperatureUnit        string  `json:"temperature_primary_unit,omitempty"`
	PressureValue          float32 `json:"pressure_value,omitempty"`
	PressureUnit           string  `json:"pressure_unit,omitempty"`
	TemperatureBackupValue float32 `json:"temperature_secondary_value,omitempty"`
	TemperatureBackupUnit  string  `json:"temperature_secondary_unit,omitempty"`
	AltitudeValue          float32 `json:"altitude_value,omitempty"`
	AltitudeUnit           string  `json:"altitude_unit,omitempty"`
	IlluminanceValue       float32 `json:"illuminance_value,omitempty"`
	IlluminanceUnit        string  `json:"illuminance_unit,omitempty"`
	SoilMoistureValue      float32 `json:"soil_moisture_value,omitempty"`
	SoilMoistureUnit       string  `json:"soil_moisture_unit,omitempty"`
	Timestamp              int64   `json:"timestamp,omitempty"`
}

The time-series data structure used to store all the data that will be returned by the `Mikapod Soil` Arduino device.

type MikapodSoilReaderService

type MikapodSoilReaderService struct {
	Client *rpc.Client
}

func New

func (*MikapodSoilReaderService) GetData

func (*MikapodSoilReaderService) Greet

func (s *MikapodSoilReaderService) Greet(name string) (*string, error)

Perform a synchronous call on our remote service for the `Greet` RPC.

Jump to

Keyboard shortcuts

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