cassandra-lib

command
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

README

Simple Cassandra example

To start the example, you need to connect to a Cassandra database. If you don't have one running, you can start the following docker image on your localhost:

sudo docker run -p 9042:9042 --name cassandra01 -d cassandra:latest

In the example, the configuration for the connection to cassandra is configured in a yaml-formatted config file. The config file is specified as the first CLI argument:

go run main.go <config-file-name>

To run the example with the provided default configuration, type:

go run main.go ./client-config.yaml

Documentation

Overview

Example application "cassandra-lib" demonstrates the usage of the cassandra library in a plain go program.

Jump to

Keyboard shortcuts

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