go-cassandra

command module
v0.0.0-...-0120b79 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: MIT Imports: 10 Imported by: 0

README

go-cassandra

Starting a single-node cassandra cluster

docker-compose up -d

# getting cqlsh
docker exec -it cassandraDB cqlsh

Creating your cassandra cluster schema

# create cassandra keyspace
CREATE KEYSPACE akshit WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 1};

# create table messages
use akshit;
create table messages (
id UUID,
user_id UUID,
Message text,
PRIMARY KEY(id)
);

# create table users
use akshit;
CREATE TABLE users (
id UUID,
firstname text,
lastname text,
age int,
email text,
city text,
PRIMARY KEY (id)
);

Config Mgmt

cd config
cat sample.config.yml > config.yml

# populate the file with your variables

Stream

Helps to Build scalable activity feeds.
https://getstream.io/activity-feeds/

Makefile specs

  • git - git add - commit - push commands
  • cassandra - starts single node cassandra cluster on docker
  • server - run the server

References

cassandra-setup
gocql
cassandra-port-specs
cnfg-mgmt-go
stream-demo
stream-sdk-v2
stream-feed

Author

Akshit Sadana akshitsadana@gmail.com

License

Licensed under the MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package config impls method to load and use configuration
Package config impls method to load and use configuration
Package db impls database access and connection functionalities
Package db impls database access and connection functionalities
Package messages creates or fetchs message data from Cassandra
Package messages creates or fetchs message data from Cassandra
Package stream defines http client for Stream API
Package stream defines http client for Stream API
Package users creates or fetchs user data from Cassandra
Package users creates or fetchs user data from Cassandra

Jump to

Keyboard shortcuts

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