cassandra

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// PluginName is the name of the plugin
	PluginName = "cassandra"
)

Variables

This section is empty.

Functions

func CreateSession

func CreateSession(cfg config.Cassandra) (gocql.Session, error)

CreateSession creates a new session TODO this will be converted to private later, after all cassandra code moved to plugin pkg

func NewCassandraDB

func NewCassandraDB(cfg config.Cassandra, logger log.Logger) (nosqlplugin.DB, error)

NewCassandraDB return a new DB

func NewCassandraDBFromSession

func NewCassandraDBFromSession(client gocql.Client, session gocql.Session, logger log.Logger) nosqlplugin.DB

NewCassandraDBFromSession returns a DB from a session

Types

This section is empty.

Directories

Path Synopsis
Package gocql is a generated GoMock package.
Package gocql is a generated GoMock package.

Jump to

Keyboard shortcuts

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