Categorygithub.com/Akshit8/go-cassandra
modulepackage
0.0.0-20210120155728-0120b7959b6f
Repository: https://github.com/akshit8/go-cassandra.git
Documentation: pkg.go.dev

# 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 [email protected]

License

Licensed under the MIT License

# Packages

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