data-service

command
v0.0.0-...-8f9fda8 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2018 License: MIT Imports: 13 Imported by: 0

README

data-service

The service that subscribe to Kafka topic and then insert received message into Cassandra database.

$ # use connect to Cassandra using cqlsh and then create Keyspace and Table
$ cqlsh
cqlsh> create keyspace mqttexample with replication = { 'class' : 'SimpleStrategy', 'replication_factor' : 2 };
cqlsh> create table mqttexample.data(id uuid PRIMARY KEY, username text, temperature text, humidity text, timestamp timestamp);
cqlsh> create index on mqttexample.data(username);
cqlsh> select * from mqttexample.data;

 id | humidity | temperature | timestamp | username
----+----------+-------------+-----------+----------

(0 rows)
cqlsh> exit

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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