@timelab/device-service
Service for devices
Last updated 2 years ago by npm-timelab .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @timelab/device-service 
SYNC missed versions from official npm registry.

gRPC sensor-service

A simple gRPC sensor-service.

VERSIONS

Installation

$ yarn install

Tested with

  • cassandra v3.0.10
  • node v7.10.0

ENV

$ export CASSANDRA_HOSTS="cs01"
$ export CASSANDRA_KEYSPACE="timelab"
$ export GRPC_PORT="55002"

start

$ yarn start

test

$ yarn test

Definition

See sensor-service.proto for sensor-service definition.

See sensor.proto for full definition.

Team object & Role

Example GetSensorRequest proto.

message GetSensorRequest {
  string sensorId = 1;
  string team = 2;
}

message GetSensorResponse {
  timelab.model.common.Error error = 1;
  timelab.model.sensor.Sensor sensor = 2;
}

Methods

getSensor

Get a sensor by sensorId & team name.

client.getSensor({
  sensorId: '551af6cb-2db6-4288-a9cd-7ea3572c4c66',
  team: 'timelab'
});

getSensors

Get a sensor list by team name.

client.getSensors({ team: 'timelab' });

deleteSensor

Delete a sensor by sensorId & team name.

client.getSensor({
  sensorId: '551af6cb-2db6-4288-a9cd-7ea3572c4c66',
  team: 'timelab'
});

TODO

  • Complete README.md
  • Complete gRPC methods & node
  • Add tests

Current Tags

  • 3.3.18                                ...           latest (2 years ago)

46 Versions

  • 3.3.18                                ...           2 years ago
  • 3.3.17                                ...           2 years ago
  • 3.3.16                                ...           2 years ago
  • 3.3.13                                ...           2 years ago
  • 3.3.12                                ...           2 years ago
  • 3.3.9                                ...           2 years ago
  • 3.3.4                                ...           2 years ago
  • 3.3.2                                ...           2 years ago
  • 3.3.0                                ...           2 years ago
  • 3.2.0                                ...           2 years ago
  • 3.1.15                                ...           2 years ago
  • 3.1.14                                ...           2 years ago
  • 3.1.13                                ...           2 years ago
  • 3.1.12                                ...           2 years ago
  • 3.1.11                                ...           2 years ago
  • 3.1.9                                ...           2 years ago
  • 3.1.8                                ...           2 years ago
  • 3.1.7                                ...           2 years ago
  • 3.1.6                                ...           2 years ago
  • 3.1.5                                ...           2 years ago
  • 3.1.4                                ...           2 years ago
  • 3.1.2                                ...           2 years ago
  • 3.1.0                                ...           2 years ago
  • 3.0.26                                ...           2 years ago
  • 3.0.25                                ...           2 years ago
  • 3.0.24                                ...           2 years ago
  • 3.0.23                                ...           2 years ago
  • 3.0.17                                ...           2 years ago
  • 3.0.12                                ...           2 years ago
  • 3.0.5                                ...           2 years ago
  • 1.0.16                                ...           2 years ago
  • 1.0.15                                ...           3 years ago
  • 1.0.14                                ...           3 years ago
  • 1.0.13                                ...           3 years ago
  • 1.0.12                                ...           3 years ago
  • 1.0.11                                ...           3 years ago
  • 1.0.10                                ...           3 years ago
  • 1.0.9                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |