hello-world

command module
v0.0.0-...-e4391c6 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

README

Hello world for Cassandra with golang

The purpose of this tutorial is to execute a simple command on a Cassandra database.

Requirements

You need first to have a Cassandra service available. More information here

Certificate

You need to create a directory that will be mounted on the docker container. It must contains the following:

Build and run

Once you have created your user, and set up your IP restrictions you can run the following:

read USER
read -s PASSWORD
read HOST
read PORT
## PATH_TO_CERTIFICATES must be a directory containing the certificate
read PATH_TO_CERTIFICATES
docker build -t cassandra-go-hello-world .
docker run -v $PATH_TO_CERTIFICATES:/certificates cassandra-go-hello-world $HOST $PORT $USER $PASSWORD

Dependencies

This example is using the following external dependencies:

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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