cassandra

package
v1.36.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: GPL-3.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(settings Settings) (*gocql.Session, error)

New creates a gocql.Session from a cassandra.Settings

Types

type Settings

type Settings struct {
	Keyspace     string
	Consistency  string
	Nodes        []string
	Username     string
	Password     string
	Connections  int
	Retry        int
	PageSize     int
	ProtoVersion int
	Timeout      string
}

Settings defines the configuration for a cassandra cluster

Jump to

Keyboard shortcuts

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